REST APIs
This page is about OKR for Jira Cloud. Using Data Center? Click here.
REST API provides a convenient way to integrate your OKR data with external tools and workflows. This documentation outlines the process for generating an API token, authenticating requests, and using the available methods to interact with your OKR data.
Generating an API token
From the Jira top bar, navigate to Apps > OKR for Jira.
From the app side menu, click Settings > API.
Click the Generate new token button in the top right corner of the page.
Give the token a name and click Create.
Copy the generated API token and store it securely, as you won't be able to retrieve it later.
Authentication
All requests made to the OKR for Jira API require authentication using your generated API token. This is achieved by including an API-Token
header in your requests. If the header is not present, you will receive a “400 Bad Request” response.
Please make sure you use API-Token
header, not the Authentication
header.
API administrator table
OKR for Jira enables you to oversee all API tokens created within your organization. Users with the API_ADMIN_TABLE_ACCESS
permission have access to an expanded view on the API settings page. The API administrator table allows you to see, rename, or revoke any token within your organization.
API response
All API fetch methods return the same JSON object structure. The presented data depends on your query parameter.
API methods
The OKR for Jira API provides several methods for retrieving, updating, and managing your OKR data. These methods are categorized into: