Quickstart
Welcome! In this guide, we'll walk you through the basics of using the Dectra API, from creating an account to making your first request.
Step 1: Create a Dectra account
Create your account, confirm the workspace, and land on the dashboard before you generate credentials.
Step 2: Generate an API key
Use the API Keys page to create a new key, then store it locally.
export DECTRA_API_KEY="your_api_key"
Or add it to a .env file in your project directory:
DECTRA_API_KEY="your_api_key"
Step 3: Install an SDK
Pick your language and install the SDK:
pip install dectra-sdk
Step 4: Make your first request
Send a document to Dectra and get a verification result:
import osfrom dectra_sdk import Clientfrom dectra_sdk.verification import document, faceclient = Client(api_key=os.getenv("DECTRA_API_KEY"))result = client.verify.create(model="dectra-v3")result.append(document("passport.jpg"))result.append(face("selfie.jpg"))response = result.process()print(response.status)
Step 5: Verify a document
The document flow combines OCR, document validation, and face matching into one response object.
from dectra_sdk import Clientclient = Client(api_key=os.getenv("DECTRA_API_KEY"))result = client.verify.create(model="dectra-v3")result.append(document("passport.jpg"))result.append(face("selfie.jpg"))response = result.process()print(response.status)
What's next
Once the basic flow works, move on to the support, security, and compliance pages that round out a production setup.
Revisit the docs homepage for models, pricing, and the broader API overview.
Use the markdown export to hand the guide to another model or tool.