POST /customers.
Request flow
Authenticate with client credentials
Encode
clientId:clientSecret using HTTP Basic auth. These values are bound to a specific project so the resulting customer inherits that project/organisation context.Create the customer
Call
POST /customers with a unique id for the customer. You can optionally attach metadata to store additional information.cURL
id already exists, the endpoint returns the existing customer and a fresh access_token.
Using the GnosisRamp JWT
- Include it on every authenticated call:
Authorization: Bearer <access_token>. - Re-run the customer creation call when you receive
401 Unauthorizedto get a fresh token. - Generate one token per active session; do not share JWTs between customers.
Error handling
| Status | When it fires | How to resolve |
|---|---|---|
401 Unauthorized | Missing or invalid Basic auth credentials. | Verify your clientId and clientSecret. |
400 Bad Request | id missing or empty. | Supply a valid id string in the request body. |