Skip to content

Commit 3dd3b32

Browse files
author
OpenRouter SDK Bot
committed
chore: update OpenAPI spec [sdk-bot]
1 parent 5cc246a commit 3dd3b32

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34290,7 +34290,7 @@ paths:
3429034290
- 'API Keys'
3429134291
x-speakeasy-name-override: 'list'
3429234292
post:
34293-
description: 'Create a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret.'
34293+
description: 'Create a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys). The optional `external` object associates the key with a partner-defined user and lookup key.'
3429434294
operationId: 'createKeys'
3429534295
requestBody:
3429634296
content:
@@ -34323,6 +34323,23 @@ paths:
3432334323
type:
3432434324
- 'string'
3432534325
- 'null'
34326+
external:
34327+
description: 'Optional partner-defined identity associated with the created API key.'
34328+
properties:
34329+
api_key:
34330+
description: 'Optional partner-supplied API key with a minimum length of 32 characters and sufficient entropy. Stored as a SHA-256 hash and never returned.'
34331+
maxLength: 512
34332+
minLength: 32
34333+
type: 'string'
34334+
user:
34335+
description: 'Partner''s end-user identifier for attribution.'
34336+
example: 'partner-user-123'
34337+
maxLength: 512
34338+
minLength: 1
34339+
type: 'string'
34340+
required:
34341+
- 'user'
34342+
type: 'object'
3432634343
include_byok_in_limit:
3432734344
description: 'Whether to include BYOK usage in the limit'
3432834345
example: true
@@ -34642,7 +34659,7 @@ paths:
3464234659
x-speakeasy-name-override: 'create'
3464334660
/keys/{hash}:
3464434661
delete:
34645-
description: 'Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist.'
34662+
description: 'Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).'
3464634663
operationId: 'deleteKeys'
3464734664
parameters:
3464834665
- description: 'The hash identifier of the API key to delete'
@@ -34992,7 +35009,7 @@ paths:
3499235009
- 'API Keys'
3499335010
x-speakeasy-name-override: 'get'
3499435011
patch:
34995-
description: 'Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist.'
35012+
description: 'Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).'
3499635013
operationId: 'updateKeys'
3499735014
parameters:
3499835015
- description: 'The hash identifier of the API key to update'

0 commit comments

Comments
 (0)