Sophie uses JWT-based authentication & authorization.
To work with its API, first obtain a token.

Obtaining a JWT

Send a POST request to the following endpoint:


The request body should contain the username  and password  parameters, for example:


We recommend using the bash script found here.

Using the JWT

 The obtained token should be sent with every subsequent request under the Authorization  header, e.g.:

curl -X GET \ \
    -H 'Authorization: Bearer eyGhewru351...'


Did this answer your question?