Skip to main content

Overview

Guardrails endpoints

Available Operations

list

List all guardrails for the authenticated user. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.ListGuardrailsResponse>

Errors

create

Create a new guardrail for the authenticated user. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.CreateGuardrailResponse>

Errors

delete

Delete an existing guardrail. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.DeleteGuardrailResponse>

Errors

get

Get a single guardrail by ID. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.GetGuardrailResponse>

Errors

update

Update an existing guardrail. Collection fields use replace semantics: send the full desired set on every update. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.UpdateGuardrailResponse>

Errors

listGuardrailKeyAssignments

List all API key assignments for a specific guardrail. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.ListGuardrailKeyAssignmentsResponse>

Errors

bulkAssignKeys

Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.BulkAssignKeysResponse>

Errors

bulkUnassignKeys

Unassign multiple API keys from a specific guardrail. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.BulkUnassignKeysResponse>

Errors

listGuardrailMemberAssignments

List all organization member assignments for a specific guardrail. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.ListGuardrailMemberAssignmentsResponse>

Errors

bulkAssignMembers

Assign multiple organization members to a specific guardrail. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.BulkAssignMembersResponse>

Errors

bulkUnassignMembers

Unassign multiple organization members from a specific guardrail. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.BulkUnassignMembersResponse>

Errors

listKeyAssignments

List all API key guardrail assignments for the authenticated user. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.ListKeyAssignmentsResponse>

Errors

listMemberAssignments

List all organization member guardrail assignments for the authenticated user. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.ListMemberAssignmentsResponse>

Errors