API usage
Access the online documentation
Enable the documentation locally
Interacting with the API

Notes
Last updated
Was this helpful?
Enable debug mode
Start the backend server (make sure that dependencies are installed):
Access the swagger documentation here:
http://127.0.0.1:8000/api/schema/swagger/
Or redoc format here:
Start by creating a PAT, instructions hereGenerating a PAT
Use this token to form your Authorization header, it needs to be as follows:
Authorization: Token <your_token>
Then you can use with any rest client or within your application or script:

Or with curl:
make sure to add the trailing slash '/'
your endpoint is your instance URL. If the proxy settings are the default ones, it will be the same url but with /api/ (in which case you don't need to add it)
Pro SaaS users need to open a support request to expose the API on their instance. It's disabled by default.
Last updated
Was this helpful?
Was this helpful?
export DJANGO_DEBUG=Truepython3 manage.py runservercurl --request GET \
--url http://127.0.0.1:8000/api/assets/ \
--header 'authorization: Token a6a120f....'