Need more detail? Connect your coding agent to the full docs.

Skip to Content
AMIRILDocs
/

Access

The Access routes of Amiril's HTTP API that an OAuth access token can call, with their parameters, request bodies and responses.

List tool servers

GET
/api/access/servers

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.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Response Body

The environment's tool servers

application/json
  1. response
servers*array<>
Example Request
curl -X GET 'https://api.amiril.ai/api/access/servers'
Example Response200
{  "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    }  ]}

Get a tool server

GET
/api/access/servers/{serverId}

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.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

serverId*string
Match^([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)$
Formatuuid

Response Body

The server and its tools

application/json
  1. response
server*
tools*array<>

Removed tools included

agentsWithGrants*number

Agents that lose access if the server is removed

toolsWithGrants*number

Its tools granted to any agent

Example Request
curl -X GET 'https://api.amiril.ai/api/access/servers/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "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}