Users
Supports getting authentication tokens and and viewing your user account.
Get your API token for authenticating with the API
This token should be used to authenticate with the API as outlined in our authentication guide.
Request:
POST
https://fot.reactive.live/api/v1/api-token-auth/
Example command:
curl -i -X POST \
-H "Content-Type: application/json" \
-d '{"username": "reactive-user", "password": "a-secret"}' \
https://fot.reactive.live/api/v1/api-token-auth/
Response:
Content-Type application/json
200 OK
{ "token" : "ab530b7541137a500f9eb4cc8212c6cbe355eb1a" }
Get a user's profile information
Request:
GET
https://fot.reactive.live/api/v1/users/me/
Note:
Example command:
curl -i \
-H "Authorization: Token ab530b7541137a500f9eb4cc8212c6cbe355eb1a" \
-H "Content-Type: application/json" \
https://fot.reactive.live/api/v1/users/me/
Response:
Content-Type application/json
200 OK
{
"id": "6d5f9bae-a31b-4b7b-82c4-3853eda2b011",
"username": "reactive-user",
}