GET /accounts/me

Returns the account associated with the authenticated API key.

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 /accounts/me

Response

200 OK — returns the authenticated account.

Response fields

Field Type Description
_id string Unique account identifier
name string Account display name
email string Account email address
role string Account role (account_owner)
api_key string The API key used to authenticate this request
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
404 You do not have an account The API key is not linked to an account

Example

curl "https://api.geocerta.io/accounts/me" \
  -H "api-key: YOUR_API_KEY"