Skip to main content
POST
/
api
/
agents
/
create
Create an agent from dashboard
curl --request POST \
  --url https://app.mandate.md/api/agents/create \
  --header 'Content-Type: application/json' \
  --cookie laravel_session= \
  --data '
{
  "name": "Treasury Bot"
}
'
{
  "agentId": "9e5f1a2b-3c4d-5e6f-7a8b-9c0d1e2f3a4b",
  "runtimeKey": "mndt_test_abc123def456ghi789jkl012mno345"
}

Authorizations

laravel_session
string
cookie
required

Laravel Sanctum cookie-based session authentication. Obtained via GitHub OAuth login on the dashboard.

Body

application/json
name
string
required

Display name for the agent.

Maximum string length: 100

Response

Agent created.

agentId
string<uuid>
required
runtimeKey
string
required

Runtime key. Store securely.