Skip to main content

Quick Start

In about five minutes you will create a key and use it to read data from your site.

1. Open the app​

Open API Key Manager from the administration settings of your product (see Installing). At the top of the page you will find the Endpoint URL. Copy it, you need it in step 3.

2. Create a key​

  1. Click Create Key.
  2. Enter a Description, for example Reporting script. Use a unique name per key, see Managing keys.
  3. Leave Valid Until at its default (30 days from today) or pick another date.
  4. Under HTTP Methods, select GET. This makes it a read-only key.
  5. Leave Endpoints blank for now.
  6. Click Add.

The app now shows Your API Key once. Copy it immediately. It cannot be displayed again; if you lose it, revoke the key and create a new one.

3. Make a request​

Every request is a POST to the Endpoint URL, with your key in the apikey header. What you actually want to send to Jira or Confluence goes into the JSON body (this format is explained in Making requests).

curl -X POST <YOUR ENDPOINT URL> --header "apikey: <YOUR API KEY>" --data '
{
"options": {
"method": "GET",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json"
}
},
"url": "/rest/api/3/serverInfo"
}'

You get back exactly what Jira or Confluence returned.

note

Requests made with a key run as the app, not as you. Endpoints that depend on "the current user" therefore return the app's view of things. See How it works.

4. Check the result​

Back in the key list, the Last used column of your key now shows the time of the request.

Next steps​