Quickstart
From zero to your first attestation in under 5 minutes
GETTING STARTED · QUICKSTART
This guide walks you through authenticating, reading data, and issuing your first attestation command — all in under five minutes.
Prerequisites
- A Clossir organization (sign up at app.dev.clossir.com)
- An API key with
attestations:readandattestations:writescopes (see Authentication for how to create one) - Node.js 18+ or Bun
1. Install the SDK
Install
2. Authenticate
client.ts
The API key is org-scoped — all operations are automatically isolated to your organization.
3. Make your first read
read.ts
Reads return 200 OK with the current state.
4. Issue your first attestation
attest.ts
Commands return 202 Accepted — the attestation is queued for on-chain processing. Poll the
GET /attestations/:id endpoint (or use webhooks) to know when it settles.
What just happened
- Authenticated — your API key identified your org and authorized the scopes.
- Read — fetched existing parties from Supabase (sync,
GET → 200). - Commanded — issued an attestation request (
POST → 202) that is processed asynchronously and settled on-chain; pollGET → 200or subscribe to webhooks.
Next steps
- Concepts — understand the full data model
- Authentication — manage keys and scopes
- Identity — deep-dive into parties, wallets, and attestations