Access
The Access routes of Amiril's HTTP API that an OAuth access token can call, with their parameters, request bodies and responses.
The environment's registered servers, by name, with their live tools counted by access, how many are new (first seen in the last 7 days), and how many agents have a grant on any of them.
Any access token can call this, read-only or full.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
The environment's tool servers
application/json- response
servers*array<>curl -X GET 'https://api.amiril.ai/api/access/servers'{ "servers": [ { "id": "string", "slug": "string", "name": "string", "kind": "internal", "url": "string", "authMethod": "none", "authHeader": "string", "connectedAt": "string", "connectedBy": "string", "ownerTeam": "string", "icon": "string", "serverInfo": { "property1": null, "property2": null }, "status": "ok", "statusDetail": "string", "lastSyncedAt": "string", "createdAt": "string", "createdBy": "string", "deregisteredAt": "string", "toolCounts": { "read": 0, "write": 0, "destructive": 0 }, "newTools": 0, "agentsWithGrants": 0 } ]}The server and all its tools, removed ones included, each with the number of agents granted it, and how many agents and tools removing the server would affect. A deregistered server is still returned, for history.
Any access token can call this, read-only or full.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
serverId*string^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidThe server and its tools
application/json- response
server*tools*array<>Removed tools included
agentsWithGrants*numberAgents that lose access if the server is removed
toolsWithGrants*numberIts tools granted to any agent
curl -X GET 'https://api.amiril.ai/api/access/servers/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "server": { "id": "string", "slug": "string", "name": "string", "kind": "internal", "url": "string", "authMethod": "none", "authHeader": "string", "connectedAt": "string", "connectedBy": "string", "ownerTeam": "string", "icon": "string", "serverInfo": { "property1": null, "property2": null }, "status": "ok", "statusDetail": "string", "lastSyncedAt": "string", "createdAt": "string", "createdBy": "string", "deregisteredAt": "string" }, "tools": [ { "id": "string", "serverId": "string", "upstreamName": "string", "wireName": "string", "title": "string", "description": "string", "inputSchema": null, "outputSchema": null, "annotations": { "property1": null, "property2": null }, "access": "read", "accessDerived": "read", "accessOverride": "read", "annotated": true, "firstSeenAt": "string", "changedAt": "string", "removedAt": "string", "agentsGranted": 0 } ], "agentsWithGrants": 0, "toolsWithGrants": 0}