Authentication
All API requests require authentication via an API key. Keys are scoped to your account and can be managed in the dashboard.
Getting an API Key
- Create an account at contrie.com/sign-up (sample extractions in the playground need no account)
- Go to Dashboard → API Keys
- Click "Create API Key"
- Copy the key immediately — it is only shown once
Using Your API Key
Pass your key in the Authorization header as a Bearer token:
Header
Authorization: Bearer ck_live_abc123def456...
Key Format
| Prefix | Environment | Length |
|---|---|---|
| ck_live_ | Production | 40 characters |
| ck_test_ | Testing | 40 characters |
Key Management
You can create multiple keys, name them, and delete them from the API Keys page in your dashboard. Keys are hashed on our servers — we never store your key in plain text.
Using Your Key with MCP
The hosted MCP server at https://contrie.com/mcp takes the same key as an Authorization header on the connection. See MCP for install snippets.
Security Tips
- Never expose your API key in client-side code
- Store keys in environment variables
- Rotate keys periodically
- Delete keys you no longer use