Getting Started
Get up and running with LoomAPI in under 5 minutes. This guide will walk you through setting up your account, getting your API key, and making your first verification request.
Prerequisites
- A LoomAPI account (sign up at dashboard.loomapi.com)
- Basic knowledge of REST APIs
- An API key from your dashboard
API Base URL
All API requests should be made to:
https://api.loomapi.com
Authentication
Include your API key in the Authorization header:
Authorization: Bearer your_api_key_here
You can find your API key in the dashboard under API Keys.
Make Your First Request
Let's verify a sample document using cURL:
curl -X POST https://api.loomapi.com/v1/verify \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"document_type": "passport",
"document_data": "base64_encoded_image_data",
"verification_type": "age_only"
}'
Request Parameters
document_type: The type of document ("passport","drivers_license","national_id")document_data: Base64-encoded image of the documentverification_type:"age_only"or"full_verification"(optional, defaults to"age_only")
Response
If successful, you'll receive:
{
"request_id": "req_1234567890abcdef",
"status": "verified",
"verified_age": 25,
"confidence_score": 0.98,
"processing_time_ms": 1250
}
Response Fields
request_id: Unique identifier for this verification requeststatus:"verified","rejected", or"error"verified_age: The verified age (only present when status is"verified")confidence_score: AI confidence in the verification (0.0 to 1.0)processing_time_ms: How long the verification took to process