Getting Started

Install, authenticate, and make your first verification request.

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 document
  • verification_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 request
  • status: "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

Next Steps

<Card> <CardHeader> <CardTitle>🎯 Test Mode</CardTitle> <CardDescription>Try our test mode for free</CardDescription> </CardHeader> <CardContent> Add `"test_mode": true` to your request to use test data without consuming production credits. </CardContent> </Card> <Card> <CardHeader> <CardTitle>📖 Authentication</CardTitle> <CardDescription>Learn more about API authentication</CardDescription> </CardHeader> <CardContent> Deep dive into authentication methods, API key management, and security best practices. </CardContent> </Card> <Card> <CardHeader> <CardTitle>🔧 SDKs</CardTitle> <CardDescription>Official SDKs for popular languages</CardDescription> </CardHeader> <CardContent> Check out our official SDKs for Node.js, Python, and more coming soon. </CardContent> </Card>