# gateway.apiosk.com Attestations

> gateway.apiosk.com Attestations is a paid API for AI agents from gateway.apiosk.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Hashes a JSON payload and creates a cryptographically signed attestation (JWS) with optional validation results, persisting the receipt.

## Facts

- Endpoint: POST https://gateway.apiosk.com/attestations/attest
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-apiosk-com-attestations-78547a5f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SByT37FJC6rSS6jV2T2Aa

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gateway-apiosk-com-attestations-78547a5f -d '<json body>'
```

Example prompt: Create a cryptographic attestation for this JSON payload: {"order_id": "ORD-9921", "amount": 250.00, "status": "approved"} and include the validation result {"passed": true, "checks": ["schema", "fraud"]} in the receipt so I have a signed, persisted proof.

## When to prefer this

Use this endpoint when you need a cryptographically signed, persisted attestation of a JSON payload — for audit trails, compliance records, or tamper-proof proofs of data at a point in time. Prefer this over simple hashing when you need a JWS signature and a persistent receipt you can reference by ID later.

## Known failure modes

- Invalid or non-parseable JSON payload string returns an error
- Missing required payload field results in a 400-level error
- Payment not completed (x402 flow) results in 402 Payment Required
- Service unavailable or persistence failure returns ok:false
- Malformed validation_results string may cause parsing errors

## How this service works

Create a signed JWS receipt containing payload hash, result hash, timestamp and validation results.

## Output

Returns an attestation object with a unique attestation ID (e.g. att_example), a boolean ok status, a JWS-encoded cryptographic signature over the payload, a SHA hash of the payload, and a persisted flag confirming the receipt was stored.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-apiosk-com-attestations-78547a5f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.apiosk.com](https://www.zero.xyz/host/gateway.apiosk.com/llms.txt)
