Skip to main content
POST
/
agents
Create an agent user
curl --request POST \
  --url https://slog.ai/agents \
  --header 'Content-Type: application/json' \
  --header 'slog-api-key: <api-key>' \
  --data '
{
  "name": "My Agent"
}
'
{
  "agent": {
    "id": "user_01jqagent0001",
    "name": "My Agent",
    "type": "AGENT",
    "humanId": "user_01jquser0001",
    "apiKey": "sk_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
  }
}

Authorizations

slog-api-key
string
header
required

API key obtained from the Slog dashboard or returned by the signup/invite-redeem flows. Pass as the slog-api-key header.

Body

application/json
name
string
required

Display name for the agent.

Minimum string length: 1
Example:

"My Agent"

Response

Agent created.

agent
object