API key
Use this endpoint to check that a key works and what it can do. Create, deactivate and delete keys in the dashboard.
The API key model
- Name
id- Type
- string
- Description
Unique identifier (ULID) of the key.
- Name
name- Type
- string
- Description
Name you gave the key.
- Name
last_four- Type
- string
- Description
Last four characters of the key. The full key is never returned again after creation.
- Name
last_used_at- Type
- timestamp | null
- Description
When the key was last used.
- Name
expires_at- Type
- timestamp | null
- Description
When the key expires, or
nullif it never does.
- Name
is_active- Type
- boolean
- Description
Whether the key is active.
- Name
permissions- Type
- array
- Description
The permissions of the key, as
idandnamepairs.
- Name
usage- Type
- object
- Description
requests_last_hour,requests_last_24h, andtop_endpoint: the endpoint this key called most in the last 24 hours.
GET/v1/info
Retrieve the current key
Return the key that authenticated the request. It needs no permission.
Request
GET
/v1/infocurl https://api.lanewise.app/v1/info \
-H "X-API-KEY: {YOUR_API_KEY}"
Response
{
"data": {
"id": "01J9ZBZ8FMK3DQ4WNKSQBGTYNK",
"name": "Production",
"last_four": "NLKK",
"last_used_at": "2026-09-27T09:15:10.000000Z",
"expires_at": null,
"is_active": true,
"permissions": [
{ "id": 22, "name": "read-pois" },
{ "id": 23, "name": "create-pois" }
],
"usage": {
"requests_last_hour": 42,
"requests_last_24h": 318,
"top_endpoint": { "method": "GET", "endpoint": "v1/pois", "count": 210 }
}
}
}