Skip to main content
The external admin API lets your internal tools read accessible programs and reports, triage findings, record known issues, and create GitHub Security Advisory drafts. API access follows the token owner’s current Hackrate roles.

Create a token

Open Profile settings → External API. Give the token a recognizable name, choose the permissions it needs, and set an expiration of 30, 90, or 365 days. Click Create token, then copy the secret into your secret manager. Hackrate shows the full token only once. You can have up to 10 active tokens and revoke one from the same page. Send the token as a bearer credential:
A token scope grants access within its owner’s current role. Role changes take effect immediately, and revocation stops the next request.

API versions

Open the API reference tab and choose a dated group in the sidebar. Both releases use https://www.hckrt.com/api/v1/admin and the same personal tokens. You can also download the current OpenAPI document from the platform.

Work with GitHub Security Advisories

These operations are available in API-2026-11-25. To create a draft, use a GitHub App installation with access to the selected repository and Repository security advisories write permission. The report must be accepted or closed. To create a draft, use a repoId from repository discovery and supply the advisory summary, description, ecosystem, package name, affected versions, and patched versions. You can optionally credit a GitHub user as the reporter or start a temporary private fork. The advisory uses the severity and CWE from the report. A 201 response includes the GitHub draft URL and its ghsaId. If timelineCommentRecorded is false, the GitHub draft exists and Hackrate could not record its internal timeline comment. Check the repository for the draft before retrying a request with an uncertain outcome. Advisory lookup finds GHSA IDs in the report’s team summary and timeline comments. To open a private draft, use the repository URL returned when you created it.

Review API access for a program

Open the program’s Manage page and find the API card under integrations. It lists users who have an active personal API key and access to that program, including access through admin groups, business units, or individual reports. The card shows each user’s role. Click Create my API key to open your personal token settings. Each key belongs to a user. The list does not grant access or change permissions. Revoke your own key from Profile settings → External API, or update a user’s assigned access through the program’s permissions. For report search, the API supports filters and cursor pagination. Pass nextCursor back unchanged with the same filters and sort order to fetch the next page.