Skip to main content
POST
/
api
/
approval
/
respond
Submit a contact approval/rejection from the webchat widget
curl --request POST \
  --url https://your-instance.example.com/api/approval/respond \
  --header 'Content-Type: application/json' \
  --data '
{
  "approvalRequestId": "64d2f9c5e8a1d4e001a0b1c2",
  "webchatId": "wc_8f3a1b2c4d5e6f70",
  "response": "approved"
}
'
{
  "success": true,
  "status": "approved",
  "result": {
    "bookingId": "bk_64a1b2c3d4e5f60012345678",
    "confirmedAt": "2026-04-22T10:14:00.000Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.tetherai.ca/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
approvalRequestId
string
required

Approval row _id returned in the pending-approvals list.

webchatId
string
required

Webchat session id used to authenticate the responder (when responding via the webchat surface).

response
enum<string>
required

approved or rejected.

Available options:
approved,
rejected

Response

Approval response processed

success
enum<boolean>
required
Available options:
true
status
enum<string>
required
Available options:
approved,
rejected,
failed
result
any
failureReason
string