[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [%# INTERFACE: # api_keys: array. Array of api keys this user has. # any_revoked: boolean. True is any keys have been revoked. #%]

API keys are used to authenticate WebService API calls. You can create more than one API key if required. Each API key has an optional description which can help you record what each key is used for.

Documentation on how to log in is available here.

Existing API keys

You can update the description, and revoke or unrevoke existing API keys here.

[% FOREACH api_key IN api_keys %] [% IF api_key.last_used %] [% ELSE %] [% END %] [% END %] [% UNLESS api_keys.size %] [% END %]
API key Description (optional) Last used Revoked
[% api_key.api_key FILTER html %] [% api_key.last_used FILTER time %] [% IF api_key.last_used_ip %] ([% api_key.last_used_ip FILTER html %]) [% END %] never used [% IF api_key.revoked %] [% INCLUDE "mfa/protected.html.tmpl" %] [% END %]
You don't have any API keys.
[% IF any_revoked %] Show Revoked Keys [% END %]

New API key

You can generate a new API key by ticking the check box below and optionally providing a description for the API key. The API key will be randomly generated for you.

[% INCLUDE "mfa/protected.html.tmpl" %]