Skip to main content
POST
/
sms-conversations
/
{id}
/
close
Close an SMS conversation
curl --request POST \
  --url https://api.pamhq.com/v1/sms-conversations/{id}/close \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "<string>"
}
'
{
  "data": {
    "conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "queued",
    "endedAt": "2023-11-07T05:31:56Z",
    "endReason": "<string>",
    "alreadyClosed": true
  },
  "meta": {
    "request_id": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.pam.ai/llms.txt

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

Authorizations

Authorization
string
header
default:pk_live_your_api_key
required

API key provided as Authorization: Bearer <key>.

Path Parameters

id
string<uuid>
required

Conversation ID.

Body

application/json
reason
string

Optional close reason. Defaults to admin_closed when omitted.

Required string length: 1 - 128

Response

Conversation closed

data
object
meta
object