Skip to main content

Get Agent

GET/agents/{id}Open in the API playground →

Request

Authorizationstringheaderrequired

Bearer olive_live_xxx or Bearer eyJ... (JWT)

Path Parameters

idstringpathrequired

Agent UUID (e.g., agent_abc123)


Response

agentobject
Agent Object
idstring

Unique agent UUID

typestring

super_agent or sub_agent

business_namestring

Registered business name

first_namestring

Agent first name

last_namestring

Agent last name

phone_numberstring

Contact phone

statusstring

active, suspended, terminated

float_balanceinteger

Current float in cents

float_balance_formattedstring

Formatted balance

parent_agent_idstring

Parent agent (sub-agents only)

sub_agent_countinteger

Number of sub-agents (super-agents only)


Examples

Request
cURL
curl -X GET "https://demo.api.vultlocal.com/api/v1/agents/agent_abc123" \
-H "Authorization: Bearer olive_live_xxx"
Response
200 Super-Agent
{
"agent": {
"id": "agent_abc123",
"type": "super_agent",
"business_name": "ABC Money Services",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+23277123456",
"email": "john@abcmoney.sl",
"location": "Freetown CBD",
"status": "active",
"float_balance": 5000000,
"float_balance_formatted": "5,000,000.00 SLE",
"commission_tier": "premium",
"settlement_mode": "instant",
"sub_agent_count": 12,
"created_at": "2025-01-01T10:00:00Z"
}
}
200 Sub-Agent
{
"agent": {
"id": "agent_xyz789",
"type": "sub_agent",
"business_name": "Corner Shop",
"first_name": "Jane",
"last_name": "Smith",
"phone_number": "+23276654321",
"status": "active",
"float_balance": 500000,
"float_balance_formatted": "500,000.00 SLE",
"parent_agent_id": "agent_abc123",
"parent_agent_name": "ABC Money Services",
"created_at": "2025-01-15T10:30:00Z"
}
}
404 Not Found
{
"error": "Agent not found",
"code": "NOT_FOUND"
}

Errors

StatusCodeDescription
401UNAUTHORIZEDInvalid API key
403FORBIDDENNot authorized to view this agent
404NOT_FOUNDAgent not found
500INTERNAL_ERRORServer error