Agents
Register Agent
Register a new super-agent or sub-agent
POST
Registers a new agent in the network. Super-agents can only be created by system admins. Sub-agents can be created by admins or their parent super-agent.
Request
string
required
Bearer olive_live_xxx or Bearer eyJ... (JWT)Body Parameters
string
required
Agent type:
super_agent or sub_agentstring
required
Registered business name
string
required
Agent’s first name
string
required
Agent’s last name
string
required
Phone number for login and notifications
string
required
Email address
string
Operating location/address
string
Parent super-agent ID (required for sub-agents)
string
default:"standard"
Commission tier:
standard, premium, customstring
default:"instant"
Settlement mode:
instant, daily, weeklyResponse
boolean
Whether registration succeeded
string
Unique agent UUID
string
Associated user account ID
string
Result message
Examples
Permissions
Credential Delivery
After registration, the agent receives login credentials via WhatsApp to their registered phone number.
Errors
Authorizations
API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'
Body
application/json
Agent registration details
Example:
"1234"
Required fields
Available options:
super_agent, sub_agent Example:
"super_agent"
Example:
"45 Business Road"
Example:
"ABC Money Transfer"
Example:
"Michael Smith"
Example:
"Western Urban"
Example:
Example:
"0778888888"
Default = 1
Required range:
1 <= x <= 3Example:
1
Optional fields
Example:
"michael@abc.com"
Conditionally required
Example:
""
Default = instant
Available options:
instant, weekly, monthly Example:
"instant"