Get started
Introduction
Learn what the attest API does, where it lives, and how requests and responses are shaped.
Overview #
The attest API records machine activity, such as an AI agent's tool call, an automated workflow step, or an API action, as an independent verification record. You send an event over HTTPS. attest validates it, signs a canonical record of what your system represented and when attest received it, and holds that record outside your infrastructure. Each newly accepted event is one Verification Pass.
For operations that cross a system boundary, the Witness endpoints record one observation before the operation and one after it, then reconcile the two.
https://attestinfra.comAPI basics #
- REST. Resources are addressed by path, for example
POST /v1/eventsandGET /v1/witness/{pairId}. - JSON. Request bodies are JSON sent with
Content-Type: application/json, up to 1 MB. Responses are JSON, except the two proof inspector downloads. - Standard HTTP status codes.
2xxmeans success,4xxmeans the request was rejected and will not succeed unchanged, and5xxmeans attest could not complete it. Error bodies carry anerrorstring. See Errors. - API-key authentication. Every
/v1request carries an environment API key asAuthorization: Bearer. See Authentication.
One base URL serves both environments. The key you send decides whether a request lands in Sandbox or Production.
POST /v1/events HTTP/1.1
Host: attestinfra.com
Authorization: Bearer att_test_...
Content-Type: application/json
{"eventType": "ai.agent.tool_call", "eventId": "job_7f3c9a12"}Integrate #
- Create an account and copy a Sandbox key from API Keys in the dashboard.
- Follow the Quickstart to verify your first event with @attestinfra/sdk or plain HTTP.
- Add stable event IDs so retries never double-count.
- Activate billing to get a Production key, then swap keys. The request does not change.
Machine-readable docs #
- /docs/openapi.json describes every endpoint on these pages in OpenAPI 3.1.
- /docs/llms.txt indexes every page with a one-line description.