Archive a provider (cascades to agent roles)
const url = 'https://your-org.evershell.ai/v1/providers/example/archive';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-org.evershell.ai/v1/providers/example/archive \ --header 'Authorization: Bearer <token>'Permissions: caps:write.
Hides the provider from default listings and cascades the same archive into every agent role that references it. The workspace pods of those roles continue running with the previously-activated config — archive does not interrupt in-flight work.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”OK
object
Number of agent roles that were also archived as part of this call.
Example
{ "status": "archived"}Resource not found in the caller’s org
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}workspaces_active — one or more workspaces using a
role that depends on this provider are still running.
Stop them (or use POST /agent-roles/{id}/stop-workspaces
on each affected role) before archiving.
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}