API Authentication

Authentication

The Scalapay API uses Bearer authentication (also called token authentication), a simple authentication scheme built into the HTTP protocol, that involves security tokens called bearer tokens.
All API endpoints require this form of authentication. Failure to correctly authenticate an API request will result in a "401 Unauthorized" response.

Consider the following example.

Secret API Key
qhtfs87hjnc12kkos

The Authorization header can then be formed by including the word Bearer, followed by a single space character, followed by the secret key credential

Final Result
Authorization: Bearer qhtfs87hjnc12kkos