# Authentication

Learn how to authenticate with the CaptchaSolv API using your client key.

All API requests require a clientKey in the request body.


# Using Your API Key

{
  "clientKey": "your-api-key-here",
  "task": { ... }
}

Get your key via /panel in Discord.


# Security

Do Don't
Store key in environment variables Hardcode in source code
Regenerate if compromised Share in public repos

To regenerate: use /panel in Discord and click Regenerate Key. The old key is invalidated immediately.


# Auth Error

{
  "errorId": 2,
  "errorCode": "ERROR_KEY_DOES_NOT_EXIST",
  "errorDescription": "Invalid API key"
}