API reference · v1
Meta
Identify the calling API key.
Identify the calling API key
GET
/v1/meReturns the key metadata, its owning user, the bound space (if any), and the caller's role. Works for space-unbound keys, in which case space and role are null.
Request
curl --fail-with-body 'https://api.maxclicks.ai/v1/me' \
-H "Authorization: Bearer $MAXCLICKS_API_KEY"Response
{
"data": {
"apiKey": {
"id": "max_BcwDvBUeSaSDILA5tHgpmU7I",
"name": "string",
"keyDisplay": "string",
"createdAt": "2025-01-15T10:30:00.000Z"
},
"user": {
"id": "usr_BcwDvBUeSaSDILA5tHgpmU7I",
"email": "[email protected]",
"name": "string"
},
"space": {
"id": "spc_BcwDvBUeSaSDILA5tHgpmU7I",
"slug": "string",
"name": "string"
},
"role": {
"name": "admin",
"label": "string",
"description": "string"
}
},
"warnings": []
}Status codes
- 200The identity of the calling key.
- 401The API key is missing or invalid.
- 429The rate limit was exceeded.
- 500The API failed to process a valid request.
Working with these endpoints? See error handling, safe retries, client library guides, and the complete OpenAPI schema.