Overview
The Hacker API uses JSON and follows RESTful principles. All requests and responses are in JSON format.
Response Format
Single resources are returned in a data object with id, type and attributes:
{
"data": {
"id": "resource-id",
"type": "resource-type",
"attributes": {
"field1": "value1",
"field2": "value2"
}
}
}
The engagement list (GET /v1/engagements) returns a data array of engagements together with a pagination object. The submission list (GET /v1/submissions) returns a data array of flat submission summaries together with a pagination object. Each summary has a links.self URL for retrieving the full submission:
{
"data": [
{
"id": "submission-id",
"engagement_id": "engagement-id",
"title": "Stored XSS in profile name",
"state": "triaged",
"severity": "p3_moderate",
"needs_action": false,
"last_activity_at": "2026-10-01T12:00:00Z",
"links": {
"self": "/v1/submissions/submission-id"
}
}
],
"pagination": {
"offset": 0,
"limit": 20,
"total_count": 1,
"has_more": false
}
}
Including Related Resources
GET /v1/submissions/{id} supports the include query parameter to sideload related resources in an included array. The supported value is activities:
GET /v1/submissions/{id}?include=activities
Unsupported values return 400 invalid_include.
Common Parameters
GET endpoints share query parameters that behave in the same way.
Both index and single resource:
Index only:
Filtering
GET /v1/submissions accepts the following optional filters:
-
state- Submission state, for examplenew,triaged,unresolved,resolved,informational,not_applicable,not_reproducibleorout_of_scope -
severity- One ofp1_critical,p2_high,p2_severe,p3_moderate,p4_loworp5_informational -
engagement_id- Only return submissions for this engagement -
needs_action- Set totrueto only return submissions that are waiting on an action from you
Example:
GET /v1/submissions?state=triaged&needs_action=true
Sorting
Sort results with the sort parameter. Prefix a field with - for descending order. Supported fields are created_at, updated_at, priority, last_activity_at and substate. The default is -created_at.
Unsupported state, severity and sort values return 400 invalid_state, 400 invalid_severity and 400 invalid_sort.
Example:
GET /v1/submissions?sort=-last_activity_at
Pagination
GET /v1/engagements and GET /v1/submissions support pagination using query parameters:
-
limit- Number of results to return (min: 1, max: 100). For submissions the default is 20. For engagements there is no default: if you omitlimit, every engagement is returned. -
offset- Number of results to skip (default: 0)
Use pagination.has_more in the response to tell whether there are more results to fetch.
Example:
GET /v1/submissions?limit=50&offset=100
Engagements are returned newest first. GET /v1/engagements does not support filtering or sorting.
Creating Submission Drafts
POST /v1/submissions creates a submission draft. The draft=true query parameter is required. Only drafts can be created through the API, and requests with draft=false return 403 draft_submission_required.
The request body takes engagement_id (required), title, description, bug_url, vulnerability_type (a VRT ID) and target (a target ID). See Headers for an example request.
If the target or vulnerability type is out of scope for the engagement, the draft is still created, and the response includes a validation_messages array describing the problem. For a vulnerability type, the detail is the engagement’s note for the matching scope rule when it has one:
{
"data": { "...": "..." },
"validation_messages": [
{
"code": "out_of_scope",
"detail": "The specified target is not in scope for this engagement.",
"field": "target"
}
]
}
Creating a draft returns 403 submissions_not_accepted if the engagement is not accepting submissions, and 400 invalid_draft_flag if draft is missing or is not true or false.
Use GET /v1/engagements/{id}/scope to check an engagement’s targets and VRT scope rules before you create a draft.
Error Handling
Errors are returned with appropriate HTTP status codes and an errors array. Each error has a status, a stable machine-readable code and a detail message, and may include a field (for validation errors) and meta (extra structured data):
{
"errors": [
{
"status": "400",
"code": "invalid_include",
"detail": "Unsupported include: comments.",
"meta": {
"supported_includes": ["activities"]
}
}
]
}
Common status codes:
-
400 Bad Request - The request is invalid, for example an unsupported
include,state,severityorsortvalue, an invalid or missingdraftflag, or a request body that is not valid JSON (invalid_json) - 401 Unauthorized - The token is missing, invalid, revoked or expired. See Authentication.
- 403 Forbidden - Your account or token is not allowed to perform this action
-
404 Not Found - The resource does not exist or is not available to you. For a submission the code is
submission_not_found. -
422 Unprocessable Content - The request body failed validation, for example an unknown VRT ID. The
fieldproperty names the invalid field. - 429 Too Many Requests - You have exceeded the rate limit
- 500 Internal Server Error - Something went wrong on our side. Try again later.
Rate Limiting
Requests are rate limited per API token:
-
Read requests (
GETandHEAD): 60 requests per minute -
Write requests (
POSTand other methods): 20 requests per minute
The same limits also apply to your account, shared by all of its tokens: two tokens making 30 reads each use up your account’s 60 reads for that minute. Separately, each IP address may make 120 requests per minute across all tokens.
GET /v1/health counts as a read request.
Requests that exceed the limit receive a 429 Too Many Requests response with a Retry-After header giving the number of seconds to wait before retrying. The 429 response does not use the standard errors format. Its body is the plain text Retry later, or, if the request has the Content-Type: application/json header, {"error": "Too many requests, retry later", "success": false}.