API reference
The Gravv API is a REST API that uses standard HTTP methods and returns JSON responses. All requests go to the base URL:
https://api.gravv.xyz/v1/
Authentication
Gravv generates two key types for each environment:
Public Keyfor client-side useSecret Keyfor server-side use
You can find both keys in your Gravv Dashboard.
Every request requires an Api-Key header, which is your Secret Key:
curl -X GET https://api.gravv.xyz/v1/accounts \
-H "Api-Key: <your-api-key>" \
-H "x-tenant-id: <your-tenant-id>"
Send all requests over HTTPS. Requests without a valid Api-Key return a 401 Unauthorized response. For more information on obtaining and rotating your keys, see Authentication.
Request headers
The request headers for the Gravv API are as follows:
| Header | Description |
|---|---|
Api-Key |
Your API key for authentication. |
x-tenant-id |
Your business identifier. |
Idempotency-Key |
A unique key to prevent duplicate write requests. |
Every POST operations requires an Idempotency-Key header to safely retry requests without creating duplicates.
Endpoints
The API reference contains the following endpoint groups:
-
Create and manage customer details.
-
Verify customer identity and manage compliance checks.
-
Check eligibility for and activate product features for your customers.
-
Create and manage multi-currency accounts.
-
Add and manage external bank accounts and mobile money recipients for outbound transfers.
-
Send funds internally, externally, and internationally.
-
Issue virtual and physical payment cards.
-
Retrieve transaction history and details across accounts.
-
Accept payments via card, bank transfer, and mobile money.
-
Exchange currencies without initiating a transfer.
-
Receive real-time event notifications for payments, transfers, cards, and more.