ACN Preflight API
Request and response field contracts are rendered from the same OpenAPI document used by automated clients. No external JavaScript is needed.
Try a free GitHub check
Enter a public GitHub issue URL. No registration, wallet or payment is required.
Authentication, throttling and recovery
The HTTP 402 Payment Required response is normal for an unpaid paid endpoint. An invalid or expired legacy Bearer token is not an authenticated session and currently falls through to the x402 payment challenge (402), rather than returning 401 or 403. A bad x402 signature also receives 402; payment-verification rate limiting may return 429.
Legacy order creation and payment verification have server-side rate controls. The free GitHub check allows 8 requests per client and 20 globally per rolling 60 seconds. Quota exhaustion returns HTTP 429 with Retry-After: 60 seconds. GitHub may throttle or reject requests; partial fallback results carry limitations, otherwise the service returns 503. No guaranteed requests-per-minute allowance or Retry-After header is currently advertised. Use bounded exponential backoff and do not repeatedly submit payment after an ambiguous settlement.
GitHub assessments are observations of external state, not immutable findings. Check evidence timestamps, repository state and provenance before acting. An x402 retry should reuse the original signed payment only for the exact same request; if settlement or delivery is ambiguous, retain the transaction reference for support. Automatic refunds and recovery after every failure are not yet commercially verified.
API endpoints
GET /v1/bounty Bounty Reality Check
Parameters
issue_url(query, required, string (uri)); example:https://github.com/python-poetry/poetry/issues/9574
Responses
HTTP 200
Fresh bounty reality check
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
capability | Required | constant; value: bounty_reality_check | |
price_usd | Required | constant; value: 0 | |
issue_url | Required | string (uri) | |
email_required | Required | constant; value: False | |
registration_required | Required | constant; value: False | |
data_collected_at | Required | string (date-time) | |
github_issue | Required | object | |
github_repository | Required | object | |
linked_pull_requests | Required | array | |
acn_snapshot_match | Required | object | null | |
provenance | Required | array |
Example
{
"capability": "bounty_reality_check",
"price_usd": 0,
"issue_url": "https://github.com/owner/repo/issues/123"
}Response body: text/html
Schema type: string
HTTP 400
Invalid or missing issue URL
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | string | |
reason | Optional | string |
HTTP 404
Issue not found or not publicly accessible
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | string | |
reason | Optional | string |
HTTP 429
Free per-client (8/min) or global (20/min) quota reached; Retry-After: 60 seconds
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | string | |
reason | Optional | string |
HTTP 503
External verification unavailable
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | string | |
reason | Optional | string |
Free GET operation. Results rely on live external GitHub data and may be unavailable or partial.
POST /v1/repo Repo Contribution Readiness
Request
Request body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
repo_url | Required | string (uri) | |
change_type | Optional | string; allowed: bugfix, feature, docs, dependency |
Example
{
"repo_url": "https://github.com/python-poetry/poetry",
"change_type": "docs"
}Responses
HTTP 200
Contribution readiness result
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
capability | Required | string | |
price_usd | Required | number | |
contributing_md_present | Required | boolean | |
cla_required | Required | boolean | |
dco_required | Required | boolean | |
test_requirements | Required | array | |
required_ci_checks | Required | array | |
median_time_to_first_review_external_pr_days | Required | number | null | |
median_time_to_merge_external_pr_days | Required | number | null | |
external_pr_merge_rate_90d | Required | number | |
open_external_pr_backlog | Required | integer | |
maintainer_last_activity_days_ago | Required | number | null | |
ai_pr_stance | Required | string; allowed: welcoming, neutral, hostile, unknown | |
ai_pr_stance_evidence_url | Required | string | null (uri) | |
bounty_program_status | Required | string; allowed: active, discontinued, none | |
recommended_action | Required | string | |
data_collected_at | Required | string (date-time) | |
repo_url | Required | string (uri) | |
change_type | Optional | string | null; allowed: bugfix, feature, docs, dependency, None | |
data_source | Required | constant; value: public_github_api | |
model_used | Required | constant; value: False | |
sample | Required | object |
Response body: text/html
Schema type: string
HTTP 400
Invalid input
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | string | |
reason | Optional | string |
HTTP 402
Payment Required. Standard x402 v2 clients read the base64 PaymentRequired object from the PAYMENT-REQUIRED response header.
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | constant; value: payment_required | |
capability | Required | string | |
price_usd | Required | number | |
payment_state | Required | string; allowed: ACTIVE, SAFETY_HOLD | |
order_endpoint | Required | string | |
x402 | Required | string |
Example
{
"error": "payment_required",
"capability": "repo_contribution_readiness",
"price_usd": 0.1,
"payment_state": "ACTIVE",
"order_endpoint": "/api/v1/orders",
"x402": "/.well-known/x402"
}Response body: text/html
Schema type: string
HTTP 429
Payment verification rate limited when a PAYMENT-SIGNATURE is supplied; no Retry-After header is currently guaranteed
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | string | |
reason | Optional | string |
HTTP 503
Capability or payment rail unavailable
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | string | |
reason | Optional | string |
Paid endpoint: x402 v2 payment authorization or a previously issued Bearer token. Without a valid payment, expect HTTP 402 and a PAYMENT-REQUIRED header. If a payment operation becomes unsafe or unavailable, expect HTTP 503 without a payable challenge.
POST /v1/payment Payment Preflight
Request
Request body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
chain | Required | string; allowed: base, 8453, base-mainnet | |
address | Required | string | |
token_contract | Optional | string | |
amount | Optional | one of number, string |
Example
{
"chain": "base",
"address": "0xAa476D1E087957e2F0905353f5560451eC3462a4",
"token_contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10.00"
}Responses
HTTP 200
Technical chain-state preflight
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
capability | Required | string | |
price_usd | Required | number | |
checksum_valid | Required | boolean | |
is_contract | Required | boolean | |
account_type | Required | string; allowed: eoa, smart_account | |
delegate_address | Required | string | null | |
nonce | Required | integer | |
has_outgoing_history | Required | boolean | |
token_contract_matches_canonical | Required | boolean | null | |
token_name_homoglyph_detected | Required | boolean | |
token_symbol_homoglyph_detected | Required | boolean | |
similar_address_seen_in_recent_counterparties | Required | boolean | |
verdict | Required | string; allowed: SAFE, CAUTION, DANGER | |
reasons | Required | array | |
rpc_sources | Required | array | |
checked_at_block | Required | integer | |
checked_at | Required | string (date-time) | |
chain_id | Required | constant; value: 8453 | |
token_name | Optional | string | null | |
token_symbol | Optional | string | null | |
scope | Required | string |
Response body: text/html
Schema type: string
HTTP 400
Invalid input
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | string | |
reason | Optional | string |
HTTP 402
Payment Required is the normal unauthenticated response for this paid capability.
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | constant; value: payment_required | |
capability | Required | string | |
price_usd | Required | number | |
payment_state | Required | string; allowed: ACTIVE, SAFETY_HOLD | |
order_endpoint | Required | string | |
x402 | Required | string |
Example
{
"error": "payment_required",
"capability": "payment_preflight",
"price_usd": 0.02,
"payment_state": "ACTIVE",
"order_endpoint": "/api/v1/orders",
"x402": "/.well-known/x402"
}Response body: text/html
Schema type: string
HTTP 429
Payment verification rate limited when a PAYMENT-SIGNATURE is supplied; no Retry-After header is currently guaranteed
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | string | |
reason | Optional | string |
HTTP 503
Capability or payment rail unavailable
Response body: application/json
| Field | Presence | Type / constraints | Description |
|---|---|---|---|
error | Required | string | |
reason | Optional | string |
Paid endpoint: x402 v2 payment authorization or a previously issued Bearer token. Without a valid payment, expect HTTP 402 and a PAYMENT-REQUIRED header. If a payment operation becomes unsafe or unavailable, expect HTTP 503 without a payable challenge.
Integration resources
OpenAPI 3.1 · llms.txt · Agent Card · MCP · x402
Always check live safety state before automated payment. A blocked resource does not present a payable challenge.