Skip to main content
POST
/
api
/
v1
/
agents
/
{agentId}
/
lifecycle
Transition agent lifecycle stage
curl --request POST \
  --url https://forge.gloo.ai/api/v1/agents/{agentId}/lifecycle \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "draft",
  "reason": "<string>"
}
'

Authorizations

Authorization
string
header
required

API key from /api/v1/keys. Pass as Authorization: Bearer <key>.

Path Parameters

agentId
string
required

Body

application/json
to
enum<string>
required
Available options:
draft,
active,
suspended,
archived
reason
string

Response

Transition completed