Get API Key Details
Check API key validity, credits, rate limit, allowed endpoints, and active plans.
GET
/v2/account/key-infoRequest
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
| Field | Type | Description |
|---|---|---|
valid | boolean | Whether the supplied key is active. |
remaining_credits | integer | null | Credits left, or null for an unlimited plan. |
next_reset_at | ISO 8601 string | Start of the next monthly usage period. |
max_requests_per_seconds | integer | Plan-wide request limit for this key. |
allowed_apis | string[] | API paths available to the key. |
active_plans | array | Active 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
| Status | Code | When |
|---|---|---|
401 | UNAUTHORIZED | The x-api-key header is missing or invalid. |
405 | METHOD_NOT_ALLOWED | The endpoint is called with an unsupported HTTP method. |
429 | RATE_LIMIT_EXCEEDED | The API key exceeds its plan-wide requests-per-second limit. |
500 | DATA_SERVICE_ERROR | The data service cannot complete the request. |
{
"success": false,
"error": {
"code": "INVALID_INPUT",
"message": "A field-specific validation message"
}
}