GuideAPI referenceSDKs
Dashboard
Getting Started

Authentication

How to securely authenticate requests with moltsetz.

Every API request is authenticated with an API key created in the moltsetz dashboard.

The x-api-key Header

Include your API key in every request using the x-api-key HTTP header.

Keep keys server-sideNever ship an API key in browser or mobile code. Route requests through your own backend.

Example request

curl -X GET "https://moltsetz.vercel.app/v2/account/key-info" \
  -H "x-api-key: YOUR_API_KEY"

Verifying your key

Use the key-info health check before starting a batch workload.

{
  "valid": true,
  "id": "key_abc123",
  "remaining_credits": 999,
  "next_reset_at": "2026-09-01T00:00:00.000Z",
  "max_requests_per_seconds": 5,
  "allowed_apis": [
    "/v2/search/people"
  ],
  "active_plans": [
    {
      "name": "Startup Trial",
      "status": "active"
    }
  ]
}

Errors

CodeMeaningSolution
401UnauthorizedCheck the x-api-key header.
404Not FoundThe route or resource does not exist.
422Invalid InputReview required JSON fields.