Authentication
Project API tokens: create one, choose its access and expiry, send it, and keep it safe.
Every call from outside Jira uses a project API token. A token belongs to one project and can only call that project’s routes.
Before you start
Section titled “Before you start”- The site’s plan includes API access: Pro or Enterprise. On other plans the card says API access isn’t included in your plan.
- You’re a Jira Admin or an admin of the Jira project. API tokens live in Project settings, which only they can open.
Create a token
Section titled “Create a token”- Project settings›Qmpass.ai›Project Settings›API tokens
Name it and choose its access
Section titled “Name it and choose its access”Give it a Token name, such as the pipeline that will use it, then choose:
- Access: Read only (
project:read) for reads, or Read & write (project:readandproject:write) to also start gate evaluations and push builds and deployments. - Expires: 30 days, 90 days (the default) or 1 year. Every token expires.
Select Create token.
- Access: Read only (
- Project settings›Qmpass.ai›Project Settings›API tokens
Copy it once
Section titled “Copy it once”Copy the token. It looks like
qmp_proj_<publicId>_<secret>, and Qmpass.ai keeps only a hash of it, so it can’t be shown again. Use in a pipeline shows the command to paste.You'll see Copy the token now — it is shown only once.
Send it
Section titled “Send it”Send the token as a bearer token on every request:
curl https://api.qmpass.ai/api/v1/projects/current/milestones \ -H "Authorization: Bearer $QMPASS_TOKEN"- The project in the path: use the Jira project’s numeric id,
/api/v1/projects/10000/…, orcurrent,/api/v1/projects/current/…, which always means the token’s own project. A token used on another project’s path is refused. - Reads and writes: a Read only token can call
GETroutes. Anything else, including aPOSTthat only reads, needs Read & write.
What a token can’t call
Section titled “What a token can’t call”A token only reaches its own project’s routes. It can’t call account, billing, subscription or admin routes, or, inside the project: settings, roles and access, token management, per-person routes, Ask Qmpass or a gate’s sign-off, which is a person’s approval. A Read & write token can do what a project Member can; steps only a Quality Owner takes stay closed to it.
Rotate, revoke and expiry
Section titled “Rotate, revoke and expiry”Each token’s row shows its Access, Expires, Last used and Created dates.
- Rotate token issues a new secret with the same access and expiry date. Update your pipeline’s secret with it.
- Revoke token stops it for good: “Pipelines using this token will stop working immediately.”
- A token also stops working when it expires, when the project is turned off, or when the plan loses API access. These changes can take up to 30 seconds to apply.
Jira Admins can see and revoke every project’s tokens in Jira admin›Apps›Qmpass.ai›Account Settings.