Guardrail

List a workspace's guardrail approvals: the API-key approvals its approvers decide, or with kind=SELF your own

Changed on

Lists the workspace's approvals of one kind, newest first. WORKSPACE approvals are asks from agents acting for an API key, which a workspace owner or editor decides. SELF approvals are asks from agents acting for a person, and only that person's own are listed. Readable by any member of the workspace; API keys and agents are refused.

get/workspaces/{workspace_id}/guardrails/approvals

Request

  • Base URL: https://api.mabl.com
  • URL: https://api.mabl.com/workspaces/{workspace_id}/guardrails/approvals
  • Auth: one of:
    • HTTP basic
    • API key in header Authorization

Path parameters

workspace_idstring required

The id of the workspace the approval belongs to.

Query parameters

kind'SELF' | 'WORKSPACE'

Who decides a guardrail approval. SELF is decided by the person the agent acts for; WORKSPACE, for an agent acting for an API key, by a workspace owner or editor.

WORKSPACE for the API-key approvals the workspace's owners and editors decide, SELF for your own; WORKSPACE when absent.

state'PENDING' | 'APPROVED' | 'DENIED' | 'EXPIRED' | 'CANCELLED'

Only approvals in this state; every state when absent.

limitinteger

The most approvals to return, at most 200; 50 when absent.

Response

The workspace's approvals of that kind, newest first.

Changes