Skip to main content

Authentication

All TechLadder API endpoints require authentication using a Bearer token. Your API key acts as this token.

Getting Your API Key​

  1. Create an account on TechLadder
  2. Log in to the TechLadder Dashboard
  3. Navigate to Settings → API Keys
  4. Click Generate API Key
  5. Copy your key immediately — it will only be shown once

Your API key looks like:

sk_live_abc123def456ghi789

Using Your API Key​

Include your API key in the Authorization header of every request:

Authorization: Bearer sk_your_api_key_here

Example Request​

curl -X GET https://api.techladder.ai/api/v1/public/me \
-H "Authorization: Bearer sk_your_api_key_here"

Example Response​

{
"status_code": 200,
"message": "Account details fetched successfully",
"error": null,
"data": {
"account_id": "acc_abc123",
"name": "Your Company",
"email": "dev@yourcompany.com",
"limits": {
"max_batch_size": 10000,
"max_concurrent_calls": 20,
"max_call_duration_seconds": 900,
"rate_limit_per_minute": 300
}
}
}

Security Best Practices​

Important
  • Never expose your API key in client-side code, Git repositories, or public URLs
  • Use environment variables to store your key
  • Rotate your key immediately if you suspect it has been compromised
  • Each API key is tied to your account — all actions are logged
✅ Do❌ Don't
Store in environment variablesHardcode in source code
Use server-side requests onlyExpose in frontend JavaScript
Rotate keys periodicallyShare keys across teams
Use separate keys per environmentUse production keys for testing

Error Responses​

If authentication fails, you'll receive one of these errors:

StatusError CodeDescription
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENAPI access not enabled for your account
429RATE_LIMITEDToo many requests — slow down