Skip to content

Commit 2053895

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#692)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 536b473 commit 2053895

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

.speakeasy/in.openapi.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6908,6 +6908,18 @@ components:
69086908
name: 'Production OpenAI Key'
69096909
provider: 'openai'
69106910
properties:
6911+
allowed_api_key_hashes:
6912+
description: 'Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. Must contain at least one hash if provided. Hashes that do not belong to your account return a 400.'
6913+
example:
6914+
- 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943'
6915+
items:
6916+
pattern: '^[a-f0-9]{64}$'
6917+
type: 'string'
6918+
maxItems: 100
6919+
minItems: 1
6920+
type:
6921+
- 'array'
6922+
- 'null'
69116923
allowed_models:
69126924
description: 'Optional allowlist of model slugs this credential may be used for. `null` means no restriction.'
69136925
example: null
@@ -24785,6 +24797,18 @@ components:
2478524797
disabled: false
2478624798
name: 'Updated OpenAI Key'
2478724799
properties:
24800+
allowed_api_key_hashes:
24801+
description: 'Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` clears the restriction. Must contain at least one hash if provided. Hashes that do not belong to your account return a 400.'
24802+
example:
24803+
- 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943'
24804+
items:
24805+
pattern: '^[a-f0-9]{64}$'
24806+
type: 'string'
24807+
maxItems: 100
24808+
minItems: 1
24809+
type:
24810+
- 'array'
24811+
- 'null'
2478824812
allowed_models:
2478924813
description: 'Optional allowlist of model slugs this credential may be used for. `null` means no restriction.'
2479024814
example: null
@@ -28004,7 +28028,7 @@ paths:
2800428028
results: '$.data'
2800528029
type: 'offsetLimit'
2800628030
post:
28007-
description: 'Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
28031+
description: 'Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
2800828032
operationId: 'createBYOKKey'
2800928033
requestBody:
2801028034
content:
@@ -28207,7 +28231,7 @@ paths:
2820728231
- 'BYOK'
2820828232
x-speakeasy-name-override: 'get'
2820928233
patch:
28210-
description: 'Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.'
28234+
description: 'Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys (`null` clears the restriction). [Management key](/docs/guides/overview/auth/management-api-keys) required.'
2821128235
operationId: 'updateBYOKKey'
2821228236
parameters:
2821328237
- description: 'The BYOK credential ID (UUID).'

0 commit comments

Comments
 (0)