Skip to content

Answer a provider's handshake

View as Markdown
GET
/v1/texts-inbound/{tenantId}/{appId}
curl --request GET \
--url https://example.com/v1/texts-inbound/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0

Where a texting provider checks a texts registration’s URL before it delivers to it, such as Meta’s subscription check, whose query carries a challenge to echo back. No sign-in, and a bearer token, if sent, is never read. The query is the provider’s own; the server checks it with the registration’s credential. A handshake that doesn’t match, or names an unknown workspace or registration, is the same 401 texts-inbound-refused. A client past its refusals this minute gets 429. If the server couldn’t check it just now, 503 texts-inbound-unavailable: the provider may try again.

tenantId
required
string format: uuid

The workspace that owns the registration.

appId
required
string format: uuid

The texts registration id (appId).

Matched. The provider’s answer, as it expects one: plain text (such as the challenge, echoed back), XML or JSON.

string

texts-inbound-refused: the request doesn’t prove its sender (the same answer whatever the reason).

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

rate-limit-exceeded: too many refused requests from this client; Retry-After says when.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}
Retry-After
integer
>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

texts-inbound-unavailable: the handshake couldn’t be checked just now; the provider may try again. Or the database was too busy to answer in time (database-busy, with Retry-After), or the authorization store couldn’t be reached (authz-backend-unavailable, with Retry-After).

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}
Retry-After
integer
>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

See also