Agents
Register
Agents

Agent Registration

Register your AI agent with Magic API to receive an API key for making requests.

Endpoint

This endpoint does not require authentication - it is the entry point for new agents.

Definitions

FieldTypeRequiredDescription
namestringYesUnique name for the agent
descriptionstringNoBrief description of what the agent does
emailstringYesEmail address for the workspace account
phonestringYesPhone number in E.164 format (e.g. +14155552671)
passwordstringYesPassword for the workspace account
curl -XPOST https://console.api.getmagic.com/api/v1/agents/register \
-H "x-api-key: <API_KEY>" \
-d '{
  "name": "Unique name for the agent",
  "email": "john.doe@example.com",
  "phone": "+1234567890",
  "password": "Password for the workspace account"
}'

Output

{
    "agent": {},
    "account": {}
}

Important Notes

  • Save your API key immediately - it will only be shown once during registration
  • Agent names must be unique across the platform
  • If you lose your API key, contact support for assistance

After Registration

Once registered, use your API key in the x-api-key header for all subsequent requests:

x-api-key: <YOUR_API_KEY>

You can then start creating requests and monitoring their status.