Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Deactivate an agent

POST
/api/v3/agents/{agentUuid}/actions/deactivate
curl --request POST \
--url https://api.tryletterhead.com/api/v3/agents/example/actions/deactivate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "api": true }'

Deactivate an agent, pausing its scheduled runs.

agentUuid
required
string

The agent’s unique identifier.

Media type application/json
object
api

Required. Set to true to authenticate with an API key.

boolean
Example
{
"api": true
}

202 Accepted. Returns a JSON envelope with an empty items array, a message, and total 0.

Media type application/json
object
items
Array
message
string
total
integer
Example
{
"message": "Your agent has been deactivated",
"total": 0
}

Still can’t find what you need? Contact support.