GuideAPI referenceSDKs
Dashboard
Account

Get API Key Details

Check API key validity, credits, rate limit, allowed endpoints, and active plans.

GET/v2/account/key-info

Request

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

Request fields

This endpoint has no query or JSON body fields.

Pagination

This endpoint is not paginated.

Credits

This account metadata request does not consume a request credit.

Response

FieldTypeDescription
validbooleanWhether the supplied key is active.
remaining_creditsinteger | nullCredits left, or null for an unlimited plan.
next_reset_atISO 8601 stringStart of the next monthly usage period.
max_requests_per_secondsintegerPlan-wide request limit for this key.
allowed_apisstring[]API paths available to the key.
active_plansarrayActive plan metadata.

Example response

{
  "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

StatusCodeWhen
401UNAUTHORIZEDThe x-api-key header is missing or invalid.
405METHOD_NOT_ALLOWEDThe endpoint is called with an unsupported HTTP method.
429RATE_LIMIT_EXCEEDEDThe API key exceeds its plan-wide requests-per-second limit.
500DATA_SERVICE_ERRORThe data service cannot complete the request.
{
  "success": false,
  "error": {
    "code": "INVALID_INPUT",
    "message": "A field-specific validation message"
  }
}