# Receive texts from a provider

POST

/v1/texts-inbound/{tenantId}/{appId}

```sh
curl --request POST \
  --url https://example.com/v1/texts-inbound/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
  --header 'Content-Type: */*' \
  --data binary
```

Where a texting provider delivers to a texts registration: an inbound text, or a delivery status. No sign-in, and a bearer token, if sent, is never read. The provider’s own signature over the URL it called and the body’s exact bytes is what the server checks, with the registration’s credential, before anything is written. Every request that doesn’t prove its sender (an unknown workspace or registration, a bad or missing signature, a body over the cap) is the same `401 texts-inbound-refused`. A client past its refusals this minute gets `429`. If the server couldn’t check or take the texts just now, `503 texts-inbound-unavailable`: the provider may send them again.

## Parameters

### Path Parameters

**tenantId**

required

string format: uuid

The workspace that owns the registration.

**appId**

required

string format: uuid

The texts registration id (`appId`).

## Request Bodyrequired

The provider’s signed delivery, any content type: a form post from one provider, JSON from another.

\*/\*

string format: binary

## Responses

### 200

Taken. The provider’s answer, as it expects one: XML (such as an empty `<Response></Response>`), plain text or JSON.

string

### 401

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

application/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

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 413

The request body is over the API’s limit (`request-too-large`; `details.maxBytes` says how much).

application/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

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 429

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

application/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

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

#### Headers

**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.

### 503

`texts-inbound-unavailable`: the texts couldn’t be checked or taken just now; the provider may send them again. `authz-backend-unavailable` (with `Retry-After`): the authorization store couldn’t be reached, so the request wasn’t run. `database-busy` (with `Retry-After`): the database was too busy for the authorization check, so the request wasn’t run.

application/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

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

#### Headers

**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

- [`GET /v1/texts-inbound/{tenantId}/{appId}`: Answer a provider's handshake](https://docs.kindgi.com/v0.7.0/reference/api/operations/textsinboundhandshake.md)
- [Error code `authz-backend-unavailable`](https://docs.kindgi.com/v0.7.0/reference/errors.md#authz-backend-unavailable)
- [Error code `database-busy`](https://docs.kindgi.com/v0.7.0/reference/errors.md#database-busy)
- [Error code `rate-limit-exceeded`](https://docs.kindgi.com/v0.7.0/reference/errors.md#rate-limit-exceeded)
- [Error code `request-too-large`](https://docs.kindgi.com/v0.7.0/reference/errors.md#request-too-large)
- [Error code `texts-inbound-refused`](https://docs.kindgi.com/v0.7.0/reference/errors.md#texts-inbound-refused)
- [Error code `texts-inbound-unavailable`](https://docs.kindgi.com/v0.7.0/reference/errors.md#texts-inbound-unavailable)
- [Every error code](https://docs.kindgi.com/v0.7.0/reference/errors.md)
