{% extends "layouts/settings.html" %} {% block title %}API key issued · DemandTrail Messaging{% endblock %} {% block page_header %}

API key issued

{% endblock %} {% block content %} {% comment %} The one and only render of this value. It is not in the session, not in a message and not fetchable again: the row holds a keyed digest, not the key (CONTRIBUTING → Secrets). This is a direct response to the POST rather than a redirect for the reason apps/api/views_keys.py documents — the messages framework stores in the session, which is a database table here. {% endcomment %}

Copy this key now. It is not shown again.

{{ plaintext }}

Using it

Send it as a bearer token on every request:

Authorization: Bearer {{ plaintext }}

“{{ api_key.name }}” acts in {{ workspace.name }} and nowhere else. Revoking it takes effect on the very next request. If you lose it, revoke it and issue another. It cannot be recovered.

Read the API reference

Done

{% endblock %}