First Agent
POST/v1/agentsproject:agent
Last updated 2026-02-07
Create request
curl -X POST "$ROOAAK_BASE_URL/v1/agents" \
-H "Authorization: Bearer $ROOAAK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Support Assistant",
"externalId": "customer-user-123",
"personality": "Helpful and concise",
"contextUrl": "https://your-app.com/api/agent-context/customer-user-123",
"alwaysOn": false
}'Notes from implementation
nameis required.userIdis optional, but if provided must be a UUID.- If
userIdis omitted, Rooaak uses generatedagentIdas fallbackuserId. alwaysOn=trueis gated by plan entitlement.- Agent count is checked against project plan limits.
Response
{
"id": "uuid",
"userId": "uuid",
"externalId": "customer-user-123",
"name": "Support Assistant",
"status": "none",
"configVersion": 1,
"appliedConfigVersion": 0,
"pendingConfig": false,
"lastAppliedAt": null,
"createdAt": "2026-02-07T00:00:00.000Z",
"updatedAt": "2026-02-07T00:00:00.000Z"
}