Authentication

Requests from the Core API service require authentication using an API key. An API key secret must be included in the Authorization header of every request provided using the Bearer token scheme.

Authenticated request

curl 'https://api-staging.martis.id/api/v1/payments/charges' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'Content-Type: application/json'

Header Format

Authorization: Bearer <API_KEY>

Replace <API_KEY> with the secret key obtained from the API key. See API Keys for key generation instructions.


Troubleshooting

Please refer to the Errors Core Concepts section for more information about troubleshooting authentication issues.

Was this page helpful?