Authentication

The /authentication endpoint creates an authentication token (as a JSON web token (JWT)) to use for other authenticated requests.

POST https://api.bidali.com/authentication

Content-Type: application/json

{
  "strategy": "local",
  "email": "<user email>",
  "password": "<user password>"
}

Will return

{
  "accessToken": "<valid JWT>"
}

Postman example

This accessToken should be set as the Bearer in the Authorization header for other requests that require authentication:

GET https://api.bidali.com/charges

Content-Type: application/json
Accept: application/json
Authorization: Bearer <valid JWT>

Postman Bearer example

results matching ""

    No results matching ""