Skip to main content

Overview

Private Endpoints endpoints

Available Operations

  • list - List private endpoints
  • create - Create a private endpoint
  • delete - Delete a private endpoint
  • get - Get a private endpoint
  • update - Update a draft private endpoint
  • activate - Activate a validated private endpoint
  • disable - Disable a private endpoint
  • enable - Enable a private endpoint
  • update_pricing - Set private endpoint pricing
  • validate - Validate a draft private endpoint

list

List the organization’s private endpoints, including drafts. Requires the private endpoints entitlement. Management key required.

Example Usage

Parameters

Response

components.ListPrivateEndpointsResponse

Errors

create

Create a private endpoint as a draft. Drafts are not routable: validate one with POST /private-endpoints/{id}/validate, then activate it with POST /private-endpoints/{id}/activate. Pass activate to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an Idempotency-Key header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 idempotency_key_reused. Management key required.

Example Usage

Parameters

Response

components.ManagedPrivateEndpointResponse

Errors

delete

Delete a private endpoint and stop routing to it. Pass draft_only=true to refuse (409) when the endpoint has been activated. Management key required.

Example Usage

Parameters

Response

components.DeletePrivateEndpointResponse

Errors

get

Get one private endpoint with its upstream configuration and current pricing. Management key required.

Example Usage

Parameters

Response

components.PrivateEndpointResponse

Errors

update

Replace a draft endpoint’s upstream configuration: send upstream_model_id, and base_url to change it (an omitted base_url keeps the stored one). Omitted data-policy declarations are kept while the upstream is unchanged and cleared when it changes. Any change clears earlier validation. Active endpoints return 409; delete and re-create them instead. Management key required.

Example Usage

Parameters

Response

components.PrivateEndpointResponse

Errors

activate

Make a validated draft routable. Returns 409 when the endpoint was never validated, the validation is stale, or it is already active. Management key required.

Example Usage

Parameters

Response

components.ManagedPrivateEndpointResponse

Errors

disable

Stop routing to an active endpoint without deleting it. Management key required.

Example Usage

Parameters

Response

components.ManagedPrivateEndpointResponse

Errors

enable

Resume routing to a disabled endpoint. Management key required.

Example Usage

Parameters

Response

components.ManagedPrivateEndpointResponse

Errors

update_pricing

Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. Management key required.

Example Usage

Parameters

Response

components.PrivateEndpointResponse

Errors

validate

Send a live test request to the draft endpoint using the given workspace’s BYOK credential for its provider. A passing validation is required before activation. Failed checks return 200 with passed: false. Management key required.

Example Usage

Parameters

Response

components.PrivateEndpointValidationResponse

Errors