Examples Overview

Integration examples for Loom API v1.

Integration Examples

Examples for the Loom API v1 verification flow. All requests use the x-tenant-api-key header. No SDK required — use curl or any HTTP client.

Quick start

cURL

export LOOM_TENANT_API_KEY="your_key"

# Start verification
curl -s -X POST https://api.loomapi.com/verify/start \
  -H "x-tenant-api-key: $LOOM_TENANT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Node.js (fetch)

const res = await fetch('https://api.loomapi.com/verify/start', {
  method: 'POST',
  headers: {
    'x-tenant-api-key': process.env.LOOM_TENANT_API_KEY,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({}),
})
const { verificationId, sessionUrl, redirectUrl } = await res.json()

Flow overview

  1. POST /verify/start — Get verificationId and URL to send the user to.
  2. User completes the session at that URL.
  3. GET /verify/status?verificationId=... — Poll status (or use webhooks).
  4. POST /tokens/validate — Validate the token you receive (e.g. in callback).

By topic

TopicPage
cURLcURL examples
Node.jsNode.js examples
Verification referenceVerification
WebhooksWebhooks

More

Need help? support@loomapi.com