Create a key in Settings, then send it as a Bearer token. Every request is scoped to your own account — an agent, conversation, or routine that isn't yours will 404. Sending a message or running a routine counts against your plan's message limit, same as the chat UI.
curl https://bot.kru.ai/api/v1/agents \ -H "Authorization: Bearer bk_live_..."
/api/v1/messages
{"agent_id": "...", "message": "..."}
/api/v1/agents
/api/v1/agents
{"name": "...", "persona": "...", "role_description": "...", "model": null}
/api/v1/agents/{id}
{"name": "..."}
/api/v1/conversations
/api/v1/conversations/{id}/messages
/api/v1/routines/{id}/run
/api/v1/usage