/api/v1/agents/registerRegister an AI agent and receive a DID and signed JWT. Store the returned token in your agent's environment variables as AGENT_TOKEN — it will not be shown again.
{
"name": "My Email Agent",
"description": "Reads and summarizes emails",
"capabilities": [
"read:email",
"browse:web"
],
"signing_key_pub": "-----BEGIN PUBLIC KEY-----\nMFkw...\n-----END PUBLIC KEY-----",
"key_algorithm": "ES256"
}{
"did": "did:kairos:abc123xyz",
"agent_id": "uuid-here",
"token": "eyJhbGciOiJFUzI1NiJ9...",
"// store as": "AGENT_TOKEN=eyJhbGciOiJFUzI1NiJ9... in your agent .env",
"token_expires_at": "2026-05-26T00:00:00.000Z",
"created_at": "2026-05-25T12:00:00.000Z"
}import { KairosIdentity } from '@kairosai/identity'
const kairos = new KairosIdentity({ apiKey: 'ki_...' })
curl -X POST "https://identity.kairosaistudio.com/api/v1/agents/register" \
-H "Authorization: Bearer ki_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "My Email Agent",
"description": "Reads and summarizes emails",
"capabilities": [
"read:email",
"browse:web"
],
"signing_key_pub": "-----BEGIN PUBLIC KEY-----\nMFkw...\n-----END PUBLIC KEY-----",
"key_algorithm": "ES256"
}'Quick links