POST
/
developer
/
api-keys
curl --request POST \
  --url https://api.chargeapi.com/v1/developer/api-keys \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "scopes": [
    "read"
  ],
  "expiry": "2023-11-07T05:31:56Z"
}'

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required

Friendly name for the API key

scopes
enum<string>[]
required
Available options:
read,
write,
admin
expiry
string

Optional expiration date