Note that all the examples below are from the Linux command line but since all API calls are HTTP requests, the API can be accessed similarly with any language that supports HTTP.

The first step is to use your credentials to obtain a token and get your user id:

curl -s -X POST -H 'Content-Type: application/json' \ \
-d '{"username":"my_username","password":"my_password"}'

This will return a JSON message with a token and your user id similar to this one:

    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"

See the API reference for mode details.