Current user
Identifies the user and API key authenticating the request. Use this endpoint as a lightweight health check for a key.
GEThttps://geo-api.geoeval.com/v1/me
Requires an API key in the Authorization header. Try it below
Example request
curl "https://geo-api.geoeval.com/v1/me" \ -H "Authorization: Bearer $GEOEVAL_API_KEY"const response = await fetch(`https://geo-api.geoeval.com/v1/me`, { headers: { Authorization: `Bearer ${process.env.GEOEVAL_API_KEY}`, },});const data = (await response.json()) as Record<string, unknown>;if (!response.ok) throw new Error(`${data.code}: ${data.message}`);console.log(data);import os
import requests
response = requests.get( "https://geo-api.geoeval.com/v1/me", headers={ "Authorization": f"Bearer {os.environ['GEOEVAL_API_KEY']}", }, timeout=30,)response.raise_for_status()print(response.json())Response 200
userobjectUser that owns this API key.
Fields of user
idstringUser ID.
emailstringAccount email address.
namestringDisplay name.
created_atinteger (ms)Account creation timestamp.
api_keyobjectAPI key used for this request.
Fields of api_key
idstringKey ID, matching api_key_id in other endpoints.
namestringName assigned to the key.
key_prefixstringVisible prefix for identifying the key.
expires_atinteger (ms) | nullExpiration timestamp, or null if the key never expires.
created_atinteger (ms)Key creation timestamp.
Example response
{ "user": { "id": "01a224f1-0b7e-7f10-9a44-2c1d5e8b7a31", "email": "you@example.com", "name": "Your Name", "created_at": 1797000000000 }, "api_key": { "id": "01a22524-6869-7d2d-bdab-b3a29b49ccc2", "name": "production", "key_prefix": "geo_live_8hK2mPq4Xa1Z", "expires_at": null, "created_at": 1797000100000 }}Errors
All endpoints may also return 400, 401, 403, or 500. See Errors.