The HackerOne API can be used to query or update information about reports and your HackerOne program.
API tokens can be generated from your Program Settings if you’re already using the HackerOne Professional, Community, or Enterprise edition. If you can’t generate an API token, you can contact sales to upgrade your program or create a test program to experiment with the API.
To get started with the HackerOne API:
- Generate an API Token.
- Go to Core Resources and choose the endpoint you want to pull information from.
- Copy the curl command for the endpoint.
- Paste the curl command in an editor.
- Edit the curl code with your own information.
- Paste the code into your terminal or the program you normally use to run the API call.
If you're using a dedicated tool like Postman, you can easily import our API collection. We've published our Swagger file at https://api.hackerone.com/v1/api-docs/v1/swagger.json. To import the file into Postman:
- Click Import.
- Select Import From Link.
- Paste the Swagger URL into the field.
- Click Import.
The HackerOne API will now be loaded into Postman and will be available as a collection.
HackerOne offers a sandbox for customers to help test API functionality. To create a sandbox program, go here (make sure you're logged in to your HackerOne account. If you don't have an account yet, you can create one here). You can select any product edition, giving you access to almost all features HackerOne offers.
curl "https://api.hackerone.com/v1/reports/129329" \ -u "api_example_company:Ke+2jinhe5jM87P95aAVOz7L3ZWrtSiERtyOkkh5tEQ="
Replace the example credentials in the example above with your own.
HTTP Basic authentication is used to authenticate to the API. As an Admin User you can generate and manage API Tokens from your program's API settings page. The API Token identifier and value are used as the username and password for basic authentication and must be sent in the Authorization header for every request.
If you set up an IP whitelist for your account and provide valid credentials, the server will respond with a 403 Forbidden response. If an invalid token is provided, the server will respond with a 401 Unauthorized response. See the error codes section for more information how these errors are returned.
|400||Bad Request||Request does not conform with the specification. Please see the endpoint's documentation for further instructions.|
|401||Unauthorized||The client sent a request without any form to identification. More information about this error can be found in the Authentication section.|
|403||Forbidden||The API token does not grant the client access to perform this action. This can happen in case where the client requests a resource that belongs to another program or account.|
|404||Not Found||The requested resource is not found. The client might be using outdated information to identify the resource.|
|500||Internal Server Error||This means that there's an error on our side. Our engineering team is notified of these errors, so we try to come up with a solution as soon as possible. If the error persists, please contact firstname.lastname@example.org.|
|503||Service Unavailable||Seems like our servers are offline. You can check our server status at www.hackeronestatus.com.|
The entire API uses a global version. For every backwards-incompatible change, the version is bumped. There is no default version, so the requested version must be specified in the resource URL.
Introducing new attributes or resources are not considered backwards-incompatible and can be added to the latest stable version at any time.
There are open source API clients that are maintained by our customers and hackers. These libraries are welcoming contributions and can be found on GitHub.
February 7, 2020: Added endpoint to add report participants.
January 9, 2020: Added endpoint to transfer reports between related programs
November 20, 2019: Added program management permission requirement to the get awarded swag endpoint.
October 31, 2019: Added endpoint to upload attachments to program policy.
October 30, 2019: Enabled filtering reports by hacker disclosure request. Added attribute to report for timestamp when the reporter agreed for disclosure.
October 28, 2019: Added groups attribute to member object.
October 25, 2019: Added endpoint for redacting reports.
October 24, 2019: Added endpoint for cancelling the report disclosure request.
October 18, 2019: Added attribute for requesting report disclosure to show the disclosure timestamp.
October 15, 2019: Added endpoint for requesting report disclosure.
October 11, 2019: Added endpoint for showing program policy and its attachments.
October 10, 2019: Added endpoint for fetching bounty suggestions.
October 10, 2019: Added endpoint to fetch all program swag.
October 9, 2019: Added endpoint for filtering reports by keywords.
October 9, 2019: Enabled filtering reports by severities.
October 8, 2019: Added endpoint for updating report structured scope.
October 7, 2019: Added endpoint for getting program's balance.
October 7, 2019: Added endpoint for fetching program payment transactions.
October 7, 2019: Added endpoint for fetching program thanks items.
October 3, 2019: Enabled filtering reports by weaknesses.
September 26, 2019: Added endpoint for marking swag as sent.
September 25, 2019: Made title, vulnerability information, impact, and source parameters required for the report create endpoint.
September 5, 2019: Added endpoint to mark a report as ineligible for bounty.
August 29, 2019: Added endpoint for updating program policy.
August 23, 2019: Added endpoint for updating report weakness.
Aug 22, 2019: Added endpoint to create reports.
August 21, 2019: Added endpoint for fetching program weaknesses.
June 26, 2019: Added a severity parameter to create a program bounty, it will set the severity for the created report.
June 25, 2019: Made the recipient parameter optional to create a program bounty and added the claim link to the response.
May 23, 2019: Added filter attribute to include/exclude hacker published reports.
May 15, 2019: Added endpoint to read Audit Log for a Program.
April 24, 2019: Expose Custom Field Attributes on a Program and added endpoint for updating Custom Field Values on a Report.
February 19, 2019: Added endpoint for creating/updating severities on reports.
February 4, 2019: Enabled filtering reports by assignee emails.
December 4, 2018: Added endpoints for fetching, creating, updating, and archiving structured scopes.
November 26, 2018: Added activities endpoint.
November 8, 2018: Enabled filtering reports by assignees.
August 20, 2018: Added attribute to report to show CVE IDs.
July 6, 2018: Added endpoint for fetching specific data of a user.
August 29, 2017: added endpoint for fetching common responses of a program.
August 28, 2017: added endpoints for awarding bounties, suggesting bounties, and for awarding swag.
May 10th, 2017: added last_public_activity_at in favor of last_activity_at. The new attribute can be used in filtering and exposes the date of the last public activity. The last_activity_at attribute will now return the date of the last activity, both public and internal.
March 29th, 2017: added endpoint to disable commenting / locking a report.
March 28th, 2017: added the reports resource that enables the user to update the title of reports that are received by teams the API user is part of.
February 20th, 2017: added the me resource that enables the user to query the programs the API user is part of.
November 23rd, 2016: added ability to set a page size when querying reports.
November 2nd, 2016: added ability to change the state of a report object and added ability to post internal and public comments.
September 23rd, 2016: added endpoint to query more information about a program.
September 21st, 2016: added ability to assign users and groups to a report.
August 24th, 2016: added reputation, signal, and impact metrics of a report's reporter.
July 19th, 2016: removed inlining if a report in the bug cloned activity to avoid a denial of service vulnerability when the original report references the cloned report.
July 19th, 2016: fixed a bug where the time in a date filter was erroneously truncated.
July 18th, 2016: added activity objects for hacker mediation requests and vulnerability types updates.
June 1st, 2016: the endpoint for querying reports now returns descriptive errors in case an invalid filter value is given.
May 23rd, 2016: removed inlined duplicate report object from activities relationship when a single report is fetched.
May 6th, 2016: introduced endpoint to query multiple reports.
April 14th, 2016: introduced endpoint to query a single report.
We strive to build the best API possible to help you fulfill your API use cases. If you have any questions or feedback, feel free to reach out to us at email@example.com.