# attest > REST API that accepts machine activity events and paired boundary observations, verifies and signs them, and holds the resulting records outside the originating system. Requests and responses are JSON. Authenticate with an environment API key. Base URL: https://attestinfra.com. OpenAPI 3.1 description: https://attestinfra.com/docs/openapi.json ## Get started - [Introduction](https://attestinfra.com/docs): Learn what the attest API does, where it lives, and how requests and responses are shaped. - [Concepts](https://attestinfra.com/docs/concepts): Understand the objects attest works with before you send your first request. - [Authentication](https://attestinfra.com/docs/authentication): Authenticate every request with an environment API key. - [Environments](https://attestinfra.com/docs/environments): Choose between Sandbox and Production and know exactly what differs. - [Quickstart](https://attestinfra.com/docs/quickstart): Verify your first event in Sandbox with the SDK or one HTTP request. ## Guides - [Verify an event](https://attestinfra.com/docs/guides/verify-an-event): Send a machine activity event, read the response, and handle rejections. - [Witness a round-trip](https://attestinfra.com/docs/guides/witness-a-round-trip): Record an observation on each side of a boundary and get a reconciled result. - [Idempotency and duplicates](https://attestinfra.com/docs/guides/idempotency): Retry safely: control duplicate detection with eventId and witness replays. - [Verify a receipt independently](https://attestinfra.com/docs/guides/verify-a-receipt): Check a receipt's hash and signature yourself, without trusting attest's servers. ## SDK - [Installation](https://attestinfra.com/docs/sdk/installation): Install @attestinfra/sdk 0.2.0 and create a client. - [verify()](https://attestinfra.com/docs/sdk/verify): Submit one event from Node.js and read the normalized result. - [prepareWitness()](https://attestinfra.com/docs/sdk/prepare-witness): Wrap an operation so attest observes it before and after it runs. - [finalizeWitness()](https://attestinfra.com/docs/sdk/finalize-witness): Close a pair explicitly and fix its reconciliation status. - [Recovery and helpers](https://attestinfra.com/docs/sdk/witness-helpers): Inspect, recover, and record witness pairs step by step, and handle SDK errors. ## API reference - [Verify an event](https://attestinfra.com/docs/api/create-event): Verifies, signs, and records one machine activity event; an eventId already recorded in the same environment is acknowledged as a duplicate and creates no Verification Pass. - [Record a witness observation](https://attestinfra.com/docs/api/record-witness-observation): Records one assembly or delivery observation for a pair; an identical replay returns 200 with duplicate true, and different content for a stage already recorded returns 409. - [Finalize a witness pair](https://attestinfra.com/docs/api/finalize-witness-pair): Closes a pair and fixes its reconciliation status permanently; calling it again returns the same finalized pair and creates no Verification Pass. - [Retrieve a witness pair](https://attestinfra.com/docs/api/get-witness-pair): Returns the current state of a pair in the key's environment; reading never changes the pair and creates no Verification Pass. - [Retrieve usage](https://attestinfra.com/docs/api/get-usage): Returns the all-time Verification Pass total and accrued amount for the key's environment. - [Retrieve the signing key](https://attestinfra.com/docs/api/get-signing-key): Returns the public key that currently signs receipts, with its SHA-256 fingerprint; no API key is required. - [Download the proof inspector](https://attestinfra.com/docs/api/download-proof-inspector): Downloads a self-contained HTML file that checks a receipt in the browser without an account or network call; no API key is required. - [Retrieve the inspector checksum](https://attestinfra.com/docs/api/get-proof-inspector-checksum): Returns the SHA-256 digest of the inspector file in sha256sum format, so a downloaded copy can be checked; no API key is required. - [Check service health](https://attestinfra.com/docs/api/get-health): Reports whether signing and persistence are ready; no API key is required. - [Ingest OTLP traces](https://attestinfra.com/docs/api/ingest-traces): Verifies each span in an OTLP/HTTP JSON trace export as one event; new integrations should use POST /v1/events. ## Reference - [Receipt fields](https://attestinfra.com/docs/reference/receipt-fields): Read every field of an exported receipt and know which ones are signed. - [Witness states](https://attestinfra.com/docs/reference/witness-states): Interpret lifecycle, reconciliation status, execution state, and recovery status. - [Errors](https://attestinfra.com/docs/reference/errors): Map every status code and error message to its cause and fix. - [Limits](https://attestinfra.com/docs/reference/limits): Stay within the size, length, and nesting bounds the API enforces. ## Trust model - [What attest attests](https://attestinfra.com/docs/trust/what-attest-attests): Know exactly what an attest record establishes. - [What attest does not attest](https://attestinfra.com/docs/trust/what-attest-does-not-attest): Know the limits of an attest record before you rely on it. ## Billing - [Verification Passes](https://attestinfra.com/docs/billing/verification-passes): Know what counts as a billable unit, what does not, and the current rate.