Skip to main content

How it works

The proxy​

API Key Manager is a small proxy that sits in front of the REST API of your site.

Your scriptor integrationAPI Key Managerchecks the keyJira / ConfluenceREST APIPOST request+ apikey headerforwards the requestresponseresponse

For every request the app:

  1. looks up the key you sent in the apikey header,
  2. checks that the key has not expired,
  3. checks that the HTTP method and the endpoint are allowed for this key,
  4. forwards the request to Jira or Confluence,
  5. records the time in the key's Last used field and returns the response.

If any check fails, the request is not forwarded and you get a 403. See Errors.

Keys run as the app, not as a person​

A request made with a key is executed as the app, not as the administrator who created the key and not as any other user. Two consequences:

  • A key does not inherit anyone's permissions, and it keeps working if that person leaves or loses access.
  • A key can never do more than the app itself is allowed to do.

By default a key may use everything the app may use. You then narrow it down with HTTP methods and endpoints, or use a key type that is already narrow.

What a key can reach​

The ceiling is the set of permissions (scopes) you approved when installing the app. In broad strokes:

AreaJiraConfluence
ContentIssues, comments, projects, project settingsPages, blog posts, comments
MetadataIssue properties, JQL searchContent properties, content permissions (read)
StructureBoards, sprints, epics (Jira Software)Spaces
Files–Attachments (upload and download)
PeopleUsers (read)Groups
Service managementRequests and customers–
Development dataBuilds, deployments, feature flags, remote links, dev info–
ConfigurationJira configuration, security levelsGlobal settings
SearchJQLCQL

The exact list is shown on the Marketplace listing and in Atlassian's install consent screen. An endpoint outside these scopes fails even if a key allows it: Atlassian answers with an authorization error (see Troubleshooting).

Key anatomy​

Every key has:

PropertyMeaning
DescriptionA name you choose. It is how you recognise the key in the list.
KeyA random 34-character secret. Shown once at creation, never again.
Valid UntilThe expiry date. See Expiry.
Allowed methodsThe HTTP methods the key may use. Blank means all.
Allowed endpointsThe API paths the key may call. Blank means all.
Last usedWhen the key last made a request that was forwarded to Jira or Confluence.

Jira only: keys also have a type: Generic, Create Issue or Stored JQL. The latter two come with a fixed, narrow scope. See Key types.

Where keys are stored​

Keys are stored as encrypted secrets in Atlassian's Forge storage for your site. The list in the app never contains the key values themselves, which is why a key can only be copied at creation. A single key record is limited to 200 KiB; you will only hit that with absurdly long endpoint lists.

Rate limits and Atlassian's own rules​

API Key Manager does not add rate limiting of its own. Atlassian's REST API limits apply, and an error from Atlassian (for example 429 Too Many Requests) is passed back to you unchanged.