Auth
The Auth routes of Amiril's HTTP API that an OAuth access token can call, with their parameters, request bodies and responses.
GET
The signed-in user, their mapped role, and the workspace and environment this session serves. mode "open" means the deployment runs without auth. environmentReset appears once after the session was moved off an archived environment.
Any access token can call this, read-only or full.
accessTokenheader
AuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
Current principal
application/json- response
mode*stringValue in
"open""session"user*|nullrole*stringroles*array<string>permissions*array<>workspace*stringworkspaceName?stringenvironment*stringenvironmentName*stringproduction*booleanenvironmentReset?curl -X GET 'https://api.amiril.ai/api/auth/me'Example Response200
{ "mode": "open", "user": { "id": "string", "email": "string", "firstName": "string", "lastName": "string" }, "role": "string", "roles": [ "string" ], "permissions": [ "rules:write" ], "workspace": "string", "workspaceName": "string", "environment": "string", "environmentName": "string", "production": true, "environmentReset": { "from": "string" }}