TokenSniped
HomeDashboardDocs
HomeDashboardDocs
TokenSniped
  1. API Keys
  • Introduction
  • Quick Start
  • Frequently Asked Questions
  • Code Examples
  • Error Handling
  • Best Practices
  • Captcha Solving
    • Solve Geetest v4
      POST
    • Solve Cloudflare Turnstile
      POST
    • Solve WAF/Interstitial Challenge
      POST
  • Status & History
    • Get solve request status
      GET
    • Get solve history
      GET
  • Real-Time (SSE)
    • Stream solve status
      GET
    • Stream dashboard updates
      GET
    • Stream live solves
      GET
  • API Keys
    • List API keys
      GET
    • Create API key
      POST
    • Update API key
      PATCH
    • Delete API key
      DELETE
  • Billing
    • Get credit balance
      GET
    • Claim daily free credits
      POST
    • Get transaction history
      GET
    • Create Stripe checkout
      POST
    • Create crypto payment
      POST
    • List crypto currencies
      GET
  • Health check
    GET
  • Schemas
    • Schemas
      • GeetestRequest
      • TurnstileRequest
      • InterstitialRequest
      • CreateApiKeyRequest
      • UpdateApiKeyRequest
      • GeetestSuccessResponse
      • TurnstileSuccessResponse
      • InterstitialSuccessResponse
      • SolveErrorResponse
      • SolveStatusResponse
      • SolveHistoryItem
      • ApiKey
      • ApiKeyCreatedResponse
      • BalanceResponse
      • Transaction
      • StripeCheckoutResponse
      • CryptoCheckoutResponse
      • ErrorResponse
    • Response
      • ValidationError
      • Unauthorized
      • Forbidden
      • NotFound
      • InsufficientCredits
      • RateLimited
      • SolverError
HomeDashboardDocs
HomeDashboardDocs
TokenSniped
  1. API Keys

Create API key

POST
https://tokensniped.com/api/keys
Create a new API key.
Important: The full key is only returned once during creation.
Store it securely - you cannot retrieve it later.

Request

Authorization
API Key
Add parameter in cookie
better-auth.session_token
Example:
better-auth.session_token: ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢201Created
application/json
API key created
Body

🟠400Bad Request
🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://tokensniped.com/api/keys' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Production Server",
    "rateLimitRpm": 100,
    "rateLimitRpd": 10000
}'
Response Response Example
201 - Example 1
{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string",
    "keyPrefix": "string",
    "isActive": true,
    "rateLimitRpm": 0,
    "rateLimitRpd": 0,
    "createdAt": "2019-08-24T14:15:22.123Z",
    "key": "sk_live_aBcDeFgHiJkLmNoPqRsTuVwXyZ123456...",
    "message": "Save this key - you won't be able to see it again!"
}
Modified at 2025-12-02 02:47:51
Previous
List API keys
Next
Update API key
Built with