ODX API v3
stringstring · enum · requiredstringstring · maxLength: 128 · required
stringstring · enum · requiredstringstring · minLength: 1 · maxLength: 128 · requiredstring · minLength: 1 · maxLength: 6 · requiredstring · maxLength: 128 · requiredstring · maxLength: 6 · required
otp
send otp
POST
https://odkmedia.io
/odx/api/v3/otp/
- 전달받은 값의 종류에 따라 otp 를 전송합니다.
- email, phone
- 수신자정보와 otp 를 redis에 기록하여 추후에 검증할 때 사용합니다. 예외
- 전화번호 형식, email 형식이 아닌 경우,
- 중복 요청이 온 경우, 입력예
- email: hero@odkmedia.net
- phone: +18557202203
query Parameters
debugIf value is "on", debug is included in response.
Headers
Service-Name요청을 처리할 서비스. v3 에서 유효한 값은 odk, odc 뿐이다 (content.constants.Service; v4 는 다른 값 체계를 쓴다).
Enum values:
odk
odc
Example: odk
Accept-Language"zh-Hans", "zh-Hant" is deprecated. Supported values: ko, en, es, zh-Hans, zh-Hant, pt, vi (default: en) — see LANGUAGES in app/settings/base.py.
Example: ko-KR,ko;q=0.9,en;q=0.8
send otp › Responses
account_idverify otp
POST
https://odkmedia.io
/odx/api/v3/otp/verify/
예)
- {'account_id': 'hero@odkmedia.net', 'otp': '2234'}
- {'account_id': '+18557202203', 'otp': '2234'}
- 수신자정보와 otp 를 redis에 기록하여 추후에 검증할 때 사용합니다. 예외
- 전화번호 형식, email 형식이 아닌 경우
- 중복 요청이 온 경우
query Parameters
debugIf value is "on", debug is included in response.
Headers
Service-Name요청을 처리할 서비스. v3 에서 유효한 값은 odk, odc 뿐이다 (content.constants.Service; v4 는 다른 값 체계를 쓴다).
Enum values:
odk
odc
Example: odk
Accept-Language"zh-Hans", "zh-Hant" is deprecated. Supported values: ko, en, es, zh-Hans, zh-Hant, pt, vi (default: en) — see LANGUAGES in app/settings/base.py.
Example: ko-KR,ko;q=0.9,en;q=0.8
verify otp › Request Body
account_idotpverify otp › Responses
200
account_idotp