Chat threads API
A person takes over a customer's chat thread and hands it back.
The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.
GET/v1/threads/{contact}/control
Who has a chat thread
Whether a person has taken the customer's thread over, and since when. Needs threads:read.
Scope threads:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
contact | path | string | Yes | The contact's id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/threads/{contact}/takeover
Take over a chat thread
While a person has the thread the assistant stays quiet on every chat channel. What the customer writes meanwhile is stored, shown and noted for the hand-back. Needs threads:write.
Scope threads:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
contact | path | string | Yes | The contact's id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/threads/{contact}/release
Hand a chat thread back
The assistant carries on and is told a person spoke with them, so it does not repeat or contradict what was said. Needs threads:write.
Scope threads:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
contact | path | string | Yes | The contact's id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |