AI Gateway
List gateways
client.aiGateway.list(AIGatewayListParams { account_id, page, per_page, search } params, RequestOptionsoptions?): V4PagePaginationArray<AIGatewayListResponse { id, cache_invalidate_on_update, cache_ttl, 25 more } >
GET/accounts/{account_id}/ai-gateway/gateways
Get a gateway
client.aiGateway.get(stringid, AIGatewayGetParams { account_id } params, RequestOptionsoptions?): AIGatewayGetResponse { id, cache_invalidate_on_update, cache_ttl, 25 more }
GET/accounts/{account_id}/ai-gateway/gateways/{id}
Create a gateway
client.aiGateway.create(AIGatewayCreateParams { account_id, id, cache_invalidate_on_update, 23 more } params, RequestOptionsoptions?): AIGatewayCreateResponse { id, cache_invalidate_on_update, cache_ttl, 25 more }
POST/accounts/{account_id}/ai-gateway/gateways
Update a gateway
client.aiGateway.update(stringid, AIGatewayUpdateParams { account_id, cache_invalidate_on_update, cache_ttl, 22 more } params, RequestOptionsoptions?): AIGatewayUpdateResponse { id, cache_invalidate_on_update, cache_ttl, 25 more }
PUT/accounts/{account_id}/ai-gateway/gateways/{id}
Delete a gateway
client.aiGateway.delete(stringid, AIGatewayDeleteParams { account_id } params, RequestOptionsoptions?): AIGatewayDeleteResponse { id, cache_invalidate_on_update, cache_ttl, 25 more }
DELETE/accounts/{account_id}/ai-gateway/gateways/{id}
AI GatewayEvaluation Types
List evaluator types (deprecated)
client.aiGateway.evaluationTypes.list(EvaluationTypeListParams { account_id, order_by, order_by_direction, 2 more } params, RequestOptionsoptions?): V4PagePaginationArray<EvaluationTypeListResponse { id, created_at, description, 5 more } >
GET/accounts/{account_id}/ai-gateway/evaluation-types
AI GatewayCustom Providers
List custom providers
client.aiGateway.customProviders.list(CustomProviderListParams { account_id, beta, enable, 3 more } params, RequestOptionsoptions?): V4PagePaginationArray<CustomProviderListResponse { id, base_url, created_at, 12 more } >
GET/accounts/{account_id}/ai-gateway/custom-providers
Get a custom provider
client.aiGateway.customProviders.get(stringid, CustomProviderGetParams { account_id } params, RequestOptionsoptions?): CustomProviderGetResponse { id, base_url, created_at, 12 more }
GET/accounts/{account_id}/ai-gateway/custom-providers/{id}
Create a custom provider
client.aiGateway.customProviders.create(CustomProviderCreateParams { account_id, base_url, name, 9 more } params, RequestOptionsoptions?): CustomProviderCreateResponse { id, base_url, created_at, 12 more }
POST/accounts/{account_id}/ai-gateway/custom-providers
Delete a custom provider
client.aiGateway.customProviders.delete(stringid, CustomProviderDeleteParams { account_id } params, RequestOptionsoptions?): CustomProviderDeleteResponse { id, base_url, created_at, 12 more }
DELETE/accounts/{account_id}/ai-gateway/custom-providers/{id}
AI GatewayLogs
List Gateway Logs
client.aiGateway.logs.list(stringgatewayID, LogListParams { account_id, cached, direction, 26 more } params, RequestOptionsoptions?): V4PagePaginationArray<LogListResponse { id, cached, created_at, 16 more } >
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs
Get Gateway Log Detail
client.aiGateway.logs.get(stringid, LogGetParams { account_id, gateway_id } params, RequestOptionsoptions?): LogGetResponse { id, cached, created_at, 22 more }
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}
Patch Gateway Log
client.aiGateway.logs.edit(stringid, LogEditParams { account_id, gateway_id, feedback, 2 more } params, RequestOptionsoptions?): LogEditResponse
PATCH/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}
Delete Gateway Logs
client.aiGateway.logs.delete(stringgatewayID, LogDeleteParams { account_id, filters, limit, 2 more } params, RequestOptionsoptions?): LogDeleteResponse { success }
DELETE/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs
Get Gateway Log Request
client.aiGateway.logs.request(stringid, LogRequestParams { account_id, gateway_id } params, RequestOptionsoptions?): LogRequestResponse
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}/request
Get Gateway Log Response
client.aiGateway.logs.response(stringid, LogResponseParams { account_id, gateway_id } params, RequestOptionsoptions?): LogResponseResponse
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}/response
AI GatewayDatasets
List datasets (deprecated)
client.aiGateway.datasets.list(stringgatewayID, DatasetListParams { account_id, enable, name, 3 more } params, RequestOptionsoptions?): V4PagePaginationArray<DatasetListResponse { id, created_at, enable, 4 more } >
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets
Get a dataset (deprecated)
client.aiGateway.datasets.get(stringid, DatasetGetParams { account_id, gateway_id } params, RequestOptionsoptions?): DatasetGetResponse { id, created_at, enable, 4 more }
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets/{id}
Create a dataset (deprecated)
client.aiGateway.datasets.create(stringgatewayID, DatasetCreateParams { account_id, enable, filters, name } params, RequestOptionsoptions?): DatasetCreateResponse { id, created_at, enable, 4 more }
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets
Update a dataset (deprecated)
client.aiGateway.datasets.update(stringid, DatasetUpdateParams { account_id, gateway_id, enable, 2 more } params, RequestOptionsoptions?): DatasetUpdateResponse { id, created_at, enable, 4 more }
PUT/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets/{id}
Delete a dataset (deprecated)
client.aiGateway.datasets.delete(stringid, DatasetDeleteParams { account_id, gateway_id } params, RequestOptionsoptions?): DatasetDeleteResponse { id, created_at, enable, 4 more }
DELETE/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets/{id}
AI GatewayEvaluations
List evaluations (deprecated)
client.aiGateway.evaluations.list(stringgatewayID, EvaluationListParams { account_id, name, page, 3 more } params, RequestOptionsoptions?): V4PagePaginationArray<EvaluationListResponse { id, created_at, datasets, 6 more } >
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations
Get an evaluation (deprecated)
client.aiGateway.evaluations.get(stringid, EvaluationGetParams { account_id, gateway_id } params, RequestOptionsoptions?): EvaluationGetResponse { id, created_at, datasets, 6 more }
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations/{id}
Create an evaluation (deprecated)
client.aiGateway.evaluations.create(stringgatewayID, EvaluationCreateParams { account_id, dataset_ids, evaluation_type_ids, name } params, RequestOptionsoptions?): EvaluationCreateResponse { id, created_at, datasets, 6 more }
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations
Delete an evaluation (deprecated)
client.aiGateway.evaluations.delete(stringid, EvaluationDeleteParams { account_id, gateway_id } params, RequestOptionsoptions?): EvaluationDeleteResponse { id, created_at, datasets, 6 more }
DELETE/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations/{id}
AI GatewayDynamic Routing
List dynamic routes
client.aiGateway.dynamicRouting.list(stringgatewayID, DynamicRoutingListParams { account_id, page, per_page } params, RequestOptionsoptions?): DynamicRoutingListResponse { data, success }
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes
Get a dynamic route
client.aiGateway.dynamicRouting.get(stringid, DynamicRoutingGetParams { account_id, gateway_id } params, RequestOptionsoptions?): DynamicRoutingGetResponse { id, created_at, deployment, 5 more }
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}
Create a dynamic route
client.aiGateway.dynamicRouting.create(stringgatewayID, DynamicRoutingCreateParams { account_id, elements, name } params, RequestOptionsoptions?): DynamicRoutingCreateResponse { id, created_at, deployment, 5 more }
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes
Rename a dynamic route
client.aiGateway.dynamicRouting.update(stringid, DynamicRoutingUpdateParams { account_id, gateway_id, name } params, RequestOptionsoptions?): DynamicRoutingUpdateResponse { route, success }
PATCH/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}
Delete a dynamic route
client.aiGateway.dynamicRouting.delete(stringid, DynamicRoutingDeleteParams { account_id, gateway_id } params, RequestOptionsoptions?): DynamicRoutingDeleteResponse { id, created_at, elements, 3 more }
DELETE/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}
List dynamic route deployments
client.aiGateway.dynamicRouting.listDeployments(stringid, DynamicRoutingListDeploymentsParams { account_id, gateway_id } params, RequestOptionsoptions?): DynamicRoutingListDeploymentsResponse { data, success }
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/deployments
Deploy a dynamic route version
client.aiGateway.dynamicRouting.createDeployment(stringid, DynamicRoutingCreateDeploymentParams { account_id, gateway_id, version_id } params, RequestOptionsoptions?): DynamicRoutingCreateDeploymentResponse { id, created_at, elements, 3 more }
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/deployments
List dynamic route versions
client.aiGateway.dynamicRouting.listVersions(stringid, DynamicRoutingListVersionsParams { account_id, gateway_id } params, RequestOptionsoptions?): DynamicRoutingListVersionsResponse { data, success }
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions
Create a dynamic route version
client.aiGateway.dynamicRouting.createVersion(stringid, DynamicRoutingCreateVersionParams { account_id, gateway_id, elements } params, RequestOptionsoptions?): DynamicRoutingCreateVersionResponse { id, created_at, elements, 3 more }
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions
Get a dynamic route version
client.aiGateway.dynamicRouting.getVersion(stringversionID, DynamicRoutingGetVersionParams { account_id, gateway_id, id } params, RequestOptionsoptions?): DynamicRoutingGetVersionResponse { id, active, created_at, 7 more }
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions/{version_id}