Skip to main content
POST
/
agents
/
{agentId}
/
toggle
Enable or disable an agent
curl --request POST \
  --url https://app.autoposting.ai/api-proxy/agents/{agentId}/toggle \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": false
}
'
{
  "success": true,
  "data": {
    "id": "agent_01HXYZ",
    "enabled": false
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Path Parameters

agentId
string
required

Agent ID.

Body

application/json
enabled
boolean
required

true to enable, false to disable.

Response

Toggle result.

success
boolean
data
object

An AI agent that autonomously generates and schedules content.