Environments
The Environments routes of Amiril's HTTP API that an OAuth access token can call, with their parameters, request bodies and responses.
The workspace's live environments, oldest first. Archived ones only with archived=include.
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.
archived?stringThe workspace's environments
application/json- response
environments*array<>retentionDefaults*Days of data kept without an override, by production flag. Null keeps data forever
curl -X GET 'https://api.amiril.ai/api/environments'{ "environments": [ { "id": "string", "name": "string", "production": true, "createdBy": "string", "createdAt": "string", "archivedAt": "string", "retentionDays": -9007199254740991, "effectiveRetentionDays": -9007199254740991, "purgeAfter": "string", "purgedAt": "string" } ], "retentionDefaults": { "production": -9007199254740991, "nonProduction": -9007199254740991 }}For each environment not yet purged, archived ones included: an estimate of the data it stores and when data last arrived. Read one environment at a time, for the environments list in Settings.
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.
Usage per environment, oldest environment first
application/json- response
usage*array<>curl -X GET 'https://api.amiril.ai/api/environments/usage'{ "usage": [ { "environment": "string", "storedBytes": -9007199254740991, "lastIngestAt": "string" } ]}