Skip to main content
POST
/
api
/
hackerone
/
programs
/hackerone/programs
curl --request POST \
  --url https://api.anysite.io/api/hackerone/programs \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "handle": "<string>",
  "timeout": 300
}
'
import requests

url = "https://api.anysite.io/api/hackerone/programs"

payload = {
"handle": "<string>",
"timeout": 300
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({handle: '<string>', timeout: 300})
};

fetch('https://api.anysite.io/api/hackerone/programs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/hackerone/programs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'handle' => '<string>',
'timeout' => 300
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.anysite.io/api/hackerone/programs"

payload := strings.NewReader("{\n \"handle\": \"<string>\",\n \"timeout\": 300\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/hackerone/programs")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"handle\": \"<string>\",\n \"timeout\": 300\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/hackerone/programs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"handle\": \"<string>\",\n \"timeout\": 300\n}"

response = http.request(request)
puts response.read_body
[
  {
    "handle": "<string>",
    "name": "<string>",
    "url": "<string>",
    "@type": "HackeroneProgram",
    "id": "<string>",
    "is_bounty_program": true,
    "state": "<string>",
    "about": "<string>",
    "website": "<string>",
    "twitter_handle": "<string>",
    "image": "<string>",
    "submission_state": "<string>",
    "offers_bounties": true,
    "offers_thanks": true,
    "launched_at": "<string>",
    "currency": "<string>",
    "base_bounty": 123,
    "average_bounty_lower_amount": 123,
    "average_bounty_upper_amount": 123,
    "top_bounty_lower_amount": 123,
    "top_bounty_upper_amount": 123,
    "total_bounties_paid": 123,
    "bounties_paid_last_90_days": 123,
    "resolved_report_count": 123,
    "reports_received_last_90_days": 123,
    "last_report_resolved_at": "<string>",
    "response_efficiency_percentage": 123,
    "response_efficiency_indicator": "<string>",
    "only_cleared_hackers": true,
    "only_id_verified_hackers": true,
    "allows_bounty_splitting": true,
    "publicly_visible_retesting": true,
    "hackers_thanked_count": 123,
    "assets_in_scope_count": 123,
    "has_open_scope": true,
    "pays_within_one_month": true,
    "gold_standard_safe_harbor": true,
    "ai_safe_harbor": true,
    "disclosure_declaration": "<string>",
    "introduction": "<string>",
    "policy": "<string>",
    "last_policy_change_at": "<string>",
    "sla": {
      "@type": "HackeroneProgramSla",
      "first_response_time": 123,
      "triage_time": 123,
      "bounty_time": 123,
      "resolution_time": 123
    },
    "severity_metrics": {
      "@type": "HackeroneSeverityMetrics",
      "average_bounty_low": 123,
      "average_bounty_medium": 123,
      "average_bounty_high": 123,
      "average_bounty_critical": 123,
      "report_count_low": 123,
      "report_count_medium": 123,
      "report_count_high": 123,
      "report_count_critical": 123
    },
    "bounty_rows": [],
    "scope_exclusions": [],
    "top_researchers": [],
    "attachments": []
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
handle
string
required
Minimum string length: 1
timeout
integer
default:300
Required range: 20 <= x <= 1500

Response

Successful Response

handle
string
required
name
string
required
url
string
required
@type
string
default:HackeroneProgram
id
string | null
is_bounty_program
boolean | null
state
string | null
about
string | null
website
string | null
twitter_handle
string | null
image
string | null
submission_state
string | null
offers_bounties
boolean | null
offers_thanks
boolean | null
launched_at
string | null
currency
string | null
base_bounty
number | null
average_bounty_lower_amount
number | null
average_bounty_upper_amount
number | null
top_bounty_lower_amount
number | null
top_bounty_upper_amount
number | null
total_bounties_paid
number | null
bounties_paid_last_90_days
number | null
resolved_report_count
integer | null
reports_received_last_90_days
integer | null
last_report_resolved_at
string | null
response_efficiency_percentage
integer | null
response_efficiency_indicator
string | null
only_cleared_hackers
boolean | null
only_id_verified_hackers
boolean | null
allows_bounty_splitting
boolean | null
publicly_visible_retesting
boolean | null
hackers_thanked_count
integer | null
assets_in_scope_count
integer | null
has_open_scope
boolean | null
pays_within_one_month
boolean | null
gold_standard_safe_harbor
boolean | null
ai_safe_harbor
boolean | null
disclosure_declaration
string | null
introduction
string | null
policy
string | null
last_policy_change_at
string | null
sla
object | null
severity_metrics
object | null
bounty_rows
object[]
scope_exclusions
object[]
top_researchers
object[]
attachments
object[]