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

Update API key

PATCH
https://tokensniped.com/api/keys/{keyId}
Update an API key's name, status, or rate limits.

Request

Authorization
API Key
Add parameter in cookie
better-auth.session_token
Example:
better-auth.session_token: ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
API key updated
Body

🟠401Unauthorized
🟠404Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://tokensniped.com/api/keys/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "isActive": true,
    "rateLimitRpm": 1,
    "rateLimitRpd": 1
}'
Response Response Example
200 - Example 1
{
    "key": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "name": "string",
        "keyPrefix": "sk_live_abc123...",
        "isActive": true,
        "rateLimitRpm": 0,
        "rateLimitRpd": 0,
        "lastUsedAt": "2019-08-24T14:15:22.123Z",
        "expiresAt": "2019-08-24T14:15:22.123Z",
        "createdAt": "2019-08-24T14:15:22.123Z"
    }
}
Modified at 2025-12-02 02:47:51
Previous
Create API key
Next
Delete API key
Built with