Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
sessions
/
terminate
Terminate session
curl --request POST \
  --url https://api.pathors.com/v1/projects/{projectId}/sessions/terminate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "session_id": "<string>",
  "phone_number": "<string>",
  "message": "<string>"
}
'
{
  "success": true,
  "sessionType": "<string>"
}

Authorizations

Authorization
string
header
required

Developer key created from the dashboard (Settings → Developer Keys)

Path Parameters

projectId
string
required

The ID of your project

Body

application/json
session_id
string
phone_number
string
message
string

Response

OK

success
boolean
required
sessionType
string
required