You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .speakeasy/in.openapi.yaml
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6908,6 +6908,18 @@ components:
6908
6908
name: 'Production OpenAI Key'
6909
6909
provider: 'openai'
6910
6910
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.'
description: 'Optional allowlist of model slugs this credential may be used for. `null` means no restriction.'
6913
6925
example: null
@@ -24785,6 +24797,18 @@ components:
24785
24797
disabled: false
24786
24798
name: 'Updated OpenAI Key'
24787
24799
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.'
description: 'Optional allowlist of model slugs this credential may be used for. `null` means no restriction.'
24790
24814
example: null
@@ -28004,7 +28028,7 @@ paths:
28004
28028
results: '$.data'
28005
28029
type: 'offsetLimit'
28006
28030
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.'
28008
28032
operationId: 'createBYOKKey'
28009
28033
requestBody:
28010
28034
content:
@@ -28207,7 +28231,7 @@ paths:
28207
28231
- 'BYOK'
28208
28232
x-speakeasy-name-override: 'get'
28209
28233
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.'
0 commit comments