Identify the current key
Identify the authenticated caller and discover the resources and permissions available to a scoped key.
Request & response examples
curl --fail-with-body --request GET \ 'https://app.helicarrier.xyz/api/auth/me' \ -H "Authorization: Bearer $HELI_API_KEY"const response = await fetch( "https://app.helicarrier.xyz/api/auth/me", { method: "GET", headers: { Authorization: `Bearer ${process.env.HELI_API_KEY}` } });const data = await response.json();if (!response.ok) { throw new Error(`HTTP ${response.status}: ${data.error}`);}// Inspect data; avoid logging secret responses.import osimport requests
response = requests.request( "GET", "https://app.helicarrier.xyz/api/auth/me", headers={ "Authorization": f"Bearer {os.environ['HELI_API_KEY']}" }, timeout=30,)response.raise_for_status()data = response.json()# Inspect data; avoid logging secret responses.{ "id": "usr_example", "name": "Alex", "email": "alex@example.com", "keyScope": { "kind": "service", "serviceId": "svc_example", "serviceName": "my-app", "permissions": { "deployments": "write", "logs": "read" } }}Illustrative values · selected fields
Parameters
This request does not require path, query, or body parameters.
Response 200
The identity response describes the authenticated user and, when present, the service or project key scope, permissions, and environment restrictions. Start here when using a scoped key.
Examples show selected response fields with illustrative values. Your response can contain additional fields.
idstringUnique identifier of this resource.
namestringHuman-readable resource name.
emailstringkeyScopeobjectPresent for a service or project key; describes its resource and capability restrictions.
Child fields
kindstringserviceIdstringserviceNamestringpermissionsobjectCapability categories granted to the key, at read or write level.
Errors
401The API key is missing, invalid, or revoked.
403The caller or key scope does not permit this operation.
whoami
Required MCP arguments: none. Send path, query, and body fields together as tool arguments.