GET /api-keys/:id

Returns a single API key by ID.

Base URL: https://api.geocerta.io

Sandbox URL: https://api-staging.geocerta.io

Authentication required. Include your API key in the api-key header. See Authentication.

Endpoint

GET /api-keys/:id

Path Parameters

Parameter Type Description
id string The API key ID

Response

200 OK — returns the API key (the raw key value is never returned).

Response fields

Field Type Description
_id string API key ID
name string Key display name
owner.id string Owning account ID
owner.name string Owning account name
status string active or revoked
last_4 string Last 4 characters of the raw key
created_at string ISO 8601 creation timestamp
updated_at string ISO 8601 last-updated timestamp

Errors

Status Message Cause
401 Unauthorized Missing or invalid API key
403 Forbidden Key does not belong to your account
404 API key not found Key does not exist

Example

curl "https://api.geocerta.io/api-keys/66f3a1b2c4e5d8f9a1b2c4e5" \
  -H "api-key: YOUR_API_KEY"