Skip to content
API Keys

Create an API Key

POST/api/accounts/{accountId}/api-keys

This endpoint allows you to create an API key.

Path parameters

  • accountIdrequired string
    The Account id.

Request body

  • namerequired string
    The alphanumeric name of the API key, must be unique within the account.
  • rolerequired enum
    The role of the API key. See Auth Permissions for what each role can do.
    • account-owner
      Full control of the account and all its resources.
    • merchant-terminal
      Limited to creating and managing payment requests from a point of sale or terminal.

Responses

Request
curl -X POST https://service.centrapay.com/api/accounts/Jaim1Cu1Q55uooxSens6yk/api-keys \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"name": "MyAPIkey",
"role": "merchant-terminal"
}'