Aller au contenu
agentsub
Esc
↑↓naviguer↵ouvrir⌘Japerçu

Verify an ACS voucher offline-equivalent

Requires merchant scope vouchers:introspect. Verifies the voucher JWT signature against the platform JWKS, the merchant and offer binding, and reports whether the backing hold is still active.

POST/v1/vouchers/introspect
Authorization
AuthorizationBearer token · headerrequired

Scoped merchant API key (asm_...) issued via POST /v1/merchants/{id}/api-keys. Path/scope-restricted; cannot access human or agent routes.

Request body
requiredapplication/json
voucherstringrequired
offerIdstringrequired
Responses
200

Voucher claims and activity

activeboolean
claimsobject
400

invalid_input problem

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
401

unauthorized problem; live 401s advertise WWW-Authenticate: Bearer resource_metadata=...

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
403

Identity, ownership, scope or policy denied (human_required, owner_claim_required, scope_required, FROZEN, CAP_EXCEEDED, SCOPE_FORBIDDEN)

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
503

Runtime or provider configuration unavailable (runtime_configuration_required, signing_configuration_required, runtime_unavailable, workspace_unavailable, provider_configuration_required)

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
Request
curl -X POST 'https://api.agentsub.dev/v1/vouchers/introspect' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "voucher": "string",
  "offerId": "string"
}'
Response
{
  "active": true,
  "claims": {}
}