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:

https://<YOUR_DOMAIN>/auth/realms/Loom/protocol/openid-connect/auth?client_id=loom-webapp&response_mode=fragment&response_type=code&scope=openid

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

username=john&password=correct+horse+battery+staple

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 \
    https://acme.loomsystems.com/api/v1/metadata \
    -H 'Authorization: Bearer eyGhewru351...'

 

Did this answer your question?