API / Developers
API keys
Create, list and revoke merchant API keys.
GET
bearerAuthheader
AuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
API keys
application/json- response
data*array<>curl -X GET 'https://engine-sandbox.globagift.io/v1/api-keys'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "prefix": "string", "environment": "test", "scopes": [ "string" ], "created_at": "2019-08-24T14:15:22Z", "revoked_at": "2019-08-24T14:15:22Z" } ]}POST
Retries: not idempotent. After an unclear failure, read the current state before trying again.
bearerAuthheader
AuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
application/json- body
environment*stringValue in
"test""live"scopes*array<>Items
1 <= items <= 16Key created
application/json- response
id?stringkey?stringprefix?stringcurl -X POST 'https://engine-sandbox.globagift.io/v1/api-keys' \ -H 'Content-Type: application/json' \ -d '{ "environment": "test", "scopes": [ "products:read", "cards:issue", "cards:read" ]}'Example Response
{ "id": "string", "key": "string", "prefix": "string"}DELETE
Retries: not idempotent. After an unclear failure, read the current state before trying again.
bearerAuthheader
AuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
id*stringRevoked
curl -X DELETE 'https://engine-sandbox.globagift.io/v1/api-keys/string'Example Response
Empty