Jira (API Token) – Connection Guide
Jira issue tracking connected via a service account using an Atlassian email and API token (HTTP Basic auth).
How to Connect to Jira (API Token)
This guide will help you connect your Jira Cloud site to Apideck's Unified API using a service account — an Atlassian email address and API token — instead of OAuth 2.0. This is the recommended option for enterprise integrations that cannot be tied to a named human user.
Prerequisites
Before you begin, make sure you have:
- An active Atlassian account (ideally a dedicated service account) with access to the Jira project(s) you want to integrate
- Permission to read issues, projects, and users; and, if you will create or update issues via Apideck, write access
- Your Jira Cloud ID
How to Get Credentials
Step 1: Get Your Email
Use the email address of the Atlassian account that will own the connection. This is the email you use to log in at id.atlassian.com. For enterprise setups, use a dedicated service-account email rather than a personal one.
Step 2: Generate an API Token
- Go to id.atlassian.com/manage-profile/security/api-tokens
- Click Create API token
- Enter a label (e.g., "Apideck Integration") and click Create
- Copy the generated token immediately — it will not be shown again
Token expiry: Atlassian scoped API tokens expire between 1 and 365 days (default: 1 year). There is no automatic refresh for this connection type — when the token expires, the connection will stop authenticating and you must generate a new token and update it in Apideck Vault.
Step 3: Find Your Cloud ID
Your Cloud ID identifies your Jira site. To find it:
- Log in to your Jira site in a browser.
- Visit
https://<your-site>.atlassian.net/_edit/rest/api/2/serverInfo(replace<your-site>with your subdomain), or open admin.atlassian.com and locate the site. - Alternatively, visit
https://<your-site>.atlassian.net/gateway/api/available-siteswhile logged in — theidfield for your site is the Cloud ID. - Copy the Cloud ID value (a UUID-like string).
Configure in Apideck
Step 1: Enter Your Credentials
In Apideck Vault, enter the following settings:
- Email: The Atlassian account email address
- API Token: The API token generated in Step 2
- Cloud ID: The Cloud ID found in Step 3
Step 2: Save the Connection
Click Save. Apideck validates the connection by listing your Jira projects. If the email, API token, and Cloud ID are all correct, the connection becomes active.
Tip: A common cause of failure is a typo in the Cloud ID — it must be the exact site identifier, not your site subdomain.
Troubleshooting
401 Unauthorized
If you receive a 401 error:
- Verify the email address matches the Atlassian account that generated the token
- Check that the API token is valid and has not expired or been revoked
- Ensure you copied the full API token without extra spaces
404 Not Found / empty results
If requests return 404 or no data:
- Confirm the Cloud ID is correct (see Step 3) — a wrong Cloud ID points requests at the wrong or a non-existent site
- Ensure the service account has access to the Jira project(s) you are querying
403 Forbidden
If you receive a 403 error:
- Confirm the service account has the required permissions (read issues/projects/users; write for creating or updating issues)