Download OpenAPI specification:
Automatically generated swagger spec for the ai stack.
| accountId required | string <int64> |
| prompt | string |
{- "prompt": "string"
}{- "config": {
- "accountId": "string",
- "prompt": "string"
}
}| comment | string Optional free text. Does not trigger regeneration by itself. |
| generationId required | string |
| rating required | string (advert_generationFeedbackRating) Default: "FEEDBACK_RATING_UNDEFINED" Enum: "FEEDBACK_RATING_UNDEFINED" "FEEDBACK_RATING_POSITIVE" "FEEDBACK_RATING_NEGATIVE" |
{- "comment": "string",
- "generationId": "string",
- "rating": "FEEDBACK_RATING_UNDEFINED"
}{- "feedback": {
- "comment": "string",
- "rating": "FEEDBACK_RATING_UNDEFINED"
}
}| objectId required | string |
{- "objectId": "string"
}{- "description": "string",
- "generationId": "string",
- "parentGenerationId": "string",
- "requestId": "string",
- "title": "string"
}| feedback required | string Revision instruction appended as a user turn after the previous assistant output. |
| generationId required | string Prior generation to revise. Account prompt and object data are reloaded server-side. |
{- "feedback": "string",
- "generationId": "string"
}{- "description": "string",
- "generationId": "string",
- "parentGenerationId": "string",
- "requestId": "string",
- "title": "string"
}| accountId required | string <int64> |
| enabled | boolean |
| enabledUseCases | Array of strings (ai_gatewayAiUseCase) Items Enum: "AI_USE_CASE_UNDEFINED" "AI_USE_CASE_CLAIM_MANAGEMENT" "AI_USE_CASE_ADVERT_DESCRIPTION" Use cases enabled for this account. When enabled=true and empty, all registered use cases are allowed. |
{- "enabled": true,
- "enabledUseCases": [
- "AI_USE_CASE_UNDEFINED"
]
}{- "settings": {
- "accountId": "string",
- "enabled": true,
- "enabledUseCases": [
- "AI_USE_CASE_UNDEFINED"
]
}
}| accountId required | string <int64> |
| filterUseCases | Array of strings (ai_gatewayAiUseCase) Items Enum: "AI_USE_CASE_UNDEFINED" "AI_USE_CASE_CLAIM_MANAGEMENT" "AI_USE_CASE_ADVERT_DESCRIPTION" Optional. If empty, include all use cases. |
| fromUnix required | string <int64> Start of period (inclusive), UNIX seconds. |
| pageSize required | integer <int32> Max records to return. Default 50, max 500. |
| pageToken required | string Opaque cursor from previous response. |
| toUnix required | string <int64> End of period (exclusive), UNIX seconds. |
{- "accountId": "string",
- "filterUseCases": [
- "AI_USE_CASE_UNDEFINED"
], - "fromUnix": "string",
- "pageSize": 0,
- "pageToken": "string",
- "toUnix": "string"
}{- "nextPageToken": "string",
- "records": [
- {
- "accountId": "string",
- "context": {
- "clientRequestId": "string",
- "referenceIds": [
- "string"
]
}, - "cost": {
- "amountMicros": "string",
- "currencyCode": "string"
}, - "createdAt": "string",
- "finishReason": "FINISH_REASON_UNDEFINED",
- "latencyMs": 0,
- "provider": "AI_PROVIDER_UNDEFINED",
- "requestId": "string",
- "resolvedModel": "string",
- "usage": {
- "completionTokens": 0,
- "promptTokens": 0,
- "totalTokens": 0
}, - "useCase": "AI_USE_CASE_UNDEFINED",
- "usedFallbackModel": true
}
], - "totalCount": 0
}| accountId required | string <int64> |
Array of objects (ai_gatewayAiQuota) |
{- "quotas": [
- {
- "costCurrencyCode": "string",
- "hardLimit": true,
- "maxCostMicros": "string",
- "maxRequests": 0,
- "maxTotalTokens": 0,
- "period": "QUOTA_PERIOD_UNDEFINED"
}
]
}{- "quotas": [
- {
- "costCurrencyCode": "string",
- "hardLimit": true,
- "maxCostMicros": "string",
- "maxRequests": 0,
- "maxTotalTokens": 0,
- "period": "QUOTA_PERIOD_UNDEFINED"
}
]
}| accountId required | string <int64> |
| fromUnix | string <int64> Start of period (inclusive), UNIX seconds. |
| toUnix | string <int64> End of period (exclusive), UNIX seconds. |
| filterUseCases | Array of strings Items Enum: "AI_USE_CASE_UNDEFINED" "AI_USE_CASE_CLAIM_MANAGEMENT" "AI_USE_CASE_ADVERT_DESCRIPTION" Optional. If empty, aggregate across all use cases. |
{- "summary": {
- "accountId": "string",
- "byUseCase": [
- {
- "cost": {
- "amountMicros": "string",
- "currencyCode": "string"
}, - "requestCount": 0,
- "tokens": {
- "completionTokens": 0,
- "promptTokens": 0,
- "totalTokens": 0
}, - "useCase": "AI_USE_CASE_UNDEFINED"
}
], - "fromUnix": "string",
- "toUnix": "string",
- "totalCost": {
- "amountMicros": "string",
- "currencyCode": "string"
}, - "totalRequests": 0,
- "totalTokens": {
- "completionTokens": 0,
- "promptTokens": 0,
- "totalTokens": 0
}
}
}