TR
API · x402
Signierte Preis-Attestierung: Route, Datum, Preis, Quelle, Zeitstempel und Plausibilitä…
Signierte Preis-Attestierung: Route, Datum, Preis, Quelle, Zeitstempel und Plausibilitätsprüfung (Ed25519).
by travel.hanibal-ai.com · verified provider · updated 2026-10-25
30d calls—
30d payers—
MethodHTTP
Outputjson schema
What it does
Signierte Preis-Attestierung: Route, Datum, Preis, Quelle, Zeitstempel und Plausibilitätsprüfung (Ed25519).
Tags: travel · price · attestation · x402
Call contract
- Method
- HTTP
- Input
- HTTP request
- Output
- json schema
No input exampleProvider did not publish one in Bazaar metadata.
Output example
{
"version": "string",
"id": "string",
"issued_at": "2026-01-01T00:00:00Z",
"expires_at": "2026-01-01T00:00:00Z",
"issuer": {
"did": "string",
"key_id": "string",
"public_key": "string",
"alg": "string",
"pay_to": "string"
},
"subject": {
"route": "string",
"travel_date": "string",
"price": "string",
"currency": "string",
"price_scope": "string",
"passengers": 0,
"cabin": "string",
"source": "string",
"source_url": "https://example.com",
"observed_at": "2026-01-01T00:00:00Z",
"note": "string"
},
"plausibility": {
"status": "string",
"checks": [
"string"
],
"warnings": [
"string"
]
},
"payment": {},
"terms": {},
"signature": {
"alg": "string",
"key_id": "string",
"value": "string"
}
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/71360.jsonfor the price and payment options. - Pay. Call
GET https://travel.hanibal-ai.com/api/attest. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.01 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.01 | 0x1cE5379a485a0bd726fce57BbfDfc316b0D35Cc4 | 120s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x1cE5379a485a0bd726fce57BbfDfc316b0D35Cc4",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"amountUsd": 0.01,
"maxTimeoutSeconds": 120
}
]Schemas
Output schema (JSON Schema)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"version",
"id",
"issued_at",
"expires_at",
"issuer",
"subject",
"plausibility",
"signature"
],
"properties": {
"version": {
"type": "string"
},
"id": {
"type": "string",
"description": "Attestation-ID (att_…)"
},
"issued_at": {
"type": "string",
"format": "date-time"
},
"expires_at": {
"type": "string",
"format": "date-time"
},
"issuer": {
"type": "object",
"properties": {
"did": {
"type": "string"
},
"key_id": {
"type": "string"
},
"public_key": {
"type": "string"
},
"alg": {
"type": "string",
"const": "Ed25519"
},
"pay_to": {
"type": "string"
}
}
},
"subject": {
"type": "object",
"properties": {
"route": {
"type": "string",
"pattern": "^[A-Z]{3}-[A-Z]{3}$"
},
"travel_date": {
"type": "string",
"format": "date"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"price_scope": {
"type": "string"
},
"passengers": {
"type": "integer"
},
"cabin": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
},
"source_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"observed_at": {
"type": "string",
"format": "date-time"
},
"note": {
"type": [
"string",
"null"
]
}
}
},
"plausibility": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"checks": {
"type": "array",
"items": {
"type": "string"
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"payment": {
"type": "object"
},
"terms": {
"type": "object"
},
"signature": {
"type": "object",
"required": [
"alg",
"key_id",
"value"
],
"properties": {
"alg": {
"type": "string",
"const": "Ed25519"
},
"key_id": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}Example shape — generated from the schema, not a captured live response
{
"version": "string",
"id": "string",
"issued_at": "2026-01-01T00:00:00Z",
"expires_at": "2026-01-01T00:00:00Z",
"issuer": {
"did": "string",
"key_id": "string",
"public_key": "string",
"alg": "string",
"pay_to": "string"
},
"subject": {
"route": "string",
"travel_date": "string",
"price": "string",
"currency": "string",
"price_scope": "string",
"passengers": 0,
"cabin": "string",
"source": "string",
"source_url": "https://example.com",
"observed_at": "2026-01-01T00:00:00Z",
"note": "string"
},
"plausibility": {
"status": "string",
"checks": [
"string"
],
"warnings": [
"string"
]
},
"payment": {},
"terms": {},
"signature": {
"alg": "string",
"key_id": "string",
"value": "string"
}
}Examples
curl
curl -X GET 'https://travel.hanibal-ai.com/api/attest'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREJavaScript
const res = await fetch("https://travel.hanibal-ai.com/api/attest", {
"method": "GET"
});
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.request("GET", "https://travel.hanibal-ai.com/api/attest")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- travel.hanibal-ai.com
- Endpoint
- https://travel.hanibal-ai.com/api/attest
- Machine-readable
/resources/71360.json