Register a new super-agent or sub-agent
Bearer olive_live_xxx or Bearer eyJ... (JWT)super_agent or sub_agentstandard, premium, custominstant, daily, weekly| User Role | Can Create Super-Agent | Can Create Sub-Agent |
|---|---|---|
| System Admin | Yes | Yes |
| Super-Agent | No | Yes (own network) |
| Sub-Agent | No | No |
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_REQUEST | Missing required fields |
| 400 | MISSING_PARENT | parent_agent_id required for sub-agents |
| 401 | UNAUTHORIZED | Invalid API key |
| 403 | FORBIDDEN | Not authorized to create this agent type |
| 409 | DUPLICATE_PHONE | Phone already registered |
| 409 | DUPLICATE_EMAIL | Email already registered |
| 500 | INTERNAL_ERROR | Server error |
API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'
Agent registration details
"1234"
Required fields
super_agent, sub_agent "super_agent"
"45 Business Road"
"ABC Money Transfer"
"Michael Smith"
"Western Urban"
["[\"https://s3.amazonaws.com/doc1.pdf\"]"]
"0778888888"
Default = 1
1 <= x <= 31
Optional fields
"michael@abc.com"
Conditionally required
""
Default = instant
instant, weekly, monthly "instant"