Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Get an agent

GET
/api/v3/agents/{agentUuid}
curl --request GET \
--url 'https://api.tryletterhead.com/api/v3/agents/example?api=true' \
--header 'Authorization: Bearer <token>'

Get a single agent by its unique identifier.

agentUuid
required
string

The agent’s unique identifier.

api
required
boolean

Required. Set to true.

200 OK

Media type application/json
object
items
object
uniqueId
string
name
string
type
integer
guidelines
string
status
integer
runMode

How the agent runs: 0 manual, 1 automatic, 2 on a schedule.

integer
Allowed values: 0 1 2
frequency

The run schedule, or null when the agent has none. Includes mode, time, emailNotifications, and either daysOfWeek or dayOfMonth.

object
validationCode

Validation status code for the agent. Defaults to 200.

integer
lastRunAt
string
nullable
channels
Array<string>
createdAt
string
updatedAt
string
message
string
total
integer
Example
{
"items": {
"uniqueId": "mofuehvagv",
"name": "House style checker",
"type": 0,
"guidelines": "> Check the draft against our house style guide.\n> - Use the serial comma.\n> - Spell out numbers under 10; use numerals for 10 and above.\n> - Em dashes take no surrounding spaces.\n>\n> Flag every violation with the specific line it appears on.",
"status": 1,
"runMode": 0,
"frequency": null,
"validationCode": 200,
"lastRunAt": "2026-06-18T14:22:09+00:00",
"channels": [
"the-daily",
"weekend-reads"
],
"createdAt": "2026-04-11T10:05:33+00:00",
"updatedAt": "2026-06-18T14:22:09+00:00"
},
"message": "Agent retrieved.",
"total": 1
}

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