API Keys
Note
API Keys are required for HTTPS only connections
In addition to corporate code and passcode, partners must authenticate their requests with an x-api-key header provided by Onafriq, as shown below.
x-api-key: TPToIddFi4IAMF33w
A request submitted without the Onafriq API key receives the following error.
HTTP/1.1 403 Forbidden
Date: Wed, 09 Jan 2019 14:06:05 GMT
Content-Type: application/json
Content-Length: 42
Connection: keep-alive
x-amzn-RequestId: b48159cf-1417-11e9-85b4-b30711106628
x-amzn-ErrorType: MissingAuthenticationTokenException
x-amz-apigw-id: TPToIFi4IAMF33w=
{"message":"Missing Authentication Token"}
Updated 27 days ago
What’s Next