Skip to content

List API Keys

GET /api/open/v1/keys
ParameterInTypeRequiredDefaultDescription
pqueryintegerNo1Page number, from 1 to 1000000
page_sizequeryintegerNo10Items per page, from 1 to 1000
namequerystringNo—Filter by exact Key name; repeat the parameter for multiple values (?name=a&name=b). Commas are not supported because names may contain commas

Each multi-value parameter accepts at most 50 values; more returns 400 invalid_request. When name is set, total reflects the filtered result. Explicitly supplied invalid p / page_size return 400; see Pagination.

Terminal window
curl "https://www.routeapi.ai/api/open/v1/keys?p=1&page_size=20&name=bot" \
-H "Authorization: Bearer $ROUTEAPI_MANAGEMENT_KEY"
{
"success": true,
"message": "",
"data": {
"items": [
{
"id": 12,
"name": "bot",
"key": "sk-abcd**********wxyz",
"status": 1,
"created_time": 1729000000,
"accessed_time": 1729000000,
"expired_time": -1,
"remain_amount": 10.00,
"unlimited": false,
"used_amount": 0.00,
"model_limits_enabled": true,
"model_limits": "gpt-4o,gpt-4o-mini",
"allow_ips": ""
}
],
"total": 1,
"page": 1,
"page_size": 20
}
}
FieldTypeDescription
itemsarrayKey objects, sorted by ID descending (newest first)
totalintegerTotal number of Keys matching the filters
pageintegerCurrent page number
page_sizeintegerEffective items per page

All Platform API endpoints that return a Key use the same structure:

FieldTypeDescription
idintegerKey ID, used as :id in other endpoints
namestringName
keystringKey value with the sk- prefix; masked everywhere except the create endpoint and Reveal an API Key
statusinteger1 enabled, 2 disabled (set manually; can be re-enabled), 3 expired, 4 exhausted; use the update endpoint to enable/disable (1 / 2 only)
created_timeintegerCreation time, unix seconds
accessed_timeintegerLast used time, unix seconds
expired_timeintegerExpiration time, unix seconds; -1 means never expires
remain_amountnumberRemaining available amount, two decimals; meaningless when unlimited is true
unlimitedbooleanWhether the Key is unlimited
used_amountnumberUsed amount, two decimals
model_limits_enabledbooleanWhether the model allowlist is enabled
model_limitsstringAllowed models, comma-separated
allow_ipsstringAllowed IPs, newline-separated; empty string means no restriction