Skip to main content

Overview

Private Providers endpoints

Available Operations

  • list - List private providers
  • create - Create a private provider
  • delete - Delete a private provider
  • get - Get a private provider
  • update - Update a private provider

list

List the organization’s private providers. Requires the private endpoints entitlement. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.ListPrivateProvidersResponse>

Errors

create

Create a private, bring-your-own-key provider visible only to your organization. Use its slug as provider_slug when creating private endpoints. Requires both the private endpoints and the private providers entitlements. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.CreatePrivateProviderResponse>

Errors

delete

Delete a private provider. Refuses (409) while any private endpoint still runs under it. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.DeletePrivateProviderResponse>

Errors

get

Get one of the organization’s private providers by slug. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.GetPrivateProviderResponse>

Errors

update

Update a private provider’s details or declared data policy. The name and slug cannot change. Refuses (409) a data-policy change while OpenRouter pins the declared policy on one of its endpoints. Management key required.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.UpdatePrivateProviderResponse>

Errors