AmalaID Verification
The Amala verification endpoint provides programmatic access to an individual's basic information via the Amala ID linked to his/her account.
Base URL
Endpoint
Request Headers
You can use either the API key or Bearer Token for Authorization
Content-Type
application/json
Specifies that the request body is in JSON format.
Authorization
Bearer <token>
Bearer Token for authentication.
x-api-key
API KEY
API Key for authentication.
Request Body
The request body should contain Amala ID details in JSON format.
Example Request
Request Body Schema
amalaId
string
✅
The Amala ID assigned to the individual.
firstName
string
✅
First name of the individual.
lastName
string
✅
Last name of the individual.
reference
string
✅
A unique transaction reference.
serviceProviderCode
string
✅
Code identifying the service provider.
Responses
Success Response (200 OK)
If the Amala ID is valid, the API returns user details as per the GetAmalaIdResponseApiResponse
schema.
Error Responses
400
Bad Request (Invalid Amala ID)
{ "success": false, "message": "Invalid Amala ID.", "code": "400" }
401
Unauthorized (Invalid API Key)
{ "success": false, "message": "Unauthorized access.", "code": "401" }
500
Internal Server Error
{ "success": false, "message": "Something went wrong.", "code": "500" }
Usage Example (cURL)
Last updated