...
In order to use the API, you will need to provide an authorization token.
When making an API call, use -H 'Authorization: Token 123abc'
, replacing 123abc
with your token.
If you are using Swagger UI, click on the ‘Authorize’ button and use value Token 123abc
, replacing 123abc
with your token.
You can generate an authentication token from your username and password with a
Status | ||||
---|---|---|---|---|
|
/accounts/api-token-auth/
call, with the following request body: ...
If you fail to authenticate, any API calls (except for /accounts/api-token-auth/
) will return an error code 401
.
When making an API call, use -H 'Authorization: Token 123abc'
, replacing 123abc
with your token.
If you are using Swagger UI, click on the ‘Authorize’ button and use value Token 123abc
, replacing 123abc
with your token.
If you are using something like Postman, click on Headers and add these, replacing 123abc
with your token.
...
Error Codes
The API uses conventional HTTP response codes to indicate the success or failure of an API request.
...