Agent-native API reference

ACN Preflight API

Request and response field contracts are rendered from the same OpenAPI document used by automated clients. No external JavaScript is needed.

MCP discoveryPayment stateLive readiness proof

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

Responses

HTTP 200

Fresh bounty reality check

Response body: application/json

FieldPresenceType / constraintsDescription
capabilityRequiredconstant; value: bounty_reality_check
price_usdRequiredconstant; value: 0
issue_urlRequiredstring (uri)
email_requiredRequiredconstant; value: False
registration_requiredRequiredconstant; value: False
data_collected_atRequiredstring (date-time)
github_issueRequiredobject
github_repositoryRequiredobject
linked_pull_requestsRequiredarray
acn_snapshot_matchRequiredobject | null
provenanceRequiredarray

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

FieldPresenceType / constraintsDescription
errorRequiredstring
reasonOptionalstring

HTTP 404

Issue not found or not publicly accessible

Response body: application/json

FieldPresenceType / constraintsDescription
errorRequiredstring
reasonOptionalstring

HTTP 429

Free per-client (8/min) or global (20/min) quota reached; Retry-After: 60 seconds

Response body: application/json

FieldPresenceType / constraintsDescription
errorRequiredstring
reasonOptionalstring

HTTP 503

External verification unavailable

Response body: application/json

FieldPresenceType / constraintsDescription
errorRequiredstring
reasonOptionalstring

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

FieldPresenceType / constraintsDescription
repo_urlRequiredstring (uri)
change_typeOptionalstring; 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

FieldPresenceType / constraintsDescription
capabilityRequiredstring
price_usdRequirednumber
contributing_md_presentRequiredboolean
cla_requiredRequiredboolean
dco_requiredRequiredboolean
test_requirementsRequiredarray
required_ci_checksRequiredarray
median_time_to_first_review_external_pr_daysRequirednumber | null
median_time_to_merge_external_pr_daysRequirednumber | null
external_pr_merge_rate_90dRequirednumber
open_external_pr_backlogRequiredinteger
maintainer_last_activity_days_agoRequirednumber | null
ai_pr_stanceRequiredstring; allowed: welcoming, neutral, hostile, unknown
ai_pr_stance_evidence_urlRequiredstring | null (uri)
bounty_program_statusRequiredstring; allowed: active, discontinued, none
recommended_actionRequiredstring
data_collected_atRequiredstring (date-time)
repo_urlRequiredstring (uri)
change_typeOptionalstring | null; allowed: bugfix, feature, docs, dependency, None
data_sourceRequiredconstant; value: public_github_api
model_usedRequiredconstant; value: False
sampleRequiredobject

Response body: text/html

Schema type: string

HTTP 400

Invalid input

Response body: application/json

FieldPresenceType / constraintsDescription
errorRequiredstring
reasonOptionalstring

HTTP 402

Payment Required. Standard x402 v2 clients read the base64 PaymentRequired object from the PAYMENT-REQUIRED response header.

Response body: application/json

FieldPresenceType / constraintsDescription
errorRequiredconstant; value: payment_required
capabilityRequiredstring
price_usdRequirednumber
payment_stateRequiredstring; allowed: ACTIVE, SAFETY_HOLD
order_endpointRequiredstring
x402Requiredstring

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

FieldPresenceType / constraintsDescription
errorRequiredstring
reasonOptionalstring

HTTP 503

Capability or payment rail unavailable

Response body: application/json

FieldPresenceType / constraintsDescription
errorRequiredstring
reasonOptionalstring

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

FieldPresenceType / constraintsDescription
chainRequiredstring; allowed: base, 8453, base-mainnet
addressRequiredstring
token_contractOptionalstring
amountOptionalone 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

FieldPresenceType / constraintsDescription
capabilityRequiredstring
price_usdRequirednumber
checksum_validRequiredboolean
is_contractRequiredboolean
account_typeRequiredstring; allowed: eoa, smart_account
delegate_addressRequiredstring | null
nonceRequiredinteger
has_outgoing_historyRequiredboolean
token_contract_matches_canonicalRequiredboolean | null
token_name_homoglyph_detectedRequiredboolean
token_symbol_homoglyph_detectedRequiredboolean
similar_address_seen_in_recent_counterpartiesRequiredboolean
verdictRequiredstring; allowed: SAFE, CAUTION, DANGER
reasonsRequiredarray
rpc_sourcesRequiredarray
checked_at_blockRequiredinteger
checked_atRequiredstring (date-time)
chain_idRequiredconstant; value: 8453
token_nameOptionalstring | null
token_symbolOptionalstring | null
scopeRequiredstring

Response body: text/html

Schema type: string

HTTP 400

Invalid input

Response body: application/json

FieldPresenceType / constraintsDescription
errorRequiredstring
reasonOptionalstring

HTTP 402

Payment Required is the normal unauthenticated response for this paid capability.

Response body: application/json

FieldPresenceType / constraintsDescription
errorRequiredconstant; value: payment_required
capabilityRequiredstring
price_usdRequirednumber
payment_stateRequiredstring; allowed: ACTIVE, SAFETY_HOLD
order_endpointRequiredstring
x402Requiredstring

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

FieldPresenceType / constraintsDescription
errorRequiredstring
reasonOptionalstring

HTTP 503

Capability or payment rail unavailable

Response body: application/json

FieldPresenceType / constraintsDescription
errorRequiredstring
reasonOptionalstring

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.