Create a provider
const url = 'https://your-org.evershell.ai/v1/providers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":"example","org_id":"example","name":"example","kind":"anthropic","display_name":"example","domain":"example","credential_name":"example","default_model":"example","capabilities":"example","config":{},"created_at":"2026-04-15T12:00:00Z","updated_at":"2026-04-15T12:00:00Z","archived_at":"2026-04-15T12:00:00Z"}'};
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 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": "example", "org_id": "example", "name": "example", "kind": "anthropic", "display_name": "example", "domain": "example", "credential_name": "example", "default_model": "example", "capabilities": "example", "config": {}, "created_at": "2026-04-15T12:00:00Z", "updated_at": "2026-04-15T12:00:00Z", "archived_at": "2026-04-15T12:00:00Z" }'Permissions: caps:write.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
References a Credential by name
Reference to the workspace’s caps.yaml capability block this provider matches
Provider-kind-specific extras (Azure api_version, Vertex project, etc.)
object
Responses
Section titled “ Responses ”Created
object
References a Credential by name
Reference to the workspace’s caps.yaml capability block this provider matches
Provider-kind-specific extras (Azure api_version, Vertex project, etc.)
object
Example
{ "kind": "anthropic"}Validation failure
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" }}Caller lacks the required scope, or cross-org access attempted
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" }}Tenant is past_due, decommissioning, or trial-expired
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" }}