Schedule Agent Message
/v1/agents/{agent_id}/schedule
Schedule a message to be sent by the agent at a specified time or on a recurring basis.
Path Parameters
agent_id: string
Body Parameters
callback_url: optional string
max_steps: optional number
Returns
id: string
next_scheduled_at: optional string
Schedule Agent Message
curl https://api.letta.com/v1/agents/$AGENT_ID/schedule \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LETTA_API_KEY" \
-d '{
"messages": [
{
"content": [
{
"text": "text"
}
],
"role": "user"
}
],
"schedule": {
"scheduled_at": 0
}
}'
{
"id": "id",
"next_scheduled_at": "next_scheduled_at"
}
Returns Examples
{
"id": "id",
"next_scheduled_at": "next_scheduled_at"
}