Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .speakeasy/in.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6348,6 +6348,7 @@ components:
allowed_models: null
allowed_user_ids: null
created_at: '2025-08-24T10:30:00Z'
declared_region: null
declared_zdr: null
disabled: false
id: '11111111-2222-3333-4444-555555555555'
Expand Down Expand Up @@ -6392,6 +6393,17 @@ components:
description: 'ISO timestamp of when the credential was created.'
example: '2025-08-24T10:30:00Z'
type: 'string'
declared_region:
description: 'Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter''s regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key''s region. Among other providers, only Azure accepts `europe` or `us`.'
enum:
- 'global'
- 'europe'
- 'us'
- null
example: null
type:
- 'string'
- 'null'
declared_zdr:
description: 'Your declaration of whether the upstream provider account behind this credential has zero data retention (ZDR). `null` inherits OpenRouter''s data policy for the provider''s endpoint; `true` declares the account ZDR so requests that require ZDR may route to this credential even when the shared endpoint retains data; `false` declares it non-ZDR so such requests never route to it. Self-declared and not verified by OpenRouter.'
example: null
Expand Down Expand Up @@ -6452,6 +6464,7 @@ components:
- 'is_required'
- 'is_byok_only'
- 'declared_zdr'
- 'declared_region'
- 'allowed_models'
- 'allowed_api_key_hashes'
- 'allowed_user_ids'
Expand Down Expand Up @@ -9175,6 +9188,17 @@ components:
type:
- 'array'
- 'null'
declared_region:
description: 'Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter''s regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key''s region. Among other providers, only Azure accepts `europe` or `us`. Defaults to the key''s region for OpenAI and Fireworks, otherwise `null`.'
enum:
- 'global'
- 'europe'
- 'us'
- null
example: null
type:
- 'string'
- 'null'
declared_zdr:
description: 'Your declaration of whether the upstream provider account behind this credential has zero data retention (ZDR). `null` inherits OpenRouter''s data policy for the provider''s endpoint; `true` declares the account ZDR so requests that require ZDR may route to this credential even when the shared endpoint retains data; `false` declares it non-ZDR so such requests never route to it. Self-declared and not verified by OpenRouter. Defaults to `null`.'
example: null
Expand Down Expand Up @@ -9227,6 +9251,7 @@ components:
allowed_models: null
allowed_user_ids: null
created_at: '2025-08-24T10:30:00Z'
declared_region: null
declared_zdr: null
disabled: false
id: '11111111-2222-3333-4444-555555555555'
Expand Down Expand Up @@ -12580,6 +12605,7 @@ components:
allowed_models: null
allowed_user_ids: null
created_at: '2025-08-24T10:30:00Z'
declared_region: null
declared_zdr: null
disabled: false
id: '11111111-2222-3333-4444-555555555555'
Expand Down Expand Up @@ -15416,6 +15442,7 @@ components:
allowed_models: null
allowed_user_ids: null
created_at: '2025-08-24T10:30:00Z'
declared_region: null
declared_zdr: null
disabled: false
id: '11111111-2222-3333-4444-555555555555'
Expand Down Expand Up @@ -30885,6 +30912,17 @@ components:
type:
- 'array'
- 'null'
declared_region:
description: 'Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter''s regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key''s region. Among other providers, only Azure accepts `europe` or `us`. Omit to leave the stored value unchanged (rotating an OpenAI or Fireworks `key` re-derives it from the new key); `null` clears the declaration.'
enum:
- 'global'
- 'europe'
- 'us'
- null
example: null
type:
- 'string'
- 'null'
declared_zdr:
description: 'Your declaration of whether the upstream provider account behind this credential has zero data retention (ZDR). `null` inherits OpenRouter''s data policy for the provider''s endpoint; `true` declares the account ZDR so requests that require ZDR may route to this credential even when the shared endpoint retains data; `false` declares it non-ZDR so such requests never route to it. Self-declared and not verified by OpenRouter. Omit to leave the stored value unchanged; `null` clears the declaration.'
example: null
Expand Down Expand Up @@ -30927,6 +30965,7 @@ components:
allowed_models: null
allowed_user_ids: null
created_at: '2025-08-24T10:30:00Z'
declared_region: null
declared_zdr: null
disabled: false
id: '11111111-2222-3333-4444-555555555555'
Expand Down Expand Up @@ -35287,6 +35326,7 @@ paths:
allowed_models: null
allowed_user_ids: null
created_at: '2025-08-24T10:30:00Z'
declared_region: null
declared_zdr: null
disabled: false
id: '11111111-2222-3333-4444-555555555555'
Expand Down Expand Up @@ -35370,6 +35410,7 @@ paths:
allowed_models: null
allowed_user_ids: null
created_at: '2025-08-24T10:30:00Z'
declared_region: null
declared_zdr: null
disabled: false
id: '11111111-2222-3333-4444-555555555555'
Expand Down Expand Up @@ -35508,6 +35549,7 @@ paths:
allowed_models: null
allowed_user_ids: null
created_at: '2025-08-24T10:30:00Z'
declared_region: null
declared_zdr: null
disabled: false
id: '11111111-2222-3333-4444-555555555555'
Expand Down Expand Up @@ -35588,6 +35630,7 @@ paths:
allowed_models: null
allowed_user_ids: null
created_at: '2025-08-24T10:30:00Z'
declared_region: null
declared_zdr: null
disabled: false
id: '11111111-2222-3333-4444-555555555555'
Expand Down Expand Up @@ -35642,6 +35685,16 @@ paths:
schema:
$ref: '#/components/schemas/NotFoundResponse'
description: 'Not Found - Resource does not exist'
'409':
content:
application/json:
example:
error:
code: 409
message: 'Resource conflict. Please try again later.'
schema:
$ref: '#/components/schemas/ConflictResponse'
description: 'Conflict - Resource conflict or concurrent modification'
'500':
content:
application/json:
Expand Down
Loading