Developers

Search for documents

Dev

API Keys

Operations related to API keys

All endpoints require a JWT Bearer token in the Authorization header.

POST /v1/api-keys

Create a new API key

Request body (required)

Merchant IDs or brand ID to associate with the new API key

Field

Type

Required

Description

merchants

array<string>

No

List of merchant IDs that can use this API key

brand

string

No

_id field of a brand.

Responses

Status

Description

201

API key created successfully

400

Invalid input

404

One or more merchant IDs were not found

201 response schema

Field

Type

Required

Description

key

string

No

The created API key

DELETE /v1/api-keys

Delete an existing API key

Request body (required)

API key to delete

Field

Type

Required

Description

key

string

Yes

The API key to remove from the system

Responses

Status

Description

204

API key deleted successfully

404

API key not found