curl --request GET \
--url https://api.1-funnel.org/v1/businesses/{businessId}/otp/challenges/{challengeId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-funnel.org/v1/businesses/{businessId}/otp/challenges/{challengeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-funnel.org/v1/businesses/{businessId}/otp/challenges/{challengeId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://api.1-funnel.org/v1/businesses/{businessId}/otp/challenges/{challengeId}")
.header("Authorization", "Bearer <token>")
.asString();{
"id": "018f3c4e-7b2a-7c3d-8e9f-dddddddddddd",
"business_id": "018f3c4e-7b2a-7c3d-8e9f-0123456789ab",
"status": "sent",
"purpose": "login",
"channel": "sms",
"delivery_mode": "inline",
"code_length": 6,
"expires_at": "2026-10-13T09:05:00.000Z",
"resend_available_at": "2026-10-13T09:01:00.000Z",
"remaining_resends": 4,
"attempt_count": 1,
"max_verification_attempts": 5,
"verified_at": null,
"invalidated_at": null,
"created_at": "2026-10-13T09:00:00.000Z",
"updated_at": "2026-10-13T09:00:08.000Z"
}Retrieve OTP challenge status
Publicly safe challenge status (ADR-020 OTP-A05). Never returns codes, hashes, or message content.
curl --request GET \
--url https://api.1-funnel.org/v1/businesses/{businessId}/otp/challenges/{challengeId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1-funnel.org/v1/businesses/{businessId}/otp/challenges/{challengeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-funnel.org/v1/businesses/{businessId}/otp/challenges/{challengeId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://api.1-funnel.org/v1/businesses/{businessId}/otp/challenges/{challengeId}")
.header("Authorization", "Bearer <token>")
.asString();{
"id": "018f3c4e-7b2a-7c3d-8e9f-dddddddddddd",
"business_id": "018f3c4e-7b2a-7c3d-8e9f-0123456789ab",
"status": "sent",
"purpose": "login",
"channel": "sms",
"delivery_mode": "inline",
"code_length": 6,
"expires_at": "2026-10-13T09:05:00.000Z",
"resend_available_at": "2026-10-13T09:01:00.000Z",
"remaining_resends": 4,
"attempt_count": 1,
"max_verification_attempts": 5,
"verified_at": null,
"invalidated_at": null,
"created_at": "2026-10-13T09:00:00.000Z",
"updated_at": "2026-10-13T09:00:08.000Z"
}Authorizations
OAuth 2.0 Client Credentials for the External Integration API (ADR-015, ADR-023).
Client authentication: HTTP Basic (client_secret_basic).
Access-token audience: 1funnel-external-api.
The tokenUrl below is the production target. Sandbox uses a different
host. OpenAPI cannot bind tokenUrl to the selected servers entry; see
x-1funnel-oauth on the root document and the authentication guide when published.
Coarse OAuth scopes (if any) are token-level vocabulary (ADR-013 IA-06). They
are not the ADR-022 resource permission catalogue. Resource permissions
are enforced after token validation via application-to-business grants
(ADR-016) and are documented per operation with x-required-permissions.
These URLs are architecture targets. They are not claimed to be deployed or generally available.
Headers
Request correlation identifier (STD-API-01 D12). Clients may supply a value
of 1–128 characters matching A-Za-z0-9._-. Missing or invalid values are
replaced by a server-generated identifier. Distinct from W3C traceparent,
resource ids, Idempotency-Key, and webhook event ids.
1 - 128^[A-Za-z0-9._-]+$"req_01HZX3K9EXAMPLE"
Path Parameters
Business resource selector in /v1/businesses/{businessId}/… (ADR-006).
UUIDv7-compatible opaque identifier. {businessId} is not authorization
proof. The resource server must independently verify an active
application-to-business grant, required permission, and ownership (ADR-016,
ADR-022).
UUID with version nibble 7 (UUIDv7). STD-API-01 prefers UUIDv7 for new
platform-generated external resource identifiers. Clients must still treat
the value as opaque. Not every path parameter is guaranteed to be v7 solely
because it is a UUID; use this schema where the contract asserts UUIDv7.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"018f3c4e-7b2a-7c3d-8e9f-0123456789ab"
OTP challenge identifier (UUIDv7).
UUID with version nibble 7 (UUIDv7). STD-API-01 prefers UUIDv7 for new
platform-generated external resource identifiers. Clients must still treat
the value as opaque. Not every path parameter is guaranteed to be v7 solely
because it is a UUID; use this schema where the contract asserts UUIDv7.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"018f3c4e-7b2a-7c3d-8e9f-0123456789ab"
Response
Challenge status
Public OTP challenge representation. Never includes plaintext codes, hashes, Redis keys, or rendered message bodies (ADR-020 / ADR-008).
UUID with version nibble 7 (UUIDv7). STD-API-01 prefers UUIDv7 for new
platform-generated external resource identifiers. Clients must still treat
the value as opaque. Not every path parameter is guaranteed to be v7 solely
because it is a UUID; use this schema where the contract asserts UUIDv7.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"018f3c4e-7b2a-7c3d-8e9f-0123456789ab"
UUID with version nibble 7 (UUIDv7). STD-API-01 prefers UUIDv7 for new
platform-generated external resource identifiers. Clients must still treat
the value as opaque. Not every path parameter is guaranteed to be v7 solely
because it is a UUID; use this schema where the contract asserts UUIDv7.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"018f3c4e-7b2a-7c3d-8e9f-0123456789ab"
Publicly safe challenge lifecycle status (lowercase snake_case). Distinct from SMS delivery lifecycle (ADR-020 OTP-A05). Never implies code exposure.
queued, sent, verified, expired, locked, invalidated, failed_delivery "queued"
"verified"
Challenge purpose (lowercase snake_case public enum; ADR-020 OTP-A01). Exact allowed set is policy-controlled; values below are the initial catalogue.
login, register, password, transfer, merchant_custom "login"
Delivery channel. SMS is the initial approved channel (ADR-020 / ADR-008).
sms "sms"
4 <= x <= 12RFC 3339 date-time. Response timestamps are UTC with a Z offset
(STD-API-01 D06). Client-supplied timestamps must include an explicit offset;
local times without an offset are rejected.
"2026-10-13T09:00:00.000Z"
RFC 3339 date-time. Response timestamps are UTC with a Z offset
(STD-API-01 D06). Client-supplied timestamps must include an explicit offset;
local times without an offset are rejected.
"2026-10-13T09:00:00.000Z"
RFC 3339 date-time. Response timestamps are UTC with a Z offset
(STD-API-01 D06). Client-supplied timestamps must include an explicit offset;
local times without an offset are rejected.
"2026-10-13T09:00:00.000Z"
How the OTP message content was selected at create time.
template, inline "inline"
RFC 3339 date-time. Response timestamps are UTC with a Z offset
(STD-API-01 D06). Client-supplied timestamps must include an explicit offset;
local times without an offset are rejected.
"2026-10-13T09:00:00.000Z"
x >= 0x >= 0x >= 1RFC 3339 date-time. Response timestamps are UTC with a Z offset
(STD-API-01 D06). Client-supplied timestamps must include an explicit offset;
local times without an offset are rejected.
"2026-10-13T09:00:00.000Z"
RFC 3339 date-time. Response timestamps are UTC with a Z offset
(STD-API-01 D06). Client-supplied timestamps must include an explicit offset;
local times without an offset are rejected.
"2026-10-13T09:00:00.000Z"