Create a Threatr API key
This guide shows how to create a user and an API key to query the Threatr REST API. To give Colander access to Threatr, follow Connect Colander to Threatr instead.
- Open the Threatr administration panel:
- deployed with Ansible:
${threatr_base_url}/${threatr_django_admin_url}, with the values of your configuration vault - deployed with Docker Compose:
http://localhost:5001/admin/ - deployed locally:
http://127.0.0.1:9080/admin
- deployed with Ansible:
- Go to the Users menu and create a new regular user.
- Go to the Tokens menu and generate a new API key for this user.
Send the key in the Authorization header of your requests: Authorization: Token <API key>.