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
- Jira
- Confluence
- Click Create Key.
- Enter a Description, for example
Reporting script. Use a unique name per key, see Managing keys. - Leave Valid Until at its default (30 days from today) or pick another date.
- Under HTTP Methods, select GET. This makes it a read-only key.
- Leave Endpoints blank for now.
- Click Add.
- Click Add Key.
- Enter a Description, for example
Reporting script. Use a unique name per key, see Managing keys. - Leave Valid Until at its default (30 days from today) or pick another date.
- Under HTTP Methods, select GET. This makes it a read-only key.
- Leave Endpoints blank for now.
- 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).
- Jira
- Confluence
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"
}'
curl -X POST <YOUR ENDPOINT URL> --header "apikey: <YOUR API KEY>" --data '
{
"options": {
"method": "GET",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json"
}
},
"url": "/wiki/rest/api/content?limit=5"
}'
You get back exactly what Jira or Confluence returned.
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
- Narrow the key down with endpoint restrictions.
- Look at the other key types (Jira).
- Copy a ready-made snippet for your language from the samples.
- Something went wrong? See Troubleshooting.