Skip to content

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

  1. Create an account at contrie.com/sign-up (sample extractions in the playground need no account)
  2. Go to Dashboard → API Keys
  3. Click "Create API Key"
  4. 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

PrefixEnvironmentLength
ck_live_Production40 characters
ck_test_Testing40 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