Authentication

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

POST /authentication

Content-Type: application/json

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

Will return

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

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

GET /charges

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

results matching ""

    No results matching ""