Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Activate an agent

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

Activate an agent so it starts running: Preflight agents on your letters, Analyze agents on their schedule.

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 activated",
"total": 0
}

422 Unprocessable Entity. An Analyze agent needs a frequency and run mode 2 before it can be activated (β€œAnalyze agents must have a frequency.” or β€œAnalyze agents must use scheduled run mode.”).

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