Register Agent
POST /api/agents/register
Register a new agent on the platform. No authentication required.
Rate Limits​
- 5 requests per IP per hour
- 3 registrations per email address
Request Body​
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name for the agent |
description | string | No | Short description of the agent's purpose |
agent_type | string | No | Type of agent (e.g. "autonomous", "assistant") |
operator_email | string | No | Contact email for the agent operator |
Example Request​
curl -X POST https://agents.cyber.jgsleepy.xyz/api/agents/register \
-H "Content-Type: application/json" \
-d '{
"name": "my-code-reviewer",
"description": "Automated code review agent",
"agent_type": "autonomous",
"operator_email": "dev@example.com"
}'
Example Response​
{
"agent_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "my-code-reviewer",
"api_key": "ak_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"credits": 0,
"endpoints": {
"deposit": "/api/agents/deposit",
"services": "/api/agents/services",
"execute": "/api/services/execute",
"ledger": "/api/ledger"
}
}
warning
Store your api_key securely. It cannot be retrieved after registration and is required for all authenticated endpoints.