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
- POST /verify/start — Get
verificationIdand URL to send the user to. - User completes the session at that URL.
- GET /verify/status?verificationId=... — Poll status (or use webhooks).
- POST /tokens/validate — Validate the token you receive (e.g. in callback).
By topic
| Topic | Page |
|---|---|
| cURL | cURL examples |
| Node.js | Node.js examples |
| Verification reference | Verification |
| Webhooks | Webhooks |
More
- 10-minute quickstart
- Authentication — tenant key and console auth
- API reference — full request/response for verification
Need help? support@loomapi.com