{% extends "withnav_template.html" %} {% from "components/table.html" import list_table, field, hidden_field_heading %} {% block page_title %} GOV.UK Notify | API keys and documentation {% endblock %} {% block maincolumn_content %}
To connect to the API you will need to send your service ID, encrypted with an API key. The API key stays secret.
There are client libraries available which can do this for you. See the developer documentation for more information.
{{ service_id }}
{% call(item) list_table( keys, empty_message="You haven’t created any API keys yet", caption="API keys", caption_visible=False, field_headings=['Key name', hidden_field_heading('Action')] ) %} {% call field() %} {{ item.name }} {% endcall %} {% if item.expiry_date %} {% call field(align='right', status='default') %} Revoked {{ item.expiry_date|format_datetime }} {% endcall %} {% else %} {% call field(align='right', status='error') %} Revoke {% endcall %} {% endif %} {% endcall %} {% endblock %}