API referenceAuthentication
Get the authenticated principal
Returns the API key or personal access token the request used, with the company and organization it acts in. Useful to check that authentication works.
Authorization
apiKey X-API-Key<token>
API key (prefix spk_test_ or spk_live_) or personal access token (prefix pat_)
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/me"{ "allowed_organization_ids": [ "string" ], "email": "string", "organization_id": "org_abc123", "principal_id": "apk_abc123", "role": "owner", "scopes": [ "string" ], "tenant_id": "ten_abc123", "type": "api_key", "user_id": "usr_abc123"}