Skip to content

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"

Response 200

  • userobject

    User that owns this API key.

    Fields of user
    • idstring

      User ID.

    • emailstring

      Account email address.

    • namestring

      Display name.

    • created_atinteger (ms)

      Account creation timestamp.

  • api_keyobject

    API key used for this request.

    Fields of api_key
    • idstring

      Key ID, matching api_key_id in other endpoints.

    • namestring

      Name assigned to the key.

    • key_prefixstring

      Visible prefix for identifying the key.

    • expires_atinteger (ms) | null

      Expiration 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.