{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/ai:openai/create-speech":{"post":{"operationId":"ai_openai_create_speech","summary":"Create speech","description":"POST /audio/speech","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-transcription":{"post":{"operationId":"ai_openai_create_transcription","summary":"Create transcription","description":"POST /audio/transcriptions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-translation":{"post":{"operationId":"ai_openai_create_translation","summary":"Create translation","description":"POST /audio/translations","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-voice-consents":{"get":{"operationId":"ai_openai_list_voice_consents","summary":"List voice consents","description":"GET /audio/voice_consents","tags":["ai"],"parameters":[{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-voice-consent":{"post":{"operationId":"ai_openai_create_voice_consent","summary":"Create voice consent","description":"POST /audio/voice_consents","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-voice-consent":{"get":{"operationId":"ai_openai_get_voice_consent","summary":"Retrieve voice consent","description":"GET /audio/voice_consents/{consent_id}","tags":["ai"],"parameters":[{"name":"consent_id","in":"query","required":true,"description":"The ID of the consent recording to retrieve.","schema":{"type":"string","description":"The ID of the consent recording to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-voice-consent":{"post":{"operationId":"ai_openai_update_voice_consent","summary":"Update voice consent","description":"POST /audio/voice_consents/{consent_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["consent_id","body"],"properties":{"consent_id":{"type":"string","description":"The ID of the consent recording to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-voice-consent":{"post":{"operationId":"ai_openai_delete_voice_consent","summary":"Delete voice consent","description":"DELETE /audio/voice_consents/{consent_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["consent_id"],"properties":{"consent_id":{"type":"string","description":"The ID of the consent recording to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-voice":{"post":{"operationId":"ai_openai_create_voice","summary":"Create voice","description":"POST /audio/voices","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-voice":{"post":{"operationId":"ai_openai_delete_voice","summary":"Delete voice","description":"DELETE /audio/voices/{voice_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["voice_id"],"properties":{"voice_id":{"type":"string","description":"The ID of the voice to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-batches":{"get":{"operationId":"ai_openai_list_batches","summary":"List batches","description":"GET /batches","tags":["ai"],"parameters":[{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-batch":{"post":{"operationId":"ai_openai_create_batch","summary":"Create batch","description":"POST /batches","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-batch":{"get":{"operationId":"ai_openai_retrieve_batch","summary":"Retrieve batch","description":"GET /batches/{batch_id}","tags":["ai"],"parameters":[{"name":"batch_id","in":"query","required":true,"description":"The ID of the batch to retrieve.","schema":{"type":"string","description":"The ID of the batch to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/cancel-batch":{"post":{"operationId":"ai_openai_cancel_batch","summary":"Cancel batch","description":"POST /batches/{batch_id}/cancel","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["batch_id"],"properties":{"batch_id":{"type":"string","description":"The ID of the batch to cancel."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-chat-completions":{"get":{"operationId":"ai_openai_list_chat_completions","summary":"List Chat Completions","description":"GET /chat/completions","tags":["ai"],"parameters":[{"name":"model","in":"query","required":false,"description":"The model used to generate the Chat Completions.","schema":{"type":"string","description":"The model used to generate the Chat Completions."}},{"name":"metadata","in":"query","required":false,"description":"A list of metadata keys to filter the Chat Completions by. Example: `metadata[key1]=value1&metadata[key2]=value2`","schema":{"type":"string","description":"A list of metadata keys to filter the Chat Completions by. Example: `metadata[key1]=value1&metadata[key2]=value2`"}},{"name":"after","in":"query","required":false,"description":"Identifier for the last chat completion from the previous pagination request.","schema":{"type":"string","description":"Identifier for the last chat completion from the previous pagination request."}},{"name":"limit","in":"query","required":false,"description":"Number of Chat Completions to retrieve.","schema":{"type":"integer","default":20,"description":"Number of Chat Completions to retrieve."}},{"name":"order","in":"query","required":false,"description":"Sort order for Chat Completions by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort order for Chat Completions by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-chat-completion":{"post":{"operationId":"ai_openai_create_chat_completion","summary":"Create chat completion","description":"POST /chat/completions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-chat-completion":{"get":{"operationId":"ai_openai_get_chat_completion","summary":"Get chat completion","description":"GET /chat/completions/{completion_id}","tags":["ai"],"parameters":[{"name":"completion_id","in":"query","required":true,"description":"The ID of the chat completion to retrieve.","schema":{"type":"string","description":"The ID of the chat completion to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-chat-completion":{"post":{"operationId":"ai_openai_update_chat_completion","summary":"Update chat completion","description":"POST /chat/completions/{completion_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["completion_id","body"],"properties":{"completion_id":{"type":"string","description":"The ID of the chat completion to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-chat-completion":{"post":{"operationId":"ai_openai_delete_chat_completion","summary":"Delete chat completion","description":"DELETE /chat/completions/{completion_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["completion_id"],"properties":{"completion_id":{"type":"string","description":"The ID of the chat completion to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-chat-completion-messages":{"get":{"operationId":"ai_openai_get_chat_completion_messages","summary":"Get chat messages","description":"GET /chat/completions/{completion_id}/messages","tags":["ai"],"parameters":[{"name":"completion_id","in":"query","required":true,"description":"The ID of the chat completion to retrieve messages from.","schema":{"type":"string","description":"The ID of the chat completion to retrieve messages from."}},{"name":"after","in":"query","required":false,"description":"Identifier for the last message from the previous pagination request.","schema":{"type":"string","description":"Identifier for the last message from the previous pagination request."}},{"name":"limit","in":"query","required":false,"description":"Number of messages to retrieve.","schema":{"type":"integer","default":20,"description":"Number of messages to retrieve."}},{"name":"order","in":"query","required":false,"description":"Sort order for messages by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort order for messages by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-completion":{"post":{"operationId":"ai_openai_create_completion","summary":"Create completion","description":"POST /completions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-containers":{"get":{"operationId":"ai_openai_list_containers","summary":"List containers","description":"GET /containers","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"order","in":"query","required":false,"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"name","in":"query","required":false,"description":"Filter results by container name.","schema":{"type":"string","description":"Filter results by container name."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-container":{"post":{"operationId":"ai_openai_create_container","summary":"Create container","description":"POST /containers","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-container":{"get":{"operationId":"ai_openai_retrieve_container","summary":"Retrieve container","description":"GET /containers/{container_id}","tags":["ai"],"parameters":[{"name":"container_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-container":{"post":{"operationId":"ai_openai_delete_container","summary":"Delete a container","description":"DELETE /containers/{container_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["container_id"],"properties":{"container_id":{"type":"string","description":"The ID of the container to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-container-files":{"get":{"operationId":"ai_openai_list_container_files","summary":"List container files","description":"GET /containers/{container_id}/files","tags":["ai"],"parameters":[{"name":"container_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"order","in":"query","required":false,"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-container-file":{"post":{"operationId":"ai_openai_create_container_file","summary":"Create container file","description":"POST /containers/{container_id}/files","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["container_id","body"],"properties":{"container_id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-container-file":{"get":{"operationId":"ai_openai_retrieve_container_file","summary":"Retrieve container file","description":"GET /containers/{container_id}/files/{file_id}","tags":["ai"],"parameters":[{"name":"container_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"file_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-container-file":{"post":{"operationId":"ai_openai_delete_container_file","summary":"Delete a container file","description":"DELETE /containers/{container_id}/files/{file_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["container_id","file_id"],"properties":{"container_id":{"type":"string"},"file_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-container-file-content":{"get":{"operationId":"ai_openai_retrieve_container_file_content","summary":"Retrieve container file content","description":"GET /containers/{container_id}/files/{file_id}/content","tags":["ai"],"parameters":[{"name":"container_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"file_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-conversation-items":{"get":{"operationId":"ai_openai_list_conversation_items","summary":"List items","description":"GET /conversations/{conversation_id}/items","tags":["ai"],"parameters":[{"name":"conversation_id","in":"query","required":true,"description":"The ID of the conversation to list items for.","schema":{"type":"string","description":"The ID of the conversation to list items for."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"order","in":"query","required":false,"description":"The order to return the input items in. Default is `desc`. - `asc`: Return the input items in ascending order. - `desc`: Return the input…","schema":{"type":"string","enum":["asc","desc"],"description":"The order to return the input items in. Default is `desc`. - `asc`: Return the input items in ascending order. - `desc`: Return the input…"}},{"name":"after","in":"query","required":false,"description":"An item ID to list items after, used in pagination.","schema":{"type":"string","description":"An item ID to list items after, used in pagination."}},{"name":"include","in":"query","required":false,"description":"Specify additional output data to include in the model response. Currently supported values are: - `web_search_call.action.sources`:…","schema":{"type":"array","description":"Specify additional output data to include in the model response. Currently supported values are: - `web_search_call.action.sources`:…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-conversation-items":{"post":{"operationId":"ai_openai_create_conversation_items","summary":"Create items","description":"POST /conversations/{conversation_id}/items","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["conversation_id","body"],"properties":{"conversation_id":{"type":"string","description":"The ID of the conversation to add the item to."},"include":{"type":"array","description":"Additional fields to include in the response. See the `include` parameter for [listing Conversation items…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-conversation-item":{"get":{"operationId":"ai_openai_get_conversation_item","summary":"Retrieve an item","description":"GET /conversations/{conversation_id}/items/{item_id}","tags":["ai"],"parameters":[{"name":"conversation_id","in":"query","required":true,"description":"The ID of the conversation that contains the item.","schema":{"type":"string","description":"The ID of the conversation that contains the item."}},{"name":"item_id","in":"query","required":true,"description":"The ID of the item to retrieve.","schema":{"type":"string","description":"The ID of the item to retrieve."}},{"name":"include","in":"query","required":false,"description":"Additional fields to include in the response. See the `include` parameter for [listing Conversation items…","schema":{"type":"array","description":"Additional fields to include in the response. See the `include` parameter for [listing Conversation items…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-conversation-item":{"post":{"operationId":"ai_openai_delete_conversation_item","summary":"Delete an item","description":"DELETE /conversations/{conversation_id}/items/{item_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["conversation_id","item_id"],"properties":{"conversation_id":{"type":"string","description":"The ID of the conversation that contains the item."},"item_id":{"type":"string","description":"The ID of the item to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-embedding":{"post":{"operationId":"ai_openai_create_embedding","summary":"Create embeddings","description":"POST /embeddings","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-evals":{"get":{"operationId":"ai_openai_list_evals","summary":"List evals","description":"GET /evals","tags":["ai"],"parameters":[{"name":"after","in":"query","required":false,"description":"Identifier for the last eval from the previous pagination request.","schema":{"type":"string","description":"Identifier for the last eval from the previous pagination request."}},{"name":"limit","in":"query","required":false,"description":"Number of evals to retrieve.","schema":{"type":"integer","default":20,"description":"Number of evals to retrieve."}},{"name":"order","in":"query","required":false,"description":"Sort order for evals by timestamp. Use `asc` for ascending order or `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort order for evals by timestamp. Use `asc` for ascending order or `desc` for descending order."}},{"name":"order_by","in":"query","required":false,"description":"Evals can be ordered by creation time or last updated time. Use `created_at` for creation time or `updated_at` for last updated time.","schema":{"type":"string","enum":["created_at","updated_at"],"default":"created_at","description":"Evals can be ordered by creation time or last updated time. Use `created_at` for creation time or `updated_at` for last updated time."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-eval":{"post":{"operationId":"ai_openai_create_eval","summary":"Create eval","description":"POST /evals","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-eval":{"get":{"operationId":"ai_openai_get_eval","summary":"Get an eval","description":"GET /evals/{eval_id}","tags":["ai"],"parameters":[{"name":"eval_id","in":"query","required":true,"description":"The ID of the evaluation to retrieve.","schema":{"type":"string","description":"The ID of the evaluation to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-eval":{"post":{"operationId":"ai_openai_update_eval","summary":"Update an eval","description":"POST /evals/{eval_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["eval_id","body"],"properties":{"eval_id":{"type":"string","description":"The ID of the evaluation to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-eval":{"post":{"operationId":"ai_openai_delete_eval","summary":"Delete an eval","description":"DELETE /evals/{eval_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["eval_id"],"properties":{"eval_id":{"type":"string","description":"The ID of the evaluation to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-eval-runs":{"get":{"operationId":"ai_openai_get_eval_runs","summary":"Get eval runs","description":"GET /evals/{eval_id}/runs","tags":["ai"],"parameters":[{"name":"eval_id","in":"query","required":true,"description":"The ID of the evaluation to retrieve runs for.","schema":{"type":"string","description":"The ID of the evaluation to retrieve runs for."}},{"name":"after","in":"query","required":false,"description":"Identifier for the last run from the previous pagination request.","schema":{"type":"string","description":"Identifier for the last run from the previous pagination request."}},{"name":"limit","in":"query","required":false,"description":"Number of runs to retrieve.","schema":{"type":"integer","default":20,"description":"Number of runs to retrieve."}},{"name":"order","in":"query","required":false,"description":"Sort order for runs by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort order for runs by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`."}},{"name":"status","in":"query","required":false,"description":"Filter runs by status. One of `queued` | `in_progress` | `failed` | `completed` | `canceled`.","schema":{"type":"string","enum":["queued","in_progress","completed","canceled","failed"],"description":"Filter runs by status. One of `queued` | `in_progress` | `failed` | `completed` | `canceled`."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-eval-run":{"post":{"operationId":"ai_openai_create_eval_run","summary":"Create eval run","description":"POST /evals/{eval_id}/runs","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["eval_id","body"],"properties":{"eval_id":{"type":"string","description":"The ID of the evaluation to create a run for."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-eval-run":{"get":{"operationId":"ai_openai_get_eval_run","summary":"Get an eval run","description":"GET /evals/{eval_id}/runs/{run_id}","tags":["ai"],"parameters":[{"name":"eval_id","in":"query","required":true,"description":"The ID of the evaluation to retrieve runs for.","schema":{"type":"string","description":"The ID of the evaluation to retrieve runs for."}},{"name":"run_id","in":"query","required":true,"description":"The ID of the run to retrieve.","schema":{"type":"string","description":"The ID of the run to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-eval-run":{"post":{"operationId":"ai_openai_delete_eval_run","summary":"Delete eval run","description":"DELETE /evals/{eval_id}/runs/{run_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["eval_id","run_id"],"properties":{"eval_id":{"type":"string","description":"The ID of the evaluation to delete the run from."},"run_id":{"type":"string","description":"The ID of the run to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/cancel-eval-run":{"post":{"operationId":"ai_openai_cancel_eval_run","summary":"Cancel eval run","description":"POST /evals/{eval_id}/runs/{run_id}/cancel","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["eval_id","run_id"],"properties":{"eval_id":{"type":"string","description":"The ID of the evaluation whose run you want to cancel."},"run_id":{"type":"string","description":"The ID of the run to cancel."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-eval-run-output-items":{"get":{"operationId":"ai_openai_get_eval_run_output_items","summary":"Get eval run output items","description":"GET /evals/{eval_id}/runs/{run_id}/output_items","tags":["ai"],"parameters":[{"name":"eval_id","in":"query","required":true,"description":"The ID of the evaluation to retrieve runs for.","schema":{"type":"string","description":"The ID of the evaluation to retrieve runs for."}},{"name":"run_id","in":"query","required":true,"description":"The ID of the run to retrieve output items for.","schema":{"type":"string","description":"The ID of the run to retrieve output items for."}},{"name":"after","in":"query","required":false,"description":"Identifier for the last output item from the previous pagination request.","schema":{"type":"string","description":"Identifier for the last output item from the previous pagination request."}},{"name":"limit","in":"query","required":false,"description":"Number of output items to retrieve.","schema":{"type":"integer","default":20,"description":"Number of output items to retrieve."}},{"name":"status","in":"query","required":false,"description":"Filter output items by status. Use `failed` to filter by failed output items or `pass` to filter by passed output items.","schema":{"type":"string","enum":["fail","pass"],"description":"Filter output items by status. Use `failed` to filter by failed output items or `pass` to filter by passed output items."}},{"name":"order","in":"query","required":false,"description":"Sort order for output items by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort order for output items by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/get-eval-run-output-item":{"get":{"operationId":"ai_openai_get_eval_run_output_item","summary":"Get an output item of an eval run","description":"GET /evals/{eval_id}/runs/{run_id}/output_items/{output_item_id}","tags":["ai"],"parameters":[{"name":"eval_id","in":"query","required":true,"description":"The ID of the evaluation to retrieve runs for.","schema":{"type":"string","description":"The ID of the evaluation to retrieve runs for."}},{"name":"run_id","in":"query","required":true,"description":"The ID of the run to retrieve.","schema":{"type":"string","description":"The ID of the run to retrieve."}},{"name":"output_item_id","in":"query","required":true,"description":"The ID of the output item to retrieve.","schema":{"type":"string","description":"The ID of the output item to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-files":{"get":{"operationId":"ai_openai_list_files","summary":"List files","description":"GET /files","tags":["ai"],"parameters":[{"name":"purpose","in":"query","required":false,"description":"Only return files with the given purpose.","schema":{"type":"string","description":"Only return files with the given purpose."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 10,000, and the default is 10,000.","schema":{"type":"integer","default":10000,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 10,000, and the default is 10,000."}},{"name":"order","in":"query","required":false,"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-file":{"post":{"operationId":"ai_openai_create_file","summary":"Upload file","description":"POST /files","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-file":{"get":{"operationId":"ai_openai_retrieve_file","summary":"Retrieve file","description":"GET /files/{file_id}","tags":["ai"],"parameters":[{"name":"file_id","in":"query","required":true,"description":"The ID of the file to use for this request.","schema":{"type":"string","description":"The ID of the file to use for this request."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-file":{"post":{"operationId":"ai_openai_delete_file","summary":"Delete file","description":"DELETE /files/{file_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_id"],"properties":{"file_id":{"type":"string","description":"The ID of the file to use for this request."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/download-file":{"get":{"operationId":"ai_openai_download_file","summary":"Retrieve file content","description":"GET /files/{file_id}/content","tags":["ai"],"parameters":[{"name":"file_id","in":"query","required":true,"description":"The ID of the file to use for this request.","schema":{"type":"string","description":"The ID of the file to use for this request."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/run-grader":{"post":{"operationId":"ai_openai_run_grader","summary":"Run grader","description":"POST /fine_tuning/alpha/graders/run","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/validate-grader":{"post":{"operationId":"ai_openai_validate_grader","summary":"Validate grader","description":"POST /fine_tuning/alpha/graders/validate","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-fine-tuning-checkpoint-permissions":{"get":{"operationId":"ai_openai_list_fine_tuning_checkpoint_permissions","summary":"List checkpoint permissions","description":"GET /fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions","tags":["ai"],"parameters":[{"name":"fine_tuned_model_checkpoint","in":"query","required":true,"description":"The ID of the fine-tuned model checkpoint to get permissions for.","schema":{"type":"string","description":"The ID of the fine-tuned model checkpoint to get permissions for."}},{"name":"project_id","in":"query","required":false,"description":"The ID of the project to get permissions for.","schema":{"type":"string","description":"The ID of the project to get permissions for."}},{"name":"after","in":"query","required":false,"description":"Identifier for the last permission ID from the previous pagination request.","schema":{"type":"string","description":"Identifier for the last permission ID from the previous pagination request."}},{"name":"limit","in":"query","required":false,"description":"Number of permissions to retrieve.","schema":{"type":"integer","default":10,"description":"Number of permissions to retrieve."}},{"name":"order","in":"query","required":false,"description":"The order in which to retrieve permissions.","schema":{"type":"string","enum":["ascending","descending"],"default":"descending","description":"The order in which to retrieve permissions."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-fine-tuning-checkpoint-permission":{"post":{"operationId":"ai_openai_create_fine_tuning_checkpoint_permission","summary":"Create checkpoint permissions","description":"POST /fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["fine_tuned_model_checkpoint","body"],"properties":{"fine_tuned_model_checkpoint":{"type":"string","description":"The ID of the fine-tuned model checkpoint to create a permission for."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-fine-tuning-checkpoint-permission":{"post":{"operationId":"ai_openai_delete_fine_tuning_checkpoint_permission","summary":"Delete checkpoint permission","description":"DELETE /fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions/{permission_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["fine_tuned_model_checkpoint","permission_id"],"properties":{"fine_tuned_model_checkpoint":{"type":"string","description":"The ID of the fine-tuned model checkpoint to delete a permission for."},"permission_id":{"type":"string","description":"The ID of the fine-tuned model checkpoint permission to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-paginated-fine-tuning-jobs":{"get":{"operationId":"ai_openai_list_paginated_fine_tuning_jobs","summary":"List fine-tuning jobs","description":"GET /fine_tuning/jobs","tags":["ai"],"parameters":[{"name":"after","in":"query","required":false,"description":"Identifier for the last job from the previous pagination request.","schema":{"type":"string","description":"Identifier for the last job from the previous pagination request."}},{"name":"limit","in":"query","required":false,"description":"Number of fine-tuning jobs to retrieve.","schema":{"type":"integer","default":20,"description":"Number of fine-tuning jobs to retrieve."}},{"name":"metadata","in":"query","required":false,"description":"Optional metadata filter. To filter, use the syntax `metadata[k]=v`. Omitting the parameter or passing an empty object applies no metadata…","schema":{"type":"string","description":"Optional metadata filter. To filter, use the syntax `metadata[k]=v`. Omitting the parameter or passing an empty object applies no metadata…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-fine-tuning-job":{"post":{"operationId":"ai_openai_create_fine_tuning_job","summary":"Create fine-tuning job","description":"POST /fine_tuning/jobs","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-fine-tuning-job":{"get":{"operationId":"ai_openai_retrieve_fine_tuning_job","summary":"Retrieve fine-tuning job","description":"GET /fine_tuning/jobs/{fine_tuning_job_id}","tags":["ai"],"parameters":[{"name":"fine_tuning_job_id","in":"query","required":true,"description":"The ID of the fine-tuning job.","schema":{"type":"string","description":"The ID of the fine-tuning job."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/cancel-fine-tuning-job":{"post":{"operationId":"ai_openai_cancel_fine_tuning_job","summary":"Cancel fine-tuning","description":"POST /fine_tuning/jobs/{fine_tuning_job_id}/cancel","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["fine_tuning_job_id"],"properties":{"fine_tuning_job_id":{"type":"string","description":"The ID of the fine-tuning job to cancel."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-fine-tuning-job-checkpoints":{"get":{"operationId":"ai_openai_list_fine_tuning_job_checkpoints","summary":"List fine-tuning checkpoints","description":"GET /fine_tuning/jobs/{fine_tuning_job_id}/checkpoints","tags":["ai"],"parameters":[{"name":"fine_tuning_job_id","in":"query","required":true,"description":"The ID of the fine-tuning job to get checkpoints for.","schema":{"type":"string","description":"The ID of the fine-tuning job to get checkpoints for."}},{"name":"after","in":"query","required":false,"description":"Identifier for the last checkpoint ID from the previous pagination request.","schema":{"type":"string","description":"Identifier for the last checkpoint ID from the previous pagination request."}},{"name":"limit","in":"query","required":false,"description":"Number of checkpoints to retrieve.","schema":{"type":"integer","default":10,"description":"Number of checkpoints to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-fine-tuning-events":{"get":{"operationId":"ai_openai_list_fine_tuning_events","summary":"List fine-tuning events","description":"GET /fine_tuning/jobs/{fine_tuning_job_id}/events","tags":["ai"],"parameters":[{"name":"fine_tuning_job_id","in":"query","required":true,"description":"The ID of the fine-tuning job to get events for.","schema":{"type":"string","description":"The ID of the fine-tuning job to get events for."}},{"name":"after","in":"query","required":false,"description":"Identifier for the last event from the previous pagination request.","schema":{"type":"string","description":"Identifier for the last event from the previous pagination request."}},{"name":"limit","in":"query","required":false,"description":"Number of events to retrieve.","schema":{"type":"integer","default":20,"description":"Number of events to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/pause-fine-tuning-job":{"post":{"operationId":"ai_openai_pause_fine_tuning_job","summary":"Pause fine-tuning","description":"POST /fine_tuning/jobs/{fine_tuning_job_id}/pause","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["fine_tuning_job_id"],"properties":{"fine_tuning_job_id":{"type":"string","description":"The ID of the fine-tuning job to pause."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/resume-fine-tuning-job":{"post":{"operationId":"ai_openai_resume_fine_tuning_job","summary":"Resume fine-tuning","description":"POST /fine_tuning/jobs/{fine_tuning_job_id}/resume","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["fine_tuning_job_id"],"properties":{"fine_tuning_job_id":{"type":"string","description":"The ID of the fine-tuning job to resume."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-image-edit":{"post":{"operationId":"ai_openai_create_image_edit","summary":"Create image edit","description":"POST /images/edits","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-image":{"post":{"operationId":"ai_openai_create_image","summary":"Create image","description":"POST /images/generations","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-live":{"post":{"operationId":"ai_openai_create_live","summary":"Create session","description":"POST /live/sessions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/accept-live-session":{"post":{"operationId":"ai_openai_accept_live_session","summary":"Accept call","description":"POST /live/sessions/{session_id}/accept","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["session_id","body"],"properties":{"session_id":{"type":"string","description":"Opaque Live session identifier from the creation response or incoming-call webhook. Preserve the returned value unchanged, including its…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/fork-live-session":{"post":{"operationId":"ai_openai_fork_live_session","summary":"Fork session","description":"POST /live/sessions/{session_id}/fork","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["session_id","body"],"properties":{"session_id":{"type":"string","description":"The ID of the stored Live session to fork."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/hangup-live-session":{"post":{"operationId":"ai_openai_hangup_live_session","summary":"Hang up session","description":"POST /live/sessions/{session_id}/hangup","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["session_id"],"properties":{"session_id":{"type":"string","description":"Opaque Live session identifier from the creation response or incoming-call webhook. Preserve the returned value unchanged, including its…"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/refer-live-session":{"post":{"operationId":"ai_openai_refer_live_session","summary":"Transfer call","description":"POST /live/sessions/{session_id}/refer","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["session_id","body"],"properties":{"session_id":{"type":"string","description":"Opaque Live session identifier from the creation response or incoming-call webhook. Preserve the returned value unchanged, including its…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/reject-live-session":{"post":{"operationId":"ai_openai_reject_live_session","summary":"Reject call","description":"POST /live/sessions/{session_id}/reject","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["session_id","body"],"properties":{"session_id":{"type":"string","description":"Opaque Live session identifier from the creation response or incoming-call webhook. Preserve the returned value unchanged, including its…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-models":{"get":{"operationId":"ai_openai_list_models","summary":"List models","description":"GET /models","tags":["ai"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-model":{"get":{"operationId":"ai_openai_retrieve_model","summary":"Retrieve model","description":"GET /models/{model}","tags":["ai"],"parameters":[{"name":"model","in":"query","required":true,"description":"The ID of the model to use for this request","schema":{"type":"string","description":"The ID of the model to use for this request"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-model":{"post":{"operationId":"ai_openai_delete_model","summary":"Delete a fine-tuned model","description":"DELETE /models/{model}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model"],"properties":{"model":{"type":"string","description":"The model to delete"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-moderation":{"post":{"operationId":"ai_openai_create_moderation","summary":"Create moderation","description":"POST /moderations","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/admin-api-keys-list":{"get":{"operationId":"ai_openai_admin_api_keys_list","summary":"List all organization and project API keys.","description":"GET /organization/admin_api_keys","tags":["ai"],"parameters":[{"name":"after","in":"query","required":false,"description":"Return keys with IDs that come after this ID in the pagination order.","schema":{"type":"string","description":"Return keys with IDs that come after this ID in the pagination order."}},{"name":"order","in":"query","required":false,"description":"Order results by creation time, ascending or descending.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Order results by creation time, ascending or descending."}},{"name":"limit","in":"query","required":false,"description":"Maximum number of keys to return.","schema":{"type":"integer","default":20,"description":"Maximum number of keys to return."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/admin-api-keys-create":{"post":{"operationId":"ai_openai_admin_api_keys_create","summary":"Create admin API key","description":"POST /organization/admin_api_keys","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/admin-api-keys-get":{"get":{"operationId":"ai_openai_admin_api_keys_get","summary":"Retrieve admin API key","description":"GET /organization/admin_api_keys/{key_id}","tags":["ai"],"parameters":[{"name":"key_id","in":"query","required":true,"description":"The ID of the API key.","schema":{"type":"string","description":"The ID of the API key."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/admin-api-keys-delete":{"post":{"operationId":"ai_openai_admin_api_keys_delete","summary":"Delete admin API key","description":"DELETE /organization/admin_api_keys/{key_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["key_id"],"properties":{"key_id":{"type":"string","description":"The ID of the API key to be deleted."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-audit-logs":{"get":{"operationId":"ai_openai_list_audit_logs","summary":"List audit logs","description":"GET /organization/audit_logs","tags":["ai"],"parameters":[{"name":"effective_at","in":"query","required":false,"description":"Return only events whose `effective_at` (Unix seconds) is in this range.","schema":{"type":"object","description":"Return only events whose `effective_at` (Unix seconds) is in this range."}},{"name":"project_ids[]","in":"query","required":false,"description":"Return only events for these projects.","schema":{"type":"array","description":"Return only events for these projects."}},{"name":"event_types[]","in":"query","required":false,"description":"Return only events with a `type` in one of these values. For example, `project.created`. For all options, see the documentation for the…","schema":{"type":"array","description":"Return only events with a `type` in one of these values. For example, `project.created`. For all options, see the documentation for the…"}},{"name":"actor_ids[]","in":"query","required":false,"description":"Return only events performed by these actors. Can be a user ID, a service account ID, or an api key tracking ID.","schema":{"type":"array","description":"Return only events performed by these actors. Can be a user ID, a service account ID, or an api key tracking ID."}},{"name":"actor_emails[]","in":"query","required":false,"description":"Return only events performed by users with these emails.","schema":{"type":"array","description":"Return only events performed by users with these emails."}},{"name":"resource_ids[]","in":"query","required":false,"description":"Return only events performed on these targets. For example, a project ID updated. For ChatGPT connector role events, use the workspace…","schema":{"type":"array","description":"Return only events performed on these targets. For example, a project ID updated. For ChatGPT connector role events, use the workspace…"}},{"name":"tenant_only","in":"query","required":false,"description":"Return only tenant-scoped events associated with this organization. Required for tenant-scoped events such as `role.bound_to_resource` and…","schema":{"type":"boolean","default":false,"description":"Return only tenant-scoped events associated with this organization. Required for tenant-scoped events such as `role.bound_to_resource` and…"}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"before","in":"query","required":false,"description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-organization-certificates":{"get":{"operationId":"ai_openai_list_organization_certificates","summary":"List organization certificates","description":"GET /organization/certificates","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"order","in":"query","required":false,"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/upload-certificate":{"post":{"operationId":"ai_openai_upload_certificate","summary":"Upload certificate","description":"POST /organization/certificates","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/activate-organization-certificates":{"post":{"operationId":"ai_openai_activate_organization_certificates","summary":"Activate certificates for organization","description":"POST /organization/certificates/activate","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/deactivate-organization-certificates":{"post":{"operationId":"ai_openai_deactivate_organization_certificates","summary":"Deactivate certificates for organization","description":"POST /organization/certificates/deactivate","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-certificate":{"get":{"operationId":"ai_openai_get_certificate","summary":"Get certificate","description":"GET /organization/certificates/{certificate_id}","tags":["ai"],"parameters":[{"name":"certificate_id","in":"query","required":true,"description":"Unique ID of the certificate to retrieve.","schema":{"type":"string","description":"Unique ID of the certificate to retrieve."}},{"name":"include","in":"query","required":false,"description":"A list of additional fields to include in the response. Currently the only supported value is `content` to fetch the PEM content of the…","schema":{"type":"array","description":"A list of additional fields to include in the response. Currently the only supported value is `content` to fetch the PEM content of the…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/modify-certificate":{"post":{"operationId":"ai_openai_modify_certificate","summary":"Modify certificate","description":"POST /organization/certificates/{certificate_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["certificate_id","body"],"properties":{"certificate_id":{"type":"string","description":"Unique ID of the certificate to modify."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-certificate":{"post":{"operationId":"ai_openai_delete_certificate","summary":"Delete certificate","description":"DELETE /organization/certificates/{certificate_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["certificate_id"],"properties":{"certificate_id":{"type":"string","description":"Unique ID of the certificate to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/usage-costs":{"get":{"operationId":"ai_openai_usage_costs","summary":"Costs","description":"GET /organization/costs","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"integer","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently only `1d` is supported, default to `1d`.","schema":{"type":"string","enum":["1d"],"default":"1d","description":"Width of each time bucket in response. Currently only `1d` is supported, default to `1d`."}},{"name":"project_ids","in":"query","required":false,"description":"Return only costs for these projects.","schema":{"type":"array","description":"Return only costs for these projects."}},{"name":"api_key_ids","in":"query","required":false,"description":"Return only costs for these API keys.","schema":{"type":"array","description":"Return only costs for these API keys."}},{"name":"line_items","in":"query","required":false,"description":"Return only costs for these exact line item names. Each value must match the complete `line_item` value, for example `gpt-6-astra,…","schema":{"type":"array","description":"Return only costs for these exact line item names. Each value must match the complete `line_item` value, for example `gpt-6-astra,…"}},{"name":"group_by","in":"query","required":false,"description":"Group the costs by the specified fields. Supported fields include `project_id`, `user_id`, `line_item`, `api_key_id`, and `api_source`.…","schema":{"type":"array","description":"Group the costs by the specified fields. Supported fields include `project_id`, `user_id`, `line_item`, `api_key_id`, and `api_source`.…"}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of buckets to be returned. Limit can range between 1 and 180, and the default is 7.","schema":{"type":"integer","default":7,"description":"A limit on the number of buckets to be returned. Limit can range between 1 and 180, and the default is 7."}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-organization-data-retention":{"get":{"operationId":"ai_openai_retrieve_organization_data_retention","summary":"Retrieve organization data retention","description":"GET /organization/data_retention","tags":["ai"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-organization-data-retention":{"post":{"operationId":"ai_openai_update_organization_data_retention","summary":"Update organization data retention","description":"POST /organization/data_retention","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-groups":{"get":{"operationId":"ai_openai_list_groups","summary":"List groups","description":"GET /organization/groups","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"A limit on the number of groups to be returned. Limit can range between 0 and 1000, and the default is 100.","schema":{"type":"integer","default":100,"description":"A limit on the number of groups to be returned. Limit can range between 0 and 1000, and the default is 100."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is a group ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is a group ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"order","in":"query","required":false,"description":"Specifies the sort order of the returned groups.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Specifies the sort order of the returned groups."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-group":{"post":{"operationId":"ai_openai_create_group","summary":"Create group","description":"POST /organization/groups","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-group":{"get":{"operationId":"ai_openai_retrieve_group","summary":"Retrieve group","description":"GET /organization/groups/{group_id}","tags":["ai"],"parameters":[{"name":"group_id","in":"query","required":true,"description":"The ID of the group to retrieve.","schema":{"type":"string","description":"The ID of the group to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-group":{"post":{"operationId":"ai_openai_update_group","summary":"Update group","description":"POST /organization/groups/{group_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["group_id","body"],"properties":{"group_id":{"type":"string","description":"The ID of the group to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-group":{"post":{"operationId":"ai_openai_delete_group","summary":"Delete group","description":"DELETE /organization/groups/{group_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["group_id"],"properties":{"group_id":{"type":"string","description":"The ID of the group to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-group-role-assignments":{"get":{"operationId":"ai_openai_list_group_role_assignments","summary":"List group organization role assignments","description":"GET /organization/groups/{group_id}/roles","tags":["ai"],"parameters":[{"name":"group_id","in":"query","required":true,"description":"The ID of the group whose organization role assignments you want to list.","schema":{"type":"string","description":"The ID of the group whose organization role assignments you want to list."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of organization role assignments to return.","schema":{"type":"integer","description":"A limit on the number of organization role assignments to return."}},{"name":"after","in":"query","required":false,"description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing organization roles.","schema":{"type":"string","description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing organization roles."}},{"name":"order","in":"query","required":false,"description":"Sort order for the returned organization roles.","schema":{"type":"string","enum":["asc","desc"],"description":"Sort order for the returned organization roles."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/assign-group-role":{"post":{"operationId":"ai_openai_assign_group_role","summary":"Assign organization role to group","description":"POST /organization/groups/{group_id}/roles","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["group_id","body"],"properties":{"group_id":{"type":"string","description":"The ID of the group that should receive the organization role."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-group-role":{"get":{"operationId":"ai_openai_retrieve_group_role","summary":"Retrieve group organization role","description":"GET /organization/groups/{group_id}/roles/{role_id}","tags":["ai"],"parameters":[{"name":"group_id","in":"query","required":true,"description":"The ID of the group to inspect.","schema":{"type":"string","description":"The ID of the group to inspect."}},{"name":"role_id","in":"query","required":true,"description":"The ID of the organization role to retrieve for the group.","schema":{"type":"string","description":"The ID of the organization role to retrieve for the group."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/unassign-group-role":{"post":{"operationId":"ai_openai_unassign_group_role","summary":"Unassign organization role from group","description":"DELETE /organization/groups/{group_id}/roles/{role_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["group_id","role_id"],"properties":{"group_id":{"type":"string","description":"The ID of the group to modify."},"role_id":{"type":"string","description":"The ID of the organization role to remove from the group."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-group-users":{"get":{"operationId":"ai_openai_list_group_users","summary":"List group users","description":"GET /organization/groups/{group_id}/users","tags":["ai"],"parameters":[{"name":"group_id","in":"query","required":true,"description":"The ID of the group to inspect.","schema":{"type":"string","description":"The ID of the group to inspect."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of users to be returned. Limit can range between 0 and 1000, and the default is 100.","schema":{"type":"integer","default":100,"description":"A limit on the number of users to be returned. Limit can range between 0 and 1000, and the default is 100."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. Provide the ID of the last user from the previous list response to retrieve the next page.","schema":{"type":"string","description":"A cursor for use in pagination. Provide the ID of the last user from the previous list response to retrieve the next page."}},{"name":"order","in":"query","required":false,"description":"Specifies the sort order of users in the list.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Specifies the sort order of users in the list."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/add-group-user":{"post":{"operationId":"ai_openai_add_group_user","summary":"Add group user","description":"POST /organization/groups/{group_id}/users","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["group_id","body"],"properties":{"group_id":{"type":"string","description":"The ID of the group to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-group-user":{"get":{"operationId":"ai_openai_retrieve_group_user","summary":"Retrieve group user","description":"GET /organization/groups/{group_id}/users/{user_id}","tags":["ai"],"parameters":[{"name":"group_id","in":"query","required":true,"description":"The ID of the group to inspect.","schema":{"type":"string","description":"The ID of the group to inspect."}},{"name":"user_id","in":"query","required":true,"description":"The ID of the user to retrieve from the group.","schema":{"type":"string","description":"The ID of the user to retrieve from the group."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/remove-group-user":{"post":{"operationId":"ai_openai_remove_group_user","summary":"Remove group user","description":"DELETE /organization/groups/{group_id}/users/{user_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["group_id","user_id"],"properties":{"group_id":{"type":"string","description":"The ID of the group to update."},"user_id":{"type":"string","description":"The ID of the user to remove from the group."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-invites":{"get":{"operationId":"ai_openai_list_invites","summary":"List invites","description":"GET /organization/invites","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/invite-user":{"post":{"operationId":"ai_openai_invite_user","summary":"Create invite","description":"POST /organization/invites","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-invite":{"get":{"operationId":"ai_openai_retrieve_invite","summary":"Retrieve invite","description":"GET /organization/invites/{invite_id}","tags":["ai"],"parameters":[{"name":"invite_id","in":"query","required":true,"description":"The ID of the invite to retrieve.","schema":{"type":"string","description":"The ID of the invite to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-invite":{"post":{"operationId":"ai_openai_delete_invite","summary":"Delete invite","description":"DELETE /organization/invites/{invite_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["invite_id"],"properties":{"invite_id":{"type":"string","description":"The ID of the invite to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-projects":{"get":{"operationId":"ai_openai_list_projects","summary":"List projects","description":"GET /organization/projects","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"include_archived","in":"query","required":false,"description":"If `true` returns all projects including those that have been `archived`. Archived projects are not included by default.","schema":{"type":"boolean","default":false,"description":"If `true` returns all projects including those that have been `archived`. Archived projects are not included by default."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-project":{"post":{"operationId":"ai_openai_create_project","summary":"Create project","description":"POST /organization/projects","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project":{"get":{"operationId":"ai_openai_retrieve_project","summary":"Retrieve project","description":"GET /organization/projects/{project_id}","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/modify-project":{"post":{"operationId":"ai_openai_modify_project","summary":"Modify project","description":"POST /organization/projects/{project_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-project-api-keys":{"get":{"operationId":"ai_openai_list_project_api_keys","summary":"List project API keys","description":"GET /organization/projects/{project_id}/api_keys","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"owner_project_access","in":"query","required":false,"description":"Filter API keys by whether the owner currently has effective access to the project. Use `active` for owners with access, `inactive` for…","schema":{"type":"string","enum":["active","inactive","any"],"description":"Filter API keys by whether the owner currently has effective access to the project. Use `active` for owners with access, `inactive` for…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project-api-key":{"get":{"operationId":"ai_openai_retrieve_project_api_key","summary":"Retrieve project API key","description":"GET /organization/projects/{project_id}/api_keys/{api_key_id}","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}},{"name":"api_key_id","in":"query","required":true,"description":"The ID of the API key.","schema":{"type":"string","description":"The ID of the API key."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-project-api-key":{"post":{"operationId":"ai_openai_update_project_api_key","summary":"Update project API key","description":"POST /organization/projects/{project_id}/api_keys/{api_key_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","api_key_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"api_key_id":{"type":"string","description":"The ID of the API key."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-project-api-key":{"post":{"operationId":"ai_openai_delete_project_api_key","summary":"Delete project API key","description":"DELETE /organization/projects/{project_id}/api_keys/{api_key_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","api_key_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"api_key_id":{"type":"string","description":"The ID of the API key."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/archive-project":{"post":{"operationId":"ai_openai_archive_project","summary":"Archive project","description":"POST /organization/projects/{project_id}/archive","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-project-certificates":{"get":{"operationId":"ai_openai_list_project_certificates","summary":"List project certificates","description":"GET /organization/projects/{project_id}/certificates","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"order","in":"query","required":false,"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/activate-project-certificates":{"post":{"operationId":"ai_openai_activate_project_certificates","summary":"Activate certificates for project","description":"POST /organization/projects/{project_id}/certificates/activate","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/deactivate-project-certificates":{"post":{"operationId":"ai_openai_deactivate_project_certificates","summary":"Deactivate certificates for project","description":"POST /organization/projects/{project_id}/certificates/deactivate","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project-data-retention":{"get":{"operationId":"ai_openai_retrieve_project_data_retention","summary":"Retrieve project data retention","description":"GET /organization/projects/{project_id}/data_retention","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project to inspect.","schema":{"type":"string","description":"The ID of the project to inspect."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-project-data-retention":{"post":{"operationId":"ai_openai_update_project_data_retention","summary":"Update project data retention","description":"POST /organization/projects/{project_id}/data_retention","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-project-groups":{"get":{"operationId":"ai_openai_list_project_groups","summary":"List project groups","description":"GET /organization/projects/{project_id}/groups","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project to inspect.","schema":{"type":"string","description":"The ID of the project to inspect."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of project groups to return. Defaults to 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of project groups to return. Defaults to 20."}},{"name":"after","in":"query","required":false,"description":"Cursor for pagination. Provide the ID of the last group from the previous response to fetch the next page.","schema":{"type":"string","description":"Cursor for pagination. Provide the ID of the last group from the previous response to fetch the next page."}},{"name":"order","in":"query","required":false,"description":"Sort order for the returned groups.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort order for the returned groups."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/add-project-group":{"post":{"operationId":"ai_openai_add_project_group","summary":"Add project group","description":"POST /organization/projects/{project_id}/groups","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project-group":{"get":{"operationId":"ai_openai_retrieve_project_group","summary":"Retrieve project group","description":"GET /organization/projects/{project_id}/groups/{group_id}","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project to inspect.","schema":{"type":"string","description":"The ID of the project to inspect."}},{"name":"group_id","in":"query","required":true,"description":"The ID of the group to retrieve.","schema":{"type":"string","description":"The ID of the group to retrieve."}},{"name":"group_type","in":"query","required":false,"description":"The type of group to retrieve.","schema":{"type":"string","enum":["group","tenant_group"],"default":"group","description":"The type of group to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/remove-project-group":{"post":{"operationId":"ai_openai_remove_project_group","summary":"Remove project group","description":"DELETE /organization/projects/{project_id}/groups/{group_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","group_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project to update."},"group_id":{"type":"string","description":"The ID of the group to remove from the project."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project-hosted-tool-permissions":{"get":{"operationId":"ai_openai_retrieve_project_hosted_tool_permissions","summary":"Retrieve project hosted tool permissions","description":"GET /organization/projects/{project_id}/hosted_tool_permissions","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-project-hosted-tool-permissions":{"post":{"operationId":"ai_openai_update_project_hosted_tool_permissions","summary":"Modify project hosted tool permissions","description":"POST /organization/projects/{project_id}/hosted_tool_permissions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project-model-permissions":{"get":{"operationId":"ai_openai_retrieve_project_model_permissions","summary":"Retrieve project model permissions","description":"GET /organization/projects/{project_id}/model_permissions","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-project-model-permissions":{"post":{"operationId":"ai_openai_update_project_model_permissions","summary":"Modify project model permissions","description":"POST /organization/projects/{project_id}/model_permissions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-project-model-permissions":{"post":{"operationId":"ai_openai_delete_project_model_permissions","summary":"Delete project model permissions","description":"DELETE /organization/projects/{project_id}/model_permissions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-project-rate-limits":{"get":{"operationId":"ai_openai_list_project_rate_limits","summary":"List project rate limits","description":"GET /organization/projects/{project_id}/rate_limits","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. The default is 100.","schema":{"type":"integer","default":100,"description":"A limit on the number of objects to be returned. The default is 100."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"before","in":"query","required":false,"description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-project-rate-limits":{"post":{"operationId":"ai_openai_update_project_rate_limits","summary":"Modify project rate limit","description":"POST /organization/projects/{project_id}/rate_limits/{rate_limit_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","rate_limit_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"rate_limit_id":{"type":"string","description":"The ID of the rate limit."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-project-service-accounts":{"get":{"operationId":"ai_openai_list_project_service_accounts","summary":"List project service accounts","description":"GET /organization/projects/{project_id}/service_accounts","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-project-service-account":{"post":{"operationId":"ai_openai_create_project_service_account","summary":"Create project service account","description":"POST /organization/projects/{project_id}/service_accounts","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project-service-account":{"get":{"operationId":"ai_openai_retrieve_project_service_account","summary":"Retrieve project service account","description":"GET /organization/projects/{project_id}/service_accounts/{service_account_id}","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}},{"name":"service_account_id","in":"query","required":true,"description":"The ID of the service account.","schema":{"type":"string","description":"The ID of the service account."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-project-service-account":{"post":{"operationId":"ai_openai_update_project_service_account","summary":"Update project service account","description":"POST /organization/projects/{project_id}/service_accounts/{service_account_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","service_account_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"service_account_id":{"type":"string","description":"The ID of the service account."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-project-service-account":{"post":{"operationId":"ai_openai_delete_project_service_account","summary":"Delete project service account","description":"DELETE /organization/projects/{project_id}/service_accounts/{service_account_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","service_account_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"service_account_id":{"type":"string","description":"The ID of the service account."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-project-spend-alerts":{"get":{"operationId":"ai_openai_list_project_spend_alerts","summary":"List project spend alerts","description":"GET /organization/projects/{project_id}/spend_alerts","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project to inspect.","schema":{"type":"string","description":"The ID of the project to inspect."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of spend alerts to return. Defaults to 20.","schema":{"type":"integer","description":"A limit on the number of spend alerts to return. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"Sort order for the returned spend alerts.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort order for the returned spend alerts."}},{"name":"after","in":"query","required":false,"description":"Cursor for pagination. Provide the ID of the last spend alert from the previous response to fetch the next page.","schema":{"type":"string","description":"Cursor for pagination. Provide the ID of the last spend alert from the previous response to fetch the next page."}},{"name":"before","in":"query","required":false,"description":"Cursor for pagination. Provide the ID of the first spend alert from the previous response to fetch the previous page.","schema":{"type":"string","description":"Cursor for pagination. Provide the ID of the first spend alert from the previous response to fetch the previous page."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-project-spend-alert":{"post":{"operationId":"ai_openai_create_project_spend_alert","summary":"Create project spend alert","description":"POST /organization/projects/{project_id}/spend_alerts","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project-spend-alert":{"get":{"operationId":"ai_openai_retrieve_project_spend_alert","summary":"Retrieve project spend alert","description":"GET /organization/projects/{project_id}/spend_alerts/{alert_id}","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}},{"name":"alert_id","in":"query","required":true,"description":"The ID of the spend alert to retrieve.","schema":{"type":"string","description":"The ID of the spend alert to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-project-spend-alert":{"post":{"operationId":"ai_openai_update_project_spend_alert","summary":"Update project spend alert","description":"POST /organization/projects/{project_id}/spend_alerts/{alert_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","alert_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project to update."},"alert_id":{"type":"string","description":"The ID of the spend alert to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-project-spend-alert":{"post":{"operationId":"ai_openai_delete_project_spend_alert","summary":"Delete project spend alert","description":"DELETE /organization/projects/{project_id}/spend_alerts/{alert_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","alert_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project to update."},"alert_id":{"type":"string","description":"The ID of the spend alert to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-project-users":{"get":{"operationId":"ai_openai_list_project_users","summary":"List project users","description":"GET /organization/projects/{project_id}/users","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-project-user":{"post":{"operationId":"ai_openai_create_project_user","summary":"Create project user","description":"POST /organization/projects/{project_id}/users","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project-user":{"get":{"operationId":"ai_openai_retrieve_project_user","summary":"Retrieve project user","description":"GET /organization/projects/{project_id}/users/{user_id}","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}},{"name":"user_id","in":"query","required":true,"description":"The ID of the user.","schema":{"type":"string","description":"The ID of the user."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/modify-project-user":{"post":{"operationId":"ai_openai_modify_project_user","summary":"Modify project user","description":"POST /organization/projects/{project_id}/users/{user_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","user_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"user_id":{"type":"string","description":"The ID of the user."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-project-user":{"post":{"operationId":"ai_openai_delete_project_user","summary":"Delete project user","description":"DELETE /organization/projects/{project_id}/users/{user_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","user_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"user_id":{"type":"string","description":"The ID of the user."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-roles":{"get":{"operationId":"ai_openai_list_roles","summary":"List organization roles","description":"GET /organization/roles","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"A limit on the number of roles to return. Defaults to 1000.","schema":{"type":"integer","default":1000,"description":"A limit on the number of roles to return. Defaults to 1000."}},{"name":"after","in":"query","required":false,"description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing roles.","schema":{"type":"string","description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing roles."}},{"name":"order","in":"query","required":false,"description":"Sort order for the returned roles.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort order for the returned roles."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-role":{"post":{"operationId":"ai_openai_create_role","summary":"Create organization role","description":"POST /organization/roles","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-role":{"get":{"operationId":"ai_openai_retrieve_role","summary":"Retrieve organization role","description":"GET /organization/roles/{role_id}","tags":["ai"],"parameters":[{"name":"role_id","in":"query","required":true,"description":"The ID of the role to retrieve.","schema":{"type":"string","description":"The ID of the role to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-role":{"post":{"operationId":"ai_openai_update_role","summary":"Update organization role","description":"POST /organization/roles/{role_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["role_id","body"],"properties":{"role_id":{"type":"string","description":"The ID of the role to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-role":{"post":{"operationId":"ai_openai_delete_role","summary":"Delete organization role","description":"DELETE /organization/roles/{role_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["role_id"],"properties":{"role_id":{"type":"string","description":"The ID of the role to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-organization-spend-alerts":{"get":{"operationId":"ai_openai_list_organization_spend_alerts","summary":"List organization spend alerts","description":"GET /organization/spend_alerts","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"A limit on the number of spend alerts to return. Defaults to 20.","schema":{"type":"integer","description":"A limit on the number of spend alerts to return. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"Sort order for the returned spend alerts.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort order for the returned spend alerts."}},{"name":"after","in":"query","required":false,"description":"Cursor for pagination. Provide the ID of the last spend alert from the previous response to fetch the next page.","schema":{"type":"string","description":"Cursor for pagination. Provide the ID of the last spend alert from the previous response to fetch the next page."}},{"name":"before","in":"query","required":false,"description":"Cursor for pagination. Provide the ID of the first spend alert from the previous response to fetch the previous page.","schema":{"type":"string","description":"Cursor for pagination. Provide the ID of the first spend alert from the previous response to fetch the previous page."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-organization-spend-alert":{"post":{"operationId":"ai_openai_create_organization_spend_alert","summary":"Create organization spend alert","description":"POST /organization/spend_alerts","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-organization-spend-alert":{"get":{"operationId":"ai_openai_retrieve_organization_spend_alert","summary":"Retrieve organization spend alert","description":"GET /organization/spend_alerts/{alert_id}","tags":["ai"],"parameters":[{"name":"alert_id","in":"query","required":true,"description":"The ID of the spend alert to retrieve.","schema":{"type":"string","description":"The ID of the spend alert to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-organization-spend-alert":{"post":{"operationId":"ai_openai_update_organization_spend_alert","summary":"Update organization spend alert","description":"POST /organization/spend_alerts/{alert_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["alert_id","body"],"properties":{"alert_id":{"type":"string","description":"The ID of the spend alert to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-organization-spend-alert":{"post":{"operationId":"ai_openai_delete_organization_spend_alert","summary":"Delete organization spend alert","description":"DELETE /organization/spend_alerts/{alert_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["alert_id"],"properties":{"alert_id":{"type":"string","description":"The ID of the spend alert to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/usage-audio-speeches":{"get":{"operationId":"ai_openai_usage_audio_speeches","summary":"Audio speeches","description":"GET /organization/usage/audio_speeches","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"integer","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.","schema":{"type":"string","enum":["1m","1h","1d"],"default":"1d","description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`."}},{"name":"project_ids","in":"query","required":false,"description":"Return only usage for these projects.","schema":{"type":"array","description":"Return only usage for these projects."}},{"name":"user_ids","in":"query","required":false,"description":"Return only usage for these users.","schema":{"type":"array","description":"Return only usage for these users."}},{"name":"api_key_ids","in":"query","required":false,"description":"Return only usage for these API keys.","schema":{"type":"array","description":"Return only usage for these API keys."}},{"name":"models","in":"query","required":false,"description":"Return only usage for these models.","schema":{"type":"array","description":"Return only usage for these models."}},{"name":"group_by","in":"query","required":false,"description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of…","schema":{"type":"array","description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of…"}},{"name":"limit","in":"query","required":false,"description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…","schema":{"type":"integer","description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…"}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/usage-audio-transcriptions":{"get":{"operationId":"ai_openai_usage_audio_transcriptions","summary":"Audio transcriptions","description":"GET /organization/usage/audio_transcriptions","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"integer","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.","schema":{"type":"string","enum":["1m","1h","1d"],"default":"1d","description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`."}},{"name":"project_ids","in":"query","required":false,"description":"Return only usage for these projects.","schema":{"type":"array","description":"Return only usage for these projects."}},{"name":"user_ids","in":"query","required":false,"description":"Return only usage for these users.","schema":{"type":"array","description":"Return only usage for these users."}},{"name":"api_key_ids","in":"query","required":false,"description":"Return only usage for these API keys.","schema":{"type":"array","description":"Return only usage for these API keys."}},{"name":"models","in":"query","required":false,"description":"Return only usage for these models.","schema":{"type":"array","description":"Return only usage for these models."}},{"name":"group_by","in":"query","required":false,"description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of…","schema":{"type":"array","description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of…"}},{"name":"limit","in":"query","required":false,"description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…","schema":{"type":"integer","description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…"}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/usage-code-interpreter-sessions":{"get":{"operationId":"ai_openai_usage_code_interpreter_sessions","summary":"Code interpreter sessions","description":"GET /organization/usage/code_interpreter_sessions","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"integer","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.","schema":{"type":"string","enum":["1m","1h","1d"],"default":"1d","description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`."}},{"name":"project_ids","in":"query","required":false,"description":"Return only usage for these projects.","schema":{"type":"array","description":"Return only usage for these projects."}},{"name":"group_by","in":"query","required":false,"description":"Group the usage data by the specified fields. Support fields include `project_id`.","schema":{"type":"array","description":"Group the usage data by the specified fields. Support fields include `project_id`."}},{"name":"limit","in":"query","required":false,"description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…","schema":{"type":"integer","description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…"}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/usage-completions":{"get":{"operationId":"ai_openai_usage_completions","summary":"Completions","description":"GET /organization/usage/completions","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"integer","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.","schema":{"type":"string","enum":["1m","1h","1d"],"default":"1d","description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`."}},{"name":"project_ids","in":"query","required":false,"description":"Return only usage for these projects.","schema":{"type":"array","description":"Return only usage for these projects."}},{"name":"user_ids","in":"query","required":false,"description":"Return only usage for these users.","schema":{"type":"array","description":"Return only usage for these users."}},{"name":"api_key_ids","in":"query","required":false,"description":"Return only usage for these API keys.","schema":{"type":"array","description":"Return only usage for these API keys."}},{"name":"models","in":"query","required":false,"description":"Return only usage for these models.","schema":{"type":"array","description":"Return only usage for these models."}},{"name":"batch","in":"query","required":false,"description":"If `true`, return batch jobs only. If `false`, return non-batch jobs only. By default, return both.","schema":{"type":"boolean","description":"If `true`, return batch jobs only. If `false`, return non-batch jobs only. By default, return both."}},{"name":"group_by","in":"query","required":false,"description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model`, `batch`,…","schema":{"type":"array","description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model`, `batch`,…"}},{"name":"limit","in":"query","required":false,"description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…","schema":{"type":"integer","description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…"}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/usage-embeddings":{"get":{"operationId":"ai_openai_usage_embeddings","summary":"Embeddings","description":"GET /organization/usage/embeddings","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"integer","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.","schema":{"type":"string","enum":["1m","1h","1d"],"default":"1d","description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`."}},{"name":"project_ids","in":"query","required":false,"description":"Return only usage for these projects.","schema":{"type":"array","description":"Return only usage for these projects."}},{"name":"user_ids","in":"query","required":false,"description":"Return only usage for these users.","schema":{"type":"array","description":"Return only usage for these users."}},{"name":"api_key_ids","in":"query","required":false,"description":"Return only usage for these API keys.","schema":{"type":"array","description":"Return only usage for these API keys."}},{"name":"models","in":"query","required":false,"description":"Return only usage for these models.","schema":{"type":"array","description":"Return only usage for these models."}},{"name":"group_by","in":"query","required":false,"description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of…","schema":{"type":"array","description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of…"}},{"name":"limit","in":"query","required":false,"description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…","schema":{"type":"integer","description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…"}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/usage-file-search-calls":{"get":{"operationId":"ai_openai_usage_file_search_calls","summary":"File search calls","description":"GET /organization/usage/file_search_calls","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"integer","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.","schema":{"type":"string","enum":["1m","1h","1d"],"default":"1d","description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`."}},{"name":"project_ids","in":"query","required":false,"description":"Return only usage for these projects.","schema":{"type":"array","description":"Return only usage for these projects."}},{"name":"user_ids","in":"query","required":false,"description":"Return only usage for these users.","schema":{"type":"array","description":"Return only usage for these users."}},{"name":"api_key_ids","in":"query","required":false,"description":"Return only usage for these API keys.","schema":{"type":"array","description":"Return only usage for these API keys."}},{"name":"vector_store_ids","in":"query","required":false,"description":"Return only usage for these vector stores.","schema":{"type":"array","description":"Return only usage for these vector stores."}},{"name":"group_by","in":"query","required":false,"description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `vector_store_id` or any…","schema":{"type":"array","description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `vector_store_id` or any…"}},{"name":"limit","in":"query","required":false,"description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…","schema":{"type":"integer","description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…"}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/usage-images":{"get":{"operationId":"ai_openai_usage_images","summary":"Images","description":"GET /organization/usage/images","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"integer","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.","schema":{"type":"string","enum":["1m","1h","1d"],"default":"1d","description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`."}},{"name":"sources","in":"query","required":false,"description":"Return only usages for these sources. Possible values are `image.generation`, `image.edit`, `image.variation` or any combination of them.","schema":{"type":"array","description":"Return only usages for these sources. Possible values are `image.generation`, `image.edit`, `image.variation` or any combination of them."}},{"name":"sizes","in":"query","required":false,"description":"Return only usages for these image sizes. Possible values are `256x256`, `512x512`, `1024x1024`, `1792x1792`, `1024x1792` or any…","schema":{"type":"array","description":"Return only usages for these image sizes. Possible values are `256x256`, `512x512`, `1024x1024`, `1792x1792`, `1024x1792` or any…"}},{"name":"project_ids","in":"query","required":false,"description":"Return only usage for these projects.","schema":{"type":"array","description":"Return only usage for these projects."}},{"name":"user_ids","in":"query","required":false,"description":"Return only usage for these users.","schema":{"type":"array","description":"Return only usage for these users."}},{"name":"api_key_ids","in":"query","required":false,"description":"Return only usage for these API keys.","schema":{"type":"array","description":"Return only usage for these API keys."}},{"name":"models","in":"query","required":false,"description":"Return only usage for these models.","schema":{"type":"array","description":"Return only usage for these models."}},{"name":"group_by","in":"query","required":false,"description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model`, `size`, `source` or…","schema":{"type":"array","description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model`, `size`, `source` or…"}},{"name":"limit","in":"query","required":false,"description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…","schema":{"type":"integer","description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…"}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/usage-moderations":{"get":{"operationId":"ai_openai_usage_moderations","summary":"Moderations","description":"GET /organization/usage/moderations","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"integer","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.","schema":{"type":"string","enum":["1m","1h","1d"],"default":"1d","description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`."}},{"name":"project_ids","in":"query","required":false,"description":"Return only usage for these projects.","schema":{"type":"array","description":"Return only usage for these projects."}},{"name":"user_ids","in":"query","required":false,"description":"Return only usage for these users.","schema":{"type":"array","description":"Return only usage for these users."}},{"name":"api_key_ids","in":"query","required":false,"description":"Return only usage for these API keys.","schema":{"type":"array","description":"Return only usage for these API keys."}},{"name":"models","in":"query","required":false,"description":"Return only usage for these models.","schema":{"type":"array","description":"Return only usage for these models."}},{"name":"group_by","in":"query","required":false,"description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of…","schema":{"type":"array","description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model` or any combination of…"}},{"name":"limit","in":"query","required":false,"description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…","schema":{"type":"integer","description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…"}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/usage-vector-stores":{"get":{"operationId":"ai_openai_usage_vector_stores","summary":"Vector stores","description":"GET /organization/usage/vector_stores","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"integer","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.","schema":{"type":"string","enum":["1m","1h","1d"],"default":"1d","description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`."}},{"name":"project_ids","in":"query","required":false,"description":"Return only usage for these projects.","schema":{"type":"array","description":"Return only usage for these projects."}},{"name":"group_by","in":"query","required":false,"description":"Group the usage data by the specified fields. Support fields include `project_id`.","schema":{"type":"array","description":"Group the usage data by the specified fields. Support fields include `project_id`."}},{"name":"limit","in":"query","required":false,"description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…","schema":{"type":"integer","description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…"}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/usage-web-search-calls":{"get":{"operationId":"ai_openai_usage_web_search_calls","summary":"Web search calls","description":"GET /organization/usage/web_search_calls","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"integer","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.","schema":{"type":"string","enum":["1m","1h","1d"],"default":"1d","description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`."}},{"name":"project_ids","in":"query","required":false,"description":"Return only usage for these projects.","schema":{"type":"array","description":"Return only usage for these projects."}},{"name":"user_ids","in":"query","required":false,"description":"Return only usage for these users.","schema":{"type":"array","description":"Return only usage for these users."}},{"name":"api_key_ids","in":"query","required":false,"description":"Return only usage for these API keys.","schema":{"type":"array","description":"Return only usage for these API keys."}},{"name":"models","in":"query","required":false,"description":"Return only usage for these models.","schema":{"type":"array","description":"Return only usage for these models."}},{"name":"context_levels","in":"query","required":false,"description":"Return only web search usage for these context levels.","schema":{"type":"array","description":"Return only web search usage for these context levels."}},{"name":"group_by","in":"query","required":false,"description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model`, `context_level`,…","schema":{"type":"array","description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model`, `context_level`,…"}},{"name":"limit","in":"query","required":false,"description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…","schema":{"type":"integer","description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…"}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-users":{"get":{"operationId":"ai_openai_list_users","summary":"List users","description":"GET /organization/users","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"emails","in":"query","required":false,"description":"Filter by the email address of users.","schema":{"type":"array","description":"Filter by the email address of users."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-user":{"get":{"operationId":"ai_openai_retrieve_user","summary":"Retrieve user","description":"GET /organization/users/{user_id}","tags":["ai"],"parameters":[{"name":"user_id","in":"query","required":true,"description":"The ID of the user.","schema":{"type":"string","description":"The ID of the user."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/modify-user":{"post":{"operationId":"ai_openai_modify_user","summary":"Modify user","description":"POST /organization/users/{user_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["user_id","body"],"properties":{"user_id":{"type":"string","description":"The ID of the user."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-user":{"post":{"operationId":"ai_openai_delete_user","summary":"Delete user","description":"DELETE /organization/users/{user_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["user_id"],"properties":{"user_id":{"type":"string","description":"The ID of the user."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-user-role-assignments":{"get":{"operationId":"ai_openai_list_user_role_assignments","summary":"List user organization role assignments","description":"GET /organization/users/{user_id}/roles","tags":["ai"],"parameters":[{"name":"user_id","in":"query","required":true,"description":"The ID of the user to inspect.","schema":{"type":"string","description":"The ID of the user to inspect."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of organization role assignments to return.","schema":{"type":"integer","description":"A limit on the number of organization role assignments to return."}},{"name":"after","in":"query","required":false,"description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing organization roles.","schema":{"type":"string","description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing organization roles."}},{"name":"order","in":"query","required":false,"description":"Sort order for the returned organization roles.","schema":{"type":"string","enum":["asc","desc"],"description":"Sort order for the returned organization roles."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/assign-user-role":{"post":{"operationId":"ai_openai_assign_user_role","summary":"Assign organization role to user","description":"POST /organization/users/{user_id}/roles","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["user_id","body"],"properties":{"user_id":{"type":"string","description":"The ID of the user that should receive the organization role."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-user-role":{"get":{"operationId":"ai_openai_retrieve_user_role","summary":"Retrieve user organization role","description":"GET /organization/users/{user_id}/roles/{role_id}","tags":["ai"],"parameters":[{"name":"user_id","in":"query","required":true,"description":"The ID of the user to inspect.","schema":{"type":"string","description":"The ID of the user to inspect."}},{"name":"role_id","in":"query","required":true,"description":"The ID of the organization role to retrieve for the user.","schema":{"type":"string","description":"The ID of the organization role to retrieve for the user."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/unassign-user-role":{"post":{"operationId":"ai_openai_unassign_user_role","summary":"Unassign organization role from user","description":"DELETE /organization/users/{user_id}/roles/{role_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["user_id","role_id"],"properties":{"user_id":{"type":"string","description":"The ID of the user to modify."},"role_id":{"type":"string","description":"The ID of the organization role to remove from the user."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-project-group-role-assignments":{"get":{"operationId":"ai_openai_list_project_group_role_assignments","summary":"List project group role assignments","description":"GET /projects/{project_id}/groups/{group_id}/roles","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project to inspect.","schema":{"type":"string","description":"The ID of the project to inspect."}},{"name":"group_id","in":"query","required":true,"description":"The ID of the group to inspect.","schema":{"type":"string","description":"The ID of the group to inspect."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of project role assignments to return.","schema":{"type":"integer","description":"A limit on the number of project role assignments to return."}},{"name":"after","in":"query","required":false,"description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing project roles.","schema":{"type":"string","description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing project roles."}},{"name":"order","in":"query","required":false,"description":"Sort order for the returned project roles.","schema":{"type":"string","enum":["asc","desc"],"description":"Sort order for the returned project roles."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/assign-project-group-role":{"post":{"operationId":"ai_openai_assign_project_group_role","summary":"Assign project role to group","description":"POST /projects/{project_id}/groups/{group_id}/roles","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","group_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project to update."},"group_id":{"type":"string","description":"The ID of the group that should receive the project role."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project-group-role":{"get":{"operationId":"ai_openai_retrieve_project_group_role","summary":"Retrieve project group role","description":"GET /projects/{project_id}/groups/{group_id}/roles/{role_id}","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project to inspect.","schema":{"type":"string","description":"The ID of the project to inspect."}},{"name":"group_id","in":"query","required":true,"description":"The ID of the group to inspect.","schema":{"type":"string","description":"The ID of the group to inspect."}},{"name":"role_id","in":"query","required":true,"description":"The ID of the project role to retrieve for the group.","schema":{"type":"string","description":"The ID of the project role to retrieve for the group."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/unassign-project-group-role":{"post":{"operationId":"ai_openai_unassign_project_group_role","summary":"Unassign project role from group","description":"DELETE /projects/{project_id}/groups/{group_id}/roles/{role_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","group_id","role_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project to modify."},"group_id":{"type":"string","description":"The ID of the group whose project role assignment should be removed."},"role_id":{"type":"string","description":"The ID of the project role to remove from the group."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-project-roles":{"get":{"operationId":"ai_openai_list_project_roles","summary":"List project roles","description":"GET /projects/{project_id}/roles","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project to inspect.","schema":{"type":"string","description":"The ID of the project to inspect."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of roles to return. Defaults to 1000.","schema":{"type":"integer","default":1000,"description":"A limit on the number of roles to return. Defaults to 1000."}},{"name":"after","in":"query","required":false,"description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing roles.","schema":{"type":"string","description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing roles."}},{"name":"order","in":"query","required":false,"description":"Sort order for the returned roles.","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort order for the returned roles."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-project-role":{"post":{"operationId":"ai_openai_create_project_role","summary":"Create project role","description":"POST /projects/{project_id}/roles","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project-role":{"get":{"operationId":"ai_openai_retrieve_project_role","summary":"Retrieve project role","description":"GET /projects/{project_id}/roles/{role_id}","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project.","schema":{"type":"string","description":"The ID of the project."}},{"name":"role_id","in":"query","required":true,"description":"The ID of the role to retrieve.","schema":{"type":"string","description":"The ID of the role to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-project-role":{"post":{"operationId":"ai_openai_update_project_role","summary":"Update project role","description":"POST /projects/{project_id}/roles/{role_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","role_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project to update."},"role_id":{"type":"string","description":"The ID of the role to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-project-role":{"post":{"operationId":"ai_openai_delete_project_role","summary":"Delete project role","description":"DELETE /projects/{project_id}/roles/{role_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","role_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project to update."},"role_id":{"type":"string","description":"The ID of the role to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-project-user-role-assignments":{"get":{"operationId":"ai_openai_list_project_user_role_assignments","summary":"List project user role assignments","description":"GET /projects/{project_id}/users/{user_id}/roles","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project to inspect.","schema":{"type":"string","description":"The ID of the project to inspect."}},{"name":"user_id","in":"query","required":true,"description":"The ID of the user to inspect.","schema":{"type":"string","description":"The ID of the user to inspect."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of project role assignments to return.","schema":{"type":"integer","description":"A limit on the number of project role assignments to return."}},{"name":"after","in":"query","required":false,"description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing project roles.","schema":{"type":"string","description":"Cursor for pagination. Provide the value from the previous response's `next` field to continue listing project roles."}},{"name":"order","in":"query","required":false,"description":"Sort order for the returned project roles.","schema":{"type":"string","enum":["asc","desc"],"description":"Sort order for the returned project roles."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/assign-project-user-role":{"post":{"operationId":"ai_openai_assign_project_user_role","summary":"Assign project role to user","description":"POST /projects/{project_id}/users/{user_id}/roles","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","user_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project to update."},"user_id":{"type":"string","description":"The ID of the user that should receive the project role."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-project-user-role":{"get":{"operationId":"ai_openai_retrieve_project_user_role","summary":"Retrieve project user role","description":"GET /projects/{project_id}/users/{user_id}/roles/{role_id}","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project to inspect.","schema":{"type":"string","description":"The ID of the project to inspect."}},{"name":"user_id","in":"query","required":true,"description":"The ID of the user to inspect.","schema":{"type":"string","description":"The ID of the user to inspect."}},{"name":"role_id","in":"query","required":true,"description":"The ID of the project role to retrieve for the user.","schema":{"type":"string","description":"The ID of the project role to retrieve for the user."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/unassign-project-user-role":{"post":{"operationId":"ai_openai_unassign_project_user_role","summary":"Unassign project role from user","description":"DELETE /projects/{project_id}/users/{user_id}/roles/{role_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","user_id","role_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project to modify."},"user_id":{"type":"string","description":"The ID of the user whose project role assignment should be removed."},"role_id":{"type":"string","description":"The ID of the project role to remove from the user."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-realtime-call":{"post":{"operationId":"ai_openai_create_realtime_call","summary":"Create call","description":"POST /realtime/calls","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/accept-realtime-call":{"post":{"operationId":"ai_openai_accept_realtime_call","summary":"Accept call","description":"POST /realtime/calls/{call_id}/accept","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["call_id","body"],"properties":{"call_id":{"type":"string","description":"The identifier for the call provided in the…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/hangup-realtime-call":{"post":{"operationId":"ai_openai_hangup_realtime_call","summary":"Hang up call","description":"POST /realtime/calls/{call_id}/hangup","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["call_id"],"properties":{"call_id":{"type":"string","description":"The identifier for the call. For SIP calls, use the value provided in the…"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/refer-realtime-call":{"post":{"operationId":"ai_openai_refer_realtime_call","summary":"Refer call","description":"POST /realtime/calls/{call_id}/refer","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["call_id","body"],"properties":{"call_id":{"type":"string","description":"The identifier for the call provided in the…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/reject-realtime-call":{"post":{"operationId":"ai_openai_reject_realtime_call","summary":"Reject call","description":"POST /realtime/calls/{call_id}/reject","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["call_id"],"properties":{"call_id":{"type":"string","description":"The identifier for the call provided in the…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-realtime-client-secret":{"post":{"operationId":"ai_openai_create_realtime_client_secret","summary":"Create client secret","description":"POST /realtime/client_secrets","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-realtime-session":{"post":{"operationId":"ai_openai_create_realtime_session","summary":"Create session","description":"POST /realtime/sessions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-realtime-transcription-session":{"post":{"operationId":"ai_openai_create_realtime_transcription_session","summary":"Create transcription session","description":"POST /realtime/transcription_sessions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-realtime-translation-client-secret":{"post":{"operationId":"ai_openai_create_realtime_translation_client_secret","summary":"Create translation client secret","description":"POST /realtime/translations/client_secrets","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-response":{"post":{"operationId":"ai_openai_create_response","summary":"Create a model response","description":"POST /responses","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-response":{"get":{"operationId":"ai_openai_get_response","summary":"Get a model response","description":"GET /responses/{response_id}","tags":["ai"],"parameters":[{"name":"response_id","in":"query","required":true,"description":"The ID of the response to retrieve.","schema":{"type":"string","description":"The ID of the response to retrieve."}},{"name":"include","in":"query","required":false,"description":"Additional fields to include in the response. See the `include` parameter for Response creation above for more information.","schema":{"type":"array","description":"Additional fields to include in the response. See the `include` parameter for Response creation above for more information."}},{"name":"stream","in":"query","required":false,"description":"If set to true, the model response data will be streamed to the client as it is generated using [server-sent…","schema":{"type":"boolean","description":"If set to true, the model response data will be streamed to the client as it is generated using [server-sent…"}},{"name":"starting_after","in":"query","required":false,"description":"The sequence number of the event after which to start streaming.","schema":{"type":"integer","description":"The sequence number of the event after which to start streaming."}},{"name":"include_obfuscation","in":"query","required":false,"description":"When true, stream obfuscation will be enabled. Stream obfuscation adds random characters to an `obfuscation` field on streaming delta…","schema":{"type":"boolean","description":"When true, stream obfuscation will be enabled. Stream obfuscation adds random characters to an `obfuscation` field on streaming delta…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-response":{"post":{"operationId":"ai_openai_delete_response","summary":"Delete a model response","description":"DELETE /responses/{response_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["response_id"],"properties":{"response_id":{"type":"string","description":"The ID of the response to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/cancel-response":{"post":{"operationId":"ai_openai_cancel_response","summary":"Cancel a response","description":"POST /responses/{response_id}/cancel","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["response_id"],"properties":{"response_id":{"type":"string","description":"The ID of the response to cancel."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-input-items":{"get":{"operationId":"ai_openai_list_input_items","summary":"List input items","description":"GET /responses/{response_id}/input_items","tags":["ai"],"parameters":[{"name":"response_id","in":"query","required":true,"description":"The ID of the response to retrieve input items for.","schema":{"type":"string","description":"The ID of the response to retrieve input items for."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"order","in":"query","required":false,"description":"The order to return the input items in. Default is `desc`. - `asc`: Return the input items in ascending order. - `desc`: Return the input…","schema":{"type":"string","enum":["asc","desc"],"description":"The order to return the input items in. Default is `desc`. - `asc`: Return the input items in ascending order. - `desc`: Return the input…"}},{"name":"after","in":"query","required":false,"description":"An item ID to list items after, used in pagination.","schema":{"type":"string","description":"An item ID to list items after, used in pagination."}},{"name":"include","in":"query","required":false,"description":"Additional fields to include in the response. See the `include` parameter for Response creation above for more information.","schema":{"type":"array","description":"Additional fields to include in the response. See the `include` parameter for Response creation above for more information."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-thread":{"post":{"operationId":"ai_openai_create_thread","summary":"Create thread","description":"POST /threads","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-thread-and-run":{"post":{"operationId":"ai_openai_create_thread_and_run","summary":"Create thread and run","description":"POST /threads/runs","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-thread":{"get":{"operationId":"ai_openai_get_thread","summary":"Retrieve thread","description":"GET /threads/{thread_id}","tags":["ai"],"parameters":[{"name":"thread_id","in":"query","required":true,"description":"The ID of the thread to retrieve.","schema":{"type":"string","description":"The ID of the thread to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/modify-thread":{"post":{"operationId":"ai_openai_modify_thread","summary":"Modify thread","description":"POST /threads/{thread_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["thread_id","body"],"properties":{"thread_id":{"type":"string","description":"The ID of the thread to modify. Only the `metadata` can be modified."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-thread":{"post":{"operationId":"ai_openai_delete_thread","summary":"Delete thread","description":"DELETE /threads/{thread_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["thread_id"],"properties":{"thread_id":{"type":"string","description":"The ID of the thread to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-messages":{"get":{"operationId":"ai_openai_list_messages","summary":"List messages","description":"GET /threads/{thread_id}/messages","tags":["ai"],"parameters":[{"name":"thread_id","in":"query","required":true,"description":"The ID of the [thread](https://developers.openai.com/api/docs/assistants/migration) the messages belong to.","schema":{"type":"string","description":"The ID of the [thread](https://developers.openai.com/api/docs/assistants/migration) the messages belong to."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"order","in":"query","required":false,"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"before","in":"query","required":false,"description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"run_id","in":"query","required":false,"description":"Filter messages by the run ID that generated them.","schema":{"type":"string","description":"Filter messages by the run ID that generated them."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-message":{"post":{"operationId":"ai_openai_create_message","summary":"Create message","description":"POST /threads/{thread_id}/messages","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["thread_id","body"],"properties":{"thread_id":{"type":"string","description":"The ID of the [thread](https://developers.openai.com/api/docs/assistants/migration) to create a message for."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-message":{"get":{"operationId":"ai_openai_get_message","summary":"Retrieve message","description":"GET /threads/{thread_id}/messages/{message_id}","tags":["ai"],"parameters":[{"name":"thread_id","in":"query","required":true,"description":"The ID of the [thread](https://developers.openai.com/api/docs/assistants/migration) to which this message belongs.","schema":{"type":"string","description":"The ID of the [thread](https://developers.openai.com/api/docs/assistants/migration) to which this message belongs."}},{"name":"message_id","in":"query","required":true,"description":"The ID of the message to retrieve.","schema":{"type":"string","description":"The ID of the message to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/modify-message":{"post":{"operationId":"ai_openai_modify_message","summary":"Modify message","description":"POST /threads/{thread_id}/messages/{message_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["thread_id","message_id","body"],"properties":{"thread_id":{"type":"string","description":"The ID of the thread to which this message belongs."},"message_id":{"type":"string","description":"The ID of the message to modify."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-message":{"post":{"operationId":"ai_openai_delete_message","summary":"Delete message","description":"DELETE /threads/{thread_id}/messages/{message_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["thread_id","message_id"],"properties":{"thread_id":{"type":"string","description":"The ID of the thread to which this message belongs."},"message_id":{"type":"string","description":"The ID of the message to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-runs":{"get":{"operationId":"ai_openai_list_runs","summary":"List runs","description":"GET /threads/{thread_id}/runs","tags":["ai"],"parameters":[{"name":"thread_id","in":"query","required":true,"description":"The ID of the thread the run belongs to.","schema":{"type":"string","description":"The ID of the thread the run belongs to."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"order","in":"query","required":false,"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"before","in":"query","required":false,"description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-run":{"post":{"operationId":"ai_openai_create_run","summary":"Create run","description":"POST /threads/{thread_id}/runs","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["thread_id","body"],"properties":{"thread_id":{"type":"string","description":"The ID of the thread to run."},"include[]":{"type":"array","description":"A list of additional fields to include in the response. Currently the only supported value is…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-run":{"get":{"operationId":"ai_openai_get_run","summary":"Retrieve run","description":"GET /threads/{thread_id}/runs/{run_id}","tags":["ai"],"parameters":[{"name":"thread_id","in":"query","required":true,"description":"The ID of the [thread](https://developers.openai.com/api/docs/assistants/migration) that was run.","schema":{"type":"string","description":"The ID of the [thread](https://developers.openai.com/api/docs/assistants/migration) that was run."}},{"name":"run_id","in":"query","required":true,"description":"The ID of the run to retrieve.","schema":{"type":"string","description":"The ID of the run to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/modify-run":{"post":{"operationId":"ai_openai_modify_run","summary":"Modify run","description":"POST /threads/{thread_id}/runs/{run_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["thread_id","run_id","body"],"properties":{"thread_id":{"type":"string","description":"The ID of the [thread](https://developers.openai.com/api/docs/assistants/migration) that was run."},"run_id":{"type":"string","description":"The ID of the run to modify."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/cancel-run":{"post":{"operationId":"ai_openai_cancel_run","summary":"Cancel a run","description":"POST /threads/{thread_id}/runs/{run_id}/cancel","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["thread_id","run_id"],"properties":{"thread_id":{"type":"string","description":"The ID of the thread to which this run belongs."},"run_id":{"type":"string","description":"The ID of the run to cancel."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-run-steps":{"get":{"operationId":"ai_openai_list_run_steps","summary":"List run steps","description":"GET /threads/{thread_id}/runs/{run_id}/steps","tags":["ai"],"parameters":[{"name":"thread_id","in":"query","required":true,"description":"The ID of the thread the run and run steps belong to.","schema":{"type":"string","description":"The ID of the thread the run and run steps belong to."}},{"name":"run_id","in":"query","required":true,"description":"The ID of the run the run steps belong to.","schema":{"type":"string","description":"The ID of the run the run steps belong to."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"order","in":"query","required":false,"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"before","in":"query","required":false,"description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"include[]","in":"query","required":false,"description":"A list of additional fields to include in the response. Currently the only supported value is…","schema":{"type":"array","description":"A list of additional fields to include in the response. Currently the only supported value is…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/get-run-step":{"get":{"operationId":"ai_openai_get_run_step","summary":"Retrieve run step","description":"GET /threads/{thread_id}/runs/{run_id}/steps/{step_id}","tags":["ai"],"parameters":[{"name":"thread_id","in":"query","required":true,"description":"The ID of the thread to which the run and run step belongs.","schema":{"type":"string","description":"The ID of the thread to which the run and run step belongs."}},{"name":"run_id","in":"query","required":true,"description":"The ID of the run to which the run step belongs.","schema":{"type":"string","description":"The ID of the run to which the run step belongs."}},{"name":"step_id","in":"query","required":true,"description":"The ID of the run step to retrieve.","schema":{"type":"string","description":"The ID of the run step to retrieve."}},{"name":"include[]","in":"query","required":false,"description":"A list of additional fields to include in the response. Currently the only supported value is…","schema":{"type":"array","description":"A list of additional fields to include in the response. Currently the only supported value is…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/submit-tool-ouputs-to-run":{"post":{"operationId":"ai_openai_submit_tool_ouputs_to_run","summary":"Submit tool outputs to run","description":"POST /threads/{thread_id}/runs/{run_id}/submit_tool_outputs","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["thread_id","run_id","body"],"properties":{"thread_id":{"type":"string","description":"The ID of the [thread](https://developers.openai.com/api/docs/assistants/migration) to which this run belongs."},"run_id":{"type":"string","description":"The ID of the run that requires the tool output submission."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-upload":{"post":{"operationId":"ai_openai_create_upload","summary":"Create upload","description":"POST /uploads","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/cancel-upload":{"post":{"operationId":"ai_openai_cancel_upload","summary":"Cancel upload","description":"POST /uploads/{upload_id}/cancel","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["upload_id"],"properties":{"upload_id":{"type":"string","description":"The ID of the Upload."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/complete-upload":{"post":{"operationId":"ai_openai_complete_upload","summary":"Complete upload","description":"POST /uploads/{upload_id}/complete","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["upload_id","body"],"properties":{"upload_id":{"type":"string","description":"The ID of the Upload."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/add-upload-part":{"post":{"operationId":"ai_openai_add_upload_part","summary":"Add upload part","description":"POST /uploads/{upload_id}/parts","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["upload_id","body"],"properties":{"upload_id":{"type":"string","description":"The ID of the Upload."},"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-vector-stores":{"get":{"operationId":"ai_openai_list_vector_stores","summary":"List vector stores","description":"GET /vector_stores","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"order","in":"query","required":false,"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"before","in":"query","required":false,"description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-vector-store":{"post":{"operationId":"ai_openai_create_vector_store","summary":"Create vector store","description":"POST /vector_stores","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-vector-store":{"get":{"operationId":"ai_openai_get_vector_store","summary":"Retrieve vector store","description":"GET /vector_stores/{vector_store_id}","tags":["ai"],"parameters":[{"name":"vector_store_id","in":"query","required":true,"description":"The ID of the vector store to retrieve.","schema":{"type":"string","description":"The ID of the vector store to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/modify-vector-store":{"post":{"operationId":"ai_openai_modify_vector_store","summary":"Modify vector store","description":"POST /vector_stores/{vector_store_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vector_store_id","body"],"properties":{"vector_store_id":{"type":"string","description":"The ID of the vector store to modify."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-vector-store":{"post":{"operationId":"ai_openai_delete_vector_store","summary":"Delete vector store","description":"DELETE /vector_stores/{vector_store_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vector_store_id"],"properties":{"vector_store_id":{"type":"string","description":"The ID of the vector store to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-vector-store-file-batch":{"post":{"operationId":"ai_openai_create_vector_store_file_batch","summary":"Create vector store file batch","description":"POST /vector_stores/{vector_store_id}/file_batches","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vector_store_id","body"],"properties":{"vector_store_id":{"type":"string","description":"The ID of the vector store for which to create a File Batch."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-vector-store-file-batch":{"get":{"operationId":"ai_openai_get_vector_store_file_batch","summary":"Retrieve vector store file batch","description":"GET /vector_stores/{vector_store_id}/file_batches/{batch_id}","tags":["ai"],"parameters":[{"name":"vector_store_id","in":"query","required":true,"description":"The ID of the vector store that the file batch belongs to.","schema":{"type":"string","description":"The ID of the vector store that the file batch belongs to."}},{"name":"batch_id","in":"query","required":true,"description":"The ID of the file batch being retrieved.","schema":{"type":"string","description":"The ID of the file batch being retrieved."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/cancel-vector-store-file-batch":{"post":{"operationId":"ai_openai_cancel_vector_store_file_batch","summary":"Cancel vector store file batch","description":"POST /vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vector_store_id","batch_id"],"properties":{"vector_store_id":{"type":"string","description":"The ID of the vector store that the file batch belongs to."},"batch_id":{"type":"string","description":"The ID of the file batch to cancel."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-files-in-vector-store-batch":{"get":{"operationId":"ai_openai_list_files_in_vector_store_batch","summary":"List vector store files in a batch","description":"GET /vector_stores/{vector_store_id}/file_batches/{batch_id}/files","tags":["ai"],"parameters":[{"name":"vector_store_id","in":"query","required":true,"description":"The ID of the vector store that the files belong to.","schema":{"type":"string","description":"The ID of the vector store that the files belong to."}},{"name":"batch_id","in":"query","required":true,"description":"The ID of the file batch that the files belong to.","schema":{"type":"string","description":"The ID of the file batch that the files belong to."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"order","in":"query","required":false,"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"before","in":"query","required":false,"description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"filter","in":"query","required":false,"description":"Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`.","schema":{"type":"string","enum":["in_progress","completed","failed","cancelled"],"description":"Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-vector-store-files":{"get":{"operationId":"ai_openai_list_vector_store_files","summary":"List vector store files","description":"GET /vector_stores/{vector_store_id}/files","tags":["ai"],"parameters":[{"name":"vector_store_id","in":"query","required":true,"description":"The ID of the vector store that the files belong to.","schema":{"type":"string","description":"The ID of the vector store that the files belong to."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"order","in":"query","required":false,"description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order."}},{"name":"after","in":"query","required":false,"description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"before","in":"query","required":false,"description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…","schema":{"type":"string","description":"A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and…"}},{"name":"filter","in":"query","required":false,"description":"Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`.","schema":{"type":"string","enum":["in_progress","completed","failed","cancelled"],"description":"Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-vector-store-file":{"post":{"operationId":"ai_openai_create_vector_store_file","summary":"Create vector store file","description":"POST /vector_stores/{vector_store_id}/files","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vector_store_id","body"],"properties":{"vector_store_id":{"type":"string","description":"The ID of the vector store for which to create a File."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-vector-store-file":{"get":{"operationId":"ai_openai_get_vector_store_file","summary":"Retrieve vector store file","description":"GET /vector_stores/{vector_store_id}/files/{file_id}","tags":["ai"],"parameters":[{"name":"vector_store_id","in":"query","required":true,"description":"The ID of the vector store that the file belongs to.","schema":{"type":"string","description":"The ID of the vector store that the file belongs to."}},{"name":"file_id","in":"query","required":true,"description":"The ID of the file being retrieved.","schema":{"type":"string","description":"The ID of the file being retrieved."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-vector-store-file-attributes":{"post":{"operationId":"ai_openai_update_vector_store_file_attributes","summary":"Update vector store file attributes","description":"POST /vector_stores/{vector_store_id}/files/{file_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vector_store_id","file_id","body"],"properties":{"vector_store_id":{"type":"string","description":"The ID of the vector store the file belongs to."},"file_id":{"type":"string","description":"The ID of the file to update attributes."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-vector-store-file":{"post":{"operationId":"ai_openai_delete_vector_store_file","summary":"Delete vector store file","description":"DELETE /vector_stores/{vector_store_id}/files/{file_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vector_store_id","file_id"],"properties":{"vector_store_id":{"type":"string","description":"The ID of the vector store that the file belongs to."},"file_id":{"type":"string","description":"The ID of the file to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-vector-store-file-content":{"get":{"operationId":"ai_openai_retrieve_vector_store_file_content","summary":"Retrieve vector store file content","description":"GET /vector_stores/{vector_store_id}/files/{file_id}/content","tags":["ai"],"parameters":[{"name":"vector_store_id","in":"query","required":true,"description":"The ID of the vector store.","schema":{"type":"string","description":"The ID of the vector store."}},{"name":"file_id","in":"query","required":true,"description":"The ID of the file within the vector store.","schema":{"type":"string","description":"The ID of the file within the vector store."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/search-vector-store":{"post":{"operationId":"ai_openai_search_vector_store","summary":"Search vector store","description":"POST /vector_stores/{vector_store_id}/search","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vector_store_id","body"],"properties":{"vector_store_id":{"type":"string","description":"The ID of the vector store to search."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-conversation":{"post":{"operationId":"ai_openai_create_conversation","summary":"Create a conversation","description":"POST /conversations","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-conversation":{"get":{"operationId":"ai_openai_get_conversation","summary":"Retrieve a conversation","description":"GET /conversations/{conversation_id}","tags":["ai"],"parameters":[{"name":"conversation_id","in":"query","required":true,"description":"The ID of the conversation to retrieve.","schema":{"type":"string","description":"The ID of the conversation to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-conversation":{"post":{"operationId":"ai_openai_update_conversation","summary":"Update a conversation","description":"POST /conversations/{conversation_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["conversation_id"],"properties":{"conversation_id":{"type":"string","description":"The ID of the conversation to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-conversation":{"post":{"operationId":"ai_openai_delete_conversation","summary":"Delete a conversation","description":"DELETE /conversations/{conversation_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["conversation_id"],"properties":{"conversation_id":{"type":"string","description":"The ID of the conversation to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/getsafetycase":{"get":{"operationId":"ai_openai_getsafetycase","summary":"Get safety case","description":"GET /safety/cases/{id}","tags":["ai"],"parameters":[{"name":"id","in":"query","required":true,"description":"Safety case ID","schema":{"type":"string","description":"Safety case ID"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/getprojectsafetyalert":{"get":{"operationId":"ai_openai_getprojectsafetyalert","summary":"Get project safety alert","description":"GET /safety/alerts/{id}","tags":["ai"],"parameters":[{"name":"id","in":"query","required":true,"description":"Project safety alert ID","schema":{"type":"string","description":"Project safety alert ID"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/download-live-recording":{"get":{"operationId":"ai_openai_download_live_recording","summary":"Download recording","description":"GET /live/sessions/{session_id}/content","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the stored Live session to download. Use the session ID returned when the session started with storage enabled.","schema":{"type":"string","description":"The ID of the stored Live session to download. Use the session ID returned when the session started with storage enabled."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/organization-decisionsusage":{"get":{"operationId":"ai_openai_organization_decisionsusage","summary":"Decisions","description":"GET /organization/usage/decisions","tags":["ai"],"parameters":[{"name":"start_time","in":"query","required":true,"description":"Start time (Unix seconds) of the query time range, inclusive.","schema":{"type":"integer","description":"Start time (Unix seconds) of the query time range, inclusive."}},{"name":"end_time","in":"query","required":false,"description":"End time (Unix seconds) of the query time range, exclusive.","schema":{"type":"string","description":"End time (Unix seconds) of the query time range, exclusive."}},{"name":"bucket_width","in":"query","required":false,"description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.","schema":{"type":"string","description":"Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`."}},{"name":"limit","in":"query","required":false,"description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…","schema":{"type":"string","description":"Specifies the number of buckets to return. - `bucket_width=1d`: default: 7, max: 31 - `bucket_width=1h`: default: 24, max: 168 -…"}},{"name":"page","in":"query","required":false,"description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response.","schema":{"type":"string","description":"A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."}},{"name":"project_ids","in":"query","required":false,"description":"Return only usage for these projects.","schema":{"type":"string","description":"Return only usage for these projects."}},{"name":"group_by","in":"query","required":false,"description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model`, `batch`,…","schema":{"type":"string","description":"Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model`, `batch`,…"}},{"name":"user_ids","in":"query","required":false,"description":"Return only usage for these users.","schema":{"type":"string","description":"Return only usage for these users."}},{"name":"api_key_ids","in":"query","required":false,"description":"Return only usage for these API keys.","schema":{"type":"string","description":"Return only usage for these API keys."}},{"name":"models","in":"query","required":false,"description":"Return only usage for these models.","schema":{"type":"string","description":"Return only usage for these models."}},{"name":"batch","in":"query","required":false,"description":"If `true`, return batch jobs only. If `false`, return non-batch jobs only. By default, return both.","schema":{"type":"string","description":"If `true`, return batch jobs only. If `false`, return non-batch jobs only. By default, return both."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/listexternalstorageconfigurations":{"get":{"operationId":"ai_openai_listexternalstorageconfigurations","summary":"List external storage configurations","description":"GET /organization/external_storage","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"after","in":"query","required":false,"description":"Return external storage configurations after this ID.","schema":{"type":"string","description":"Return external storage configurations after this ID."}},{"name":"order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/createanexternalstorageconfiguration":{"post":{"operationId":"ai_openai_createanexternalstorageconfiguration","summary":"Create an external storage configuration","description":"POST /organization/external_storage","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/getanexternalstorageconfiguration":{"get":{"operationId":"ai_openai_getanexternalstorageconfiguration","summary":"Get an external storage configuration","description":"GET /organization/external_storage/{external_storage_id}","tags":["ai"],"parameters":[{"name":"external_storage_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/deleteanexternalstorageconfiguration":{"post":{"operationId":"ai_openai_deleteanexternalstorageconfiguration","summary":"Delete an external storage configuration","description":"DELETE /organization/external_storage/{external_storage_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["external_storage_id"],"properties":{"external_storage_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/validateanexternalstorageconfiguration":{"post":{"operationId":"ai_openai_validateanexternalstorageconfiguration","summary":"Validate an external storage configuration","description":"POST /organization/external_storage/{external_storage_id}/validate","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["external_storage_id"],"properties":{"external_storage_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/getorganizationspendlimit":{"get":{"operationId":"ai_openai_getorganizationspendlimit","summary":"Get organization spend limit","description":"GET /organization/spend_limit","tags":["ai"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/updateorganizationspendlimit":{"post":{"operationId":"ai_openai_updateorganizationspendlimit","summary":"Update organization spend limit","description":"POST /organization/spend_limit","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/deleteorganizationspendlimit":{"post":{"operationId":"ai_openai_deleteorganizationspendlimit","summary":"Delete organization spend limit","description":"DELETE /organization/spend_limit","tags":["ai"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/getprojectspendlimit":{"get":{"operationId":"ai_openai_getprojectspendlimit","summary":"Get project spend limit","description":"GET /organization/projects/{project_id}/spend_limit","tags":["ai"],"parameters":[{"name":"project_id","in":"query","required":true,"description":"The ID of the project whose hard spend limit is being managed.","schema":{"type":"string","description":"The ID of the project whose hard spend limit is being managed."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/updateprojectspendlimit":{"post":{"operationId":"ai_openai_updateprojectspendlimit","summary":"Update project spend limit","description":"POST /organization/projects/{project_id}/spend_limit","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","body"],"properties":{"project_id":{"type":"string","description":"The ID of the project whose hard spend limit is being managed."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/deleteprojectspendlimit":{"post":{"operationId":"ai_openai_deleteprojectspendlimit","summary":"Delete project spend limit","description":"DELETE /organization/projects/{project_id}/spend_limit","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project whose hard spend limit is being managed."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/createan-apikeyforaserviceaccount":{"post":{"operationId":"ai_openai_createan_apikeyforaserviceaccount","summary":"Create an API key for a service account","description":"POST /organization/projects/{project_id}/service_accounts/{service_account_id}/api_keys","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","service_account_id"],"properties":{"project_id":{"type":"string","description":"The ID of the project."},"service_account_id":{"type":"string","description":"The ID of the service account."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/createcontentprovenancecheck":{"post":{"operationId":"ai_openai_createcontentprovenancecheck","summary":"Create content provenance check","description":"POST /content_provenance_checks","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/getinputtokencounts":{"post":{"operationId":"ai_openai_getinputtokencounts","summary":"Get input token counts","description":"POST /responses/input_tokens","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/compactconversation":{"post":{"operationId":"ai_openai_compactconversation","summary":"Compact conversation","description":"POST /responses/compact","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-skills":{"get":{"operationId":"ai_openai_list_skills","summary":"List Skills","description":"GET /skills","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Number of items to retrieve","schema":{"type":"integer","description":"Number of items to retrieve"}},{"name":"order","in":"query","required":false,"description":"Sort order of results by timestamp. Use `asc` for ascending order or `desc` for descending order.","schema":{"type":"string","enum":["asc","desc"],"description":"Sort order of results by timestamp. Use `asc` for ascending order or `desc` for descending order."}},{"name":"after","in":"query","required":false,"description":"Identifier for the last item from the previous pagination request","schema":{"type":"string","description":"Identifier for the last item from the previous pagination request"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-skill":{"post":{"operationId":"ai_openai_create_skill","summary":"Create Skill","description":"POST /skills","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-skill":{"get":{"operationId":"ai_openai_get_skill","summary":"Get Skill","description":"GET /skills/{skill_id}","tags":["ai"],"parameters":[{"name":"skill_id","in":"query","required":true,"description":"The identifier of the skill to retrieve.","schema":{"type":"string","description":"The identifier of the skill to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-skill-default-version":{"post":{"operationId":"ai_openai_update_skill_default_version","summary":"Update Skill Default Version","description":"POST /skills/{skill_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["skill_id"],"properties":{"skill_id":{"type":"string","description":"The identifier of the skill."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-skill":{"post":{"operationId":"ai_openai_delete_skill","summary":"Delete Skill","description":"DELETE /skills/{skill_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["skill_id"],"properties":{"skill_id":{"type":"string","description":"The identifier of the skill to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-skill-content":{"get":{"operationId":"ai_openai_get_skill_content","summary":"Get Skill Content","description":"GET /skills/{skill_id}/content","tags":["ai"],"parameters":[{"name":"skill_id","in":"query","required":true,"description":"The identifier of the skill to download.","schema":{"type":"string","description":"The identifier of the skill to download."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-skill-versions":{"get":{"operationId":"ai_openai_list_skill_versions","summary":"List Skill Versions","description":"GET /skills/{skill_id}/versions","tags":["ai"],"parameters":[{"name":"skill_id","in":"query","required":true,"description":"The identifier of the skill.","schema":{"type":"string","description":"The identifier of the skill."}},{"name":"limit","in":"query","required":false,"description":"Number of versions to retrieve.","schema":{"type":"integer","description":"Number of versions to retrieve."}},{"name":"order","in":"query","required":false,"description":"Sort order of results by version number.","schema":{"type":"string","enum":["asc","desc"],"description":"Sort order of results by version number."}},{"name":"after","in":"query","required":false,"description":"The skill version ID to start after.","schema":{"type":"string","description":"The skill version ID to start after."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-skill-version":{"post":{"operationId":"ai_openai_create_skill_version","summary":"Create Skill Version","description":"POST /skills/{skill_id}/versions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["skill_id"],"properties":{"skill_id":{"type":"string","description":"The identifier of the skill to version."},"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-skill-version":{"get":{"operationId":"ai_openai_get_skill_version","summary":"Get Skill Version","description":"GET /skills/{skill_id}/versions/{version}","tags":["ai"],"parameters":[{"name":"skill_id","in":"query","required":true,"description":"The identifier of the skill.","schema":{"type":"string","description":"The identifier of the skill."}},{"name":"version","in":"query","required":true,"description":"The version number to retrieve.","schema":{"type":"string","description":"The version number to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-skill-version":{"post":{"operationId":"ai_openai_delete_skill_version","summary":"Delete Skill Version","description":"DELETE /skills/{skill_id}/versions/{version}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["skill_id","version"],"properties":{"skill_id":{"type":"string","description":"The identifier of the skill."},"version":{"type":"string","description":"The skill version number."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-skill-version-content":{"get":{"operationId":"ai_openai_get_skill_version_content","summary":"Get Skill Version Content","description":"GET /skills/{skill_id}/versions/{version}/content","tags":["ai"],"parameters":[{"name":"skill_id","in":"query","required":true,"description":"The identifier of the skill.","schema":{"type":"string","description":"The identifier of the skill."}},{"name":"version","in":"query","required":true,"description":"The skill version number.","schema":{"type":"string","description":"The skill version number."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/cancel-chat-session-method":{"post":{"operationId":"ai_openai_cancel_chat_session_method","summary":"Cancel a ChatKit session","description":"POST /chatkit/sessions/{session_id}/cancel","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["session_id"],"properties":{"session_id":{"type":"string","description":"Unique identifier for the ChatKit session to cancel."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/create-chat-session-method":{"post":{"operationId":"ai_openai_create_chat_session_method","summary":"Create a ChatKit session","description":"POST /chatkit/sessions","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-thread-items-method":{"get":{"operationId":"ai_openai_list_thread_items_method","summary":"List ChatKit thread items","description":"GET /chatkit/threads/{thread_id}/items","tags":["ai"],"parameters":[{"name":"thread_id","in":"query","required":true,"description":"Identifier of the ChatKit thread whose items are requested.","schema":{"type":"string","description":"Identifier of the ChatKit thread whose items are requested."}},{"name":"limit","in":"query","required":false,"description":"Maximum number of thread items to return. Defaults to 20.","schema":{"type":"integer","description":"Maximum number of thread items to return. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"Sort order for results by creation time. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"Sort order for results by creation time. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"List items created after this thread item ID. Defaults to null for the first page.","schema":{"type":"string","description":"List items created after this thread item ID. Defaults to null for the first page."}},{"name":"before","in":"query","required":false,"description":"List items created before this thread item ID. Defaults to null for the newest results.","schema":{"type":"string","description":"List items created before this thread item ID. Defaults to null for the newest results."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/get-thread-method":{"get":{"operationId":"ai_openai_get_thread_method","summary":"Retrieve a ChatKit thread","description":"GET /chatkit/threads/{thread_id}","tags":["ai"],"parameters":[{"name":"thread_id","in":"query","required":true,"description":"Identifier of the ChatKit thread to retrieve.","schema":{"type":"string","description":"Identifier of the ChatKit thread to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-thread-method":{"post":{"operationId":"ai_openai_delete_thread_method","summary":"Delete a ChatKit thread","description":"DELETE /chatkit/threads/{thread_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["thread_id"],"properties":{"thread_id":{"type":"string","description":"Identifier of the ChatKit thread to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-threads-method":{"get":{"operationId":"ai_openai_list_threads_method","summary":"List ChatKit threads","description":"GET /chatkit/threads","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Maximum number of thread items to return. Defaults to 20.","schema":{"type":"integer","description":"Maximum number of thread items to return. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"Sort order for results by creation time. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"Sort order for results by creation time. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"List items created after this thread item ID. Defaults to null for the first page.","schema":{"type":"string","description":"List items created after this thread item ID. Defaults to null for the first page."}},{"name":"before","in":"query","required":false,"description":"List items created before this thread item ID. Defaults to null for the newest results.","schema":{"type":"string","description":"List items created before this thread item ID. Defaults to null for the newest results."}},{"name":"user","in":"query","required":false,"description":"Filter threads that belong to this user identifier. Defaults to null to return all users.","schema":{"type":"string","description":"Filter threads that belong to this user identifier. Defaults to null to return all users."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-decision":{"post":{"operationId":"ai_openai_create_decision","summary":"Create a decision","description":"POST /decisions","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-automations":{"get":{"operationId":"ai_openai_list_agent_automations","summary":"List automations","description":"GET /agents/automations","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}},{"name":"session_id","in":"query","required":false,"description":"Matches existing-session targets, including agent-created automations.","schema":{"type":"string","description":"Matches existing-session targets, including agent-created automations."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-agent-automation":{"post":{"operationId":"ai_openai_create_agent_automation","summary":"Create an automation","description":"POST /agents/automations","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-agent-automation":{"get":{"operationId":"ai_openai_get_agent_automation","summary":"Get an automation","description":"GET /agents/automations/{automation_id}","tags":["ai"],"parameters":[{"name":"automation_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-agent-automation":{"post":{"operationId":"ai_openai_update_agent_automation","summary":"Update an automation","description":"POST /agents/automations/{automation_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["automation_id","body"],"properties":{"automation_id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-agent-automation":{"post":{"operationId":"ai_openai_delete_agent_automation","summary":"Delete an automation","description":"DELETE /agents/automations/{automation_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["automation_id"],"properties":{"automation_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/pause-agent-automation":{"post":{"operationId":"ai_openai_pause_agent_automation","summary":"Pause an automation","description":"POST /agents/automations/{automation_id}/pause","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["automation_id"],"properties":{"automation_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/resume-agent-automation":{"post":{"operationId":"ai_openai_resume_agent_automation","summary":"Resume an automation","description":"POST /agents/automations/{automation_id}/resume","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["automation_id"],"properties":{"automation_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-automation-invocations":{"get":{"operationId":"ai_openai_list_agent_automation_invocations","summary":"List automation invocations","description":"GET /agents/automations/{automation_id}/invocations","tags":["ai"],"parameters":[{"name":"automation_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-agent-automation-invocation":{"post":{"operationId":"ai_openai_create_agent_automation_invocation","summary":"Invoke an automation","description":"POST /agents/automations/{automation_id}/invocations","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["automation_id"],"properties":{"automation_id":{"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/get-agent-automation-invocation":{"get":{"operationId":"ai_openai_get_agent_automation_invocation","summary":"Get an automation invocation","description":"GET /agents/automations/{automation_id}/invocations/{invocation_id}","tags":["ai"],"parameters":[{"name":"automation_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"invocation_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-environments":{"get":{"operationId":"ai_openai_list_agent_environments","summary":"List agent environments","description":"GET /agents/environments","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}},{"name":"type","in":"query","required":false,"description":"The hosting type to list. Defaults to `openai_hosted`.","schema":{"type":"string","enum":["openai_hosted"],"description":"The hosting type to list. Defaults to `openai_hosted`."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-agent-environment":{"post":{"operationId":"ai_openai_create_agent_environment","summary":"Create an agent environment","description":"POST /agents/environments","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"Idempotency-Key":{"type":"string","description":"Deduplicates creation for 24 hours within the authenticated organization, project, and creator. Retry the same JSON parameters with the…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-agent-environment":{"get":{"operationId":"ai_openai_retrieve_agent_environment","summary":"Retrieve an agent environment","description":"GET /agents/environments/{environment_id}","tags":["ai"],"parameters":[{"name":"environment_id","in":"query","required":true,"description":"The ID of the environment.","schema":{"type":"string","description":"The ID of the environment."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-environment-files":{"get":{"operationId":"ai_openai_list_agent_environment_files","summary":"List agent environment files","description":"GET /agents/environments/{environment_id}/files","tags":["ai"],"parameters":[{"name":"environment_id","in":"query","required":true,"description":"The ID of the environment.","schema":{"type":"string","description":"The ID of the environment."}},{"name":"path","in":"query","required":false,"description":"Restrict the listing to this absolute workspace directory.","schema":{"type":"string","description":"Restrict the listing to this absolute workspace directory."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of files to return, between 1 and 100.","schema":{"type":"string","description":"The maximum number of files to return, between 1 and 100."}},{"name":"order","in":"query","required":false,"description":"Sort by case-sensitive path components. Defaults to descending.","schema":{"type":"string","enum":["asc","desc"],"description":"Sort by case-sensitive path components. Defaults to descending."}},{"name":"page","in":"query","required":false,"description":"The opaque token from the previous page. Keep the same path, order, and limit.","schema":{"type":"string","description":"The opaque token from the previous page. Keep the same path, order, and limit."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-agent-environment-file":{"post":{"operationId":"ai_openai_create_agent_environment_file","summary":"Write an agent environment file","description":"POST /agents/environments/{environment_id}/files","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["environment_id"],"properties":{"environment_id":{"type":"string","description":"The ID of the environment."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-session-subagents":{"get":{"operationId":"ai_openai_list_agent_session_subagents","summary":"List session subagents","description":"GET /agents/sessions/{session_id}/subagents","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-agent-session-subagent":{"get":{"operationId":"ai_openai_retrieve_agent_session_subagent","summary":"Retrieve a session subagent","description":"GET /agents/sessions/{session_id}/subagents/{subagent_id}","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}},{"name":"subagent_id","in":"query","required":true,"description":"The ID of the subagent in this session.","schema":{"type":"string","description":"The ID of the subagent in this session."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-session-subagent-items":{"get":{"operationId":"ai_openai_list_agent_session_subagent_items","summary":"List subagent items","description":"GET /agents/sessions/{session_id}/subagents/{subagent_id}/items","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}},{"name":"subagent_id","in":"query","required":true,"description":"The ID of the subagent in this session.","schema":{"type":"string","description":"The ID of the subagent in this session."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-session-subagent-turns":{"get":{"operationId":"ai_openai_list_agent_session_subagent_turns","summary":"List subagent turns","description":"GET /agents/sessions/{session_id}/subagents/{subagent_id}/turns","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}},{"name":"subagent_id","in":"query","required":true,"description":"The ID of the subagent in this session.","schema":{"type":"string","description":"The ID of the subagent in this session."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-agent-session-subagent-turn":{"get":{"operationId":"ai_openai_retrieve_agent_session_subagent_turn","summary":"Retrieve a subagent turn","description":"GET /agents/sessions/{session_id}/subagents/{subagent_id}/turns/{turn_id}","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}},{"name":"subagent_id","in":"query","required":true,"description":"The ID of the subagent in this session.","schema":{"type":"string","description":"The ID of the subagent in this session."}},{"name":"turn_id","in":"query","required":true,"description":"The ID of a turn belonging to this subagent.","schema":{"type":"string","description":"The ID of a turn belonging to this subagent."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-session-subagent-turn-items":{"get":{"operationId":"ai_openai_list_agent_session_subagent_turn_items","summary":"List subagent turn items","description":"GET /agents/sessions/{session_id}/subagents/{subagent_id}/turns/{turn_id}/items","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}},{"name":"subagent_id","in":"query","required":true,"description":"The ID of the subagent in this session.","schema":{"type":"string","description":"The ID of the subagent in this session."}},{"name":"turn_id","in":"query","required":true,"description":"The ID of a turn belonging to this subagent.","schema":{"type":"string","description":"The ID of a turn belonging to this subagent."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agents":{"get":{"operationId":"ai_openai_list_agents","summary":"List agents","description":"GET /agents","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-agent":{"post":{"operationId":"ai_openai_create_agent","summary":"Create an agent","description":"POST /agents","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-agent":{"get":{"operationId":"ai_openai_retrieve_agent","summary":"Retrieve an agent","description":"GET /agents/{agent_id}","tags":["ai"],"parameters":[{"name":"agent_id","in":"query","required":true,"description":"The ID of the reusable agent.","schema":{"type":"string","description":"The ID of the reusable agent."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-agent":{"post":{"operationId":"ai_openai_update_agent","summary":"Update an agent","description":"POST /agents/{agent_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["agent_id"],"properties":{"agent_id":{"type":"string","description":"The ID of the reusable agent."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-agent":{"post":{"operationId":"ai_openai_delete_agent","summary":"Delete an agent","description":"DELETE /agents/{agent_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["agent_id"],"properties":{"agent_id":{"type":"string","description":"The ID of the reusable agent."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-environment-templates":{"get":{"operationId":"ai_openai_list_agent_environment_templates","summary":"List agent environment templates","description":"GET /agents/environments/templates","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-agent-environment-template":{"post":{"operationId":"ai_openai_create_agent_environment_template","summary":"Create an agent environment template","description":"POST /agents/environments/templates","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-agent-environment-template":{"get":{"operationId":"ai_openai_retrieve_agent_environment_template","summary":"Retrieve an agent environment template","description":"GET /agents/environments/templates/{environment_template_id}","tags":["ai"],"parameters":[{"name":"environment_template_id","in":"query","required":true,"description":"The ID of the reusable environment template.","schema":{"type":"string","description":"The ID of the reusable environment template."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-agent-environment-template":{"post":{"operationId":"ai_openai_update_agent_environment_template","summary":"Update an agent environment template","description":"POST /agents/environments/templates/{environment_template_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["environment_template_id"],"properties":{"environment_template_id":{"type":"string","description":"The ID of the reusable environment template."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-agent-environment-template":{"post":{"operationId":"ai_openai_delete_agent_environment_template","summary":"Delete an agent environment template","description":"DELETE /agents/environments/templates/{environment_template_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["environment_template_id"],"properties":{"environment_template_id":{"type":"string","description":"The ID of the reusable environment template."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-sessions":{"get":{"operationId":"ai_openai_list_agent_sessions","summary":"List agent sessions","description":"GET /agents/sessions","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}},{"name":"agent_id","in":"query","required":false,"description":"Only return sessions whose root agent has this ID. Omit to return sessions for all agents.","schema":{"type":"string","description":"Only return sessions whose root agent has this ID. Omit to return sessions for all agents."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-agent-session":{"post":{"operationId":"ai_openai_create_agent_session","summary":"Create an agent session","description":"POST /agents/sessions","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-agent-session":{"get":{"operationId":"ai_openai_retrieve_agent_session","summary":"Retrieve an agent session","description":"GET /agents/sessions/{session_id}","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-agent-session":{"post":{"operationId":"ai_openai_update_agent_session","summary":"Update an agent session","description":"POST /agents/sessions/{session_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["session_id"],"properties":{"session_id":{"type":"string","description":"The ID of the session."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-agent-session":{"post":{"operationId":"ai_openai_delete_agent_session","summary":"Delete an agent session","description":"DELETE /agents/sessions/{session_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["session_id"],"properties":{"session_id":{"type":"string","description":"The ID of the session."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-session-artifacts":{"get":{"operationId":"ai_openai_list_agent_session_artifacts","summary":"List agent session artifacts","description":"GET /agents/sessions/{session_id}/artifacts","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}},{"name":"environment_id","in":"query","required":false,"description":"Restrict the listing to artifacts produced by this environment.","schema":{"type":"string","description":"Restrict the listing to artifacts produced by this environment."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-agent-session-artifact":{"get":{"operationId":"ai_openai_retrieve_agent_session_artifact","summary":"Retrieve an agent session artifact","description":"GET /agents/sessions/{session_id}/artifacts/{artifact_id}","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session that owns the artifact.","schema":{"type":"string","description":"The ID of the session that owns the artifact."}},{"name":"artifact_id","in":"query","required":true,"description":"The immutable session artifact ID.","schema":{"type":"string","description":"The immutable session artifact ID."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-agent-session-artifact":{"post":{"operationId":"ai_openai_delete_agent_session_artifact","summary":"Delete an agent session artifact","description":"DELETE /agents/sessions/{session_id}/artifacts/{artifact_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["session_id","artifact_id"],"properties":{"session_id":{"type":"string","description":"The ID of the session that owns the artifact."},"artifact_id":{"type":"string","description":"The immutable session artifact ID."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-agent-session-artifact-content":{"get":{"operationId":"ai_openai_retrieve_agent_session_artifact_content","summary":"Retrieve agent session artifact content","description":"GET /agents/sessions/{session_id}/artifacts/{artifact_id}/content","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session that owns the artifact.","schema":{"type":"string","description":"The ID of the session that owns the artifact."}},{"name":"artifact_id","in":"query","required":true,"description":"The immutable session artifact ID.","schema":{"type":"string","description":"The immutable session artifact ID."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-session-events":{"get":{"operationId":"ai_openai_list_agent_session_events","summary":"Stream agent session events","description":"GET /agents/sessions/{session_id}/events","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-agent-session-events":{"post":{"operationId":"ai_openai_create_agent_session_events","summary":"Create agent session input events","description":"POST /agents/sessions/{session_id}/events","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["session_id"],"properties":{"session_id":{"type":"string","description":"The ID of the session."},"Idempotency-Key":{"type":"string","description":"An optional client-generated key that makes retries of submitted messages idempotent."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-session-items":{"get":{"operationId":"ai_openai_list_agent_session_items","summary":"List agent session items","description":"GET /agents/sessions/{session_id}/items","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-session-traces":{"get":{"operationId":"ai_openai_list_agent_session_traces","summary":"List agent session traces","description":"GET /agents/sessions/{session_id}/traces","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-session-turns":{"get":{"operationId":"ai_openai_list_agent_session_turns","summary":"List agent session turns","description":"GET /agents/sessions/{session_id}/turns","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session.","schema":{"type":"string","description":"The ID of the session."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-agent-session-turn":{"get":{"operationId":"ai_openai_retrieve_agent_session_turn","summary":"Retrieve an agent session turn","description":"GET /agents/sessions/{session_id}/turns/{turn_id}","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session that owns the turn.","schema":{"type":"string","description":"The ID of the session that owns the turn."}},{"name":"turn_id","in":"query","required":true,"description":"The ID of the turn.","schema":{"type":"string","description":"The ID of the turn."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-agent-session-turn-items":{"get":{"operationId":"ai_openai_list_agent_session_turn_items","summary":"List agent session turn items","description":"GET /agents/sessions/{session_id}/turns/{turn_id}/items","tags":["ai"],"parameters":[{"name":"session_id","in":"query","required":true,"description":"The ID of the session that owns the turn.","schema":{"type":"string","description":"The ID of the session that owns the turn."}},{"name":"turn_id","in":"query","required":true,"description":"The ID of the turn.","schema":{"type":"string","description":"The ID of the turn."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/list-vaults":{"get":{"operationId":"ai_openai_list_vaults","summary":"List vaults","description":"GET /vaults","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}},{"name":"metadata","in":"query","required":false,"description":"Exact string matches supplied as `metadata[key]=value`. All supplied pairs must match. Up to 16 pairs, with keys from 1 to 64 characters…","schema":{"type":"object","description":"Exact string matches supplied as `metadata[key]=value`. All supplied pairs must match. Up to 16 pairs, with keys from 1 to 64 characters…"}},{"name":"status","in":"query","required":false,"description":"Filter by one status or a list, such as `status=active` or `status[]=active&status[]=archived`. Both statuses are included by default.","schema":{"type":"string","description":"Filter by one status or a list, such as `status=active` or `status[]=active&status[]=archived`. Both statuses are included by default."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-vault":{"post":{"operationId":"ai_openai_create_vault","summary":"Create a vault","description":"POST /vaults","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-vault":{"get":{"operationId":"ai_openai_retrieve_vault","summary":"Retrieve a vault","description":"GET /vaults/{vault_id}","tags":["ai"],"parameters":[{"name":"vault_id","in":"query","required":true,"description":"The ID of the vault.","schema":{"type":"string","description":"The ID of the vault."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-vault":{"post":{"operationId":"ai_openai_update_vault","summary":"Update a vault","description":"POST /vaults/{vault_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vault_id","body"],"properties":{"vault_id":{"type":"string","description":"The ID of the vault."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-vault":{"post":{"operationId":"ai_openai_delete_vault","summary":"Delete a vault","description":"DELETE /vaults/{vault_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vault_id"],"properties":{"vault_id":{"type":"string","description":"The ID of the vault."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-vault-credentials":{"get":{"operationId":"ai_openai_list_vault_credentials","summary":"List vault credentials","description":"GET /vaults/{vault_id}/credentials","tags":["ai"],"parameters":[{"name":"vault_id","in":"query","required":true,"description":"The ID of the vault.","schema":{"type":"string","description":"The ID of the vault."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20.","schema":{"type":"integer","default":20,"description":"The maximum number of resources to return, between 1 and 100. Defaults to 20."}},{"name":"order","in":"query","required":false,"description":"The order in which resources are returned. Defaults to `desc`.","schema":{"type":"string","enum":["asc","desc"],"description":"The order in which resources are returned. Defaults to `desc`."}},{"name":"after","in":"query","required":false,"description":"Return resources after this resource ID in the selected order.","schema":{"type":"string","description":"Return resources after this resource ID in the selected order."}},{"name":"metadata","in":"query","required":false,"description":"Exact string matches supplied as `metadata[key]=value`. All supplied pairs must match. Up to 16 pairs, with keys from 1 to 64 characters…","schema":{"type":"object","description":"Exact string matches supplied as `metadata[key]=value`. All supplied pairs must match. Up to 16 pairs, with keys from 1 to 64 characters…"}},{"name":"status","in":"query","required":false,"description":"Filter by one status or a list, such as `status=active` or `status[]=active&status[]=archived`. Both statuses are included by default.","schema":{"type":"string","description":"Filter by one status or a list, such as `status=active` or `status[]=active&status[]=archived`. Both statuses are included by default."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-vault-credential":{"post":{"operationId":"ai_openai_create_vault_credential","summary":"Create a vault credential","description":"POST /vaults/{vault_id}/credentials","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vault_id"],"properties":{"vault_id":{"type":"string","description":"The ID of the vault."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-vault-credential":{"get":{"operationId":"ai_openai_retrieve_vault_credential","summary":"Retrieve a vault credential","description":"GET /vaults/{vault_id}/credentials/{credential_id}","tags":["ai"],"parameters":[{"name":"vault_id","in":"query","required":true,"description":"The ID of the vault.","schema":{"type":"string","description":"The ID of the vault."}},{"name":"credential_id","in":"query","required":true,"description":"The ID of the vault credential.","schema":{"type":"string","description":"The ID of the vault credential."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/rotate-vault-credential":{"post":{"operationId":"ai_openai_rotate_vault_credential","summary":"Update a vault credential","description":"POST /vaults/{vault_id}/credentials/{credential_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vault_id","credential_id","body"],"properties":{"vault_id":{"type":"string","description":"The ID of the vault."},"credential_id":{"type":"string","description":"The ID of the vault credential."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-vault-credential":{"post":{"operationId":"ai_openai_delete_vault_credential","summary":"Delete a vault credential","description":"DELETE /vaults/{vault_id}/credentials/{credential_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["vault_id","credential_id"],"properties":{"vault_id":{"type":"string","description":"The ID of the vault."},"credential_id":{"type":"string","description":"The ID of the vault credential."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-webhook-endpoints":{"get":{"operationId":"ai_openai_list_webhook_endpoints","summary":"List Webhook Endpoints","description":"GET /webhook_endpoints","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Maximum number of webhook endpoints to return. Defaults to 20.","schema":{"type":"integer","description":"Maximum number of webhook endpoints to return. Defaults to 20."}},{"name":"after","in":"query","required":false,"description":"ID of the last webhook endpoint from the previous page.","schema":{"type":"string","description":"ID of the last webhook endpoint from the previous page."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/create-webhook-endpoint":{"post":{"operationId":"ai_openai_create_webhook_endpoint","summary":"Create Webhook Endpoint","description":"POST /webhook_endpoints","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/retrieve-webhook-endpoint":{"get":{"operationId":"ai_openai_retrieve_webhook_endpoint","summary":"Retrieve Webhook Endpoint","description":"GET /webhook_endpoints/{webhook_endpoint_id}","tags":["ai"],"parameters":[{"name":"webhook_endpoint_id","in":"query","required":true,"description":"The ID of the webhook endpoint to retrieve.","schema":{"type":"string","description":"The ID of the webhook endpoint to retrieve."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/update-webhook-endpoint":{"post":{"operationId":"ai_openai_update_webhook_endpoint","summary":"Update Webhook Endpoint","description":"POST /webhook_endpoints/{webhook_endpoint_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhook_endpoint_id"],"properties":{"webhook_endpoint_id":{"type":"string","description":"The ID of the webhook endpoint to update."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/delete-webhook-endpoint":{"post":{"operationId":"ai_openai_delete_webhook_endpoint","summary":"Delete Webhook Endpoint","description":"DELETE /webhook_endpoints/{webhook_endpoint_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhook_endpoint_id"],"properties":{"webhook_endpoint_id":{"type":"string","description":"The ID of the webhook endpoint to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/rotate-webhook-endpoint-signing-secret":{"post":{"operationId":"ai_openai_rotate_webhook_endpoint_signing_secret","summary":"Rotate Webhook Endpoint Signing Secret","description":"POST /webhook_endpoints/{webhook_endpoint_id}/rotate_secret","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhook_endpoint_id"],"properties":{"webhook_endpoint_id":{"type":"string","description":"The ID of the webhook endpoint whose signing secret will be rotated."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/test-webhook-endpoint":{"post":{"operationId":"ai_openai_test_webhook_endpoint","summary":"Test Webhook Endpoint","description":"POST /webhook_endpoints/{webhook_endpoint_id}/test","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhook_endpoint_id"],"properties":{"webhook_endpoint_id":{"type":"string","description":"The ID of the webhook endpoint to test."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/list-webhook-event-types":{"get":{"operationId":"ai_openai_list_webhook_event_types","summary":"List Webhook Event Types","description":"GET /webhook_event_types","tags":["ai"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/beta-create-response":{"post":{"operationId":"ai_openai_beta_create_response","summary":"Create a model response","description":"POST /responses?beta=true","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"openai-beta":{"type":"array","description":"Optional beta features to enable for this request."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/beta-get-response":{"get":{"operationId":"ai_openai_beta_get_response","summary":"Get a model response","description":"GET /responses/{response_id}?beta=true","tags":["ai"],"parameters":[{"name":"response_id","in":"query","required":true,"description":"The ID of the response to retrieve.","schema":{"type":"string","description":"The ID of the response to retrieve."}},{"name":"include","in":"query","required":false,"description":"Additional fields to include in the response. See the `include` parameter for Response creation above for more information.","schema":{"type":"array","description":"Additional fields to include in the response. See the `include` parameter for Response creation above for more information."}},{"name":"stream","in":"query","required":false,"description":"If set to true, the model response data will be streamed to the client as it is generated using [server-sent…","schema":{"type":"boolean","description":"If set to true, the model response data will be streamed to the client as it is generated using [server-sent…"}},{"name":"starting_after","in":"query","required":false,"description":"The sequence number of the event after which to start streaming.","schema":{"type":"integer","description":"The sequence number of the event after which to start streaming."}},{"name":"include_obfuscation","in":"query","required":false,"description":"When true, stream obfuscation will be enabled. Stream obfuscation adds random characters to an `obfuscation` field on streaming delta…","schema":{"type":"boolean","description":"When true, stream obfuscation will be enabled. Stream obfuscation adds random characters to an `obfuscation` field on streaming delta…"}},{"name":"openai-beta","in":"query","required":false,"description":"Optional beta features to enable for this request.","schema":{"type":"array","description":"Optional beta features to enable for this request."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/beta-delete-response":{"post":{"operationId":"ai_openai_beta_delete_response","summary":"Delete a model response","description":"DELETE /responses/{response_id}?beta=true","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["response_id"],"properties":{"response_id":{"type":"string","description":"The ID of the response to delete."},"openai-beta":{"type":"array","description":"Optional beta features to enable for this request."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/beta-cancel-response":{"post":{"operationId":"ai_openai_beta_cancel_response","summary":"Cancel a response","description":"POST /responses/{response_id}/cancel?beta=true","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["response_id"],"properties":{"response_id":{"type":"string","description":"The ID of the response to cancel."},"openai-beta":{"type":"array","description":"Optional beta features to enable for this request."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/beta-compactconversation":{"post":{"operationId":"ai_openai_beta_compactconversation","summary":"Compact conversation","description":"POST /responses/compact?beta=true","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"openai-beta":{"type":"array","description":"Optional beta features to enable for this request."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/ai:openai/beta-list-input-items":{"get":{"operationId":"ai_openai_beta_list_input_items","summary":"List input items","description":"GET /responses/{response_id}/input_items?beta=true","tags":["ai"],"parameters":[{"name":"response_id","in":"query","required":true,"description":"The ID of the response to retrieve input items for.","schema":{"type":"string","description":"The ID of the response to retrieve input items for."}},{"name":"limit","in":"query","required":false,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.","schema":{"type":"integer","default":20,"description":"A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20."}},{"name":"order","in":"query","required":false,"description":"The order to return the input items in. Default is `desc`. - `asc`: Return the input items in ascending order. - `desc`: Return the input…","schema":{"type":"string","enum":["asc","desc"],"description":"The order to return the input items in. Default is `desc`. - `asc`: Return the input items in ascending order. - `desc`: Return the input…"}},{"name":"after","in":"query","required":false,"description":"An item ID to list items after, used in pagination.","schema":{"type":"string","description":"An item ID to list items after, used in pagination."}},{"name":"include","in":"query","required":false,"description":"Additional fields to include in the response. See the `include` parameter for Response creation above for more information.","schema":{"type":"array","description":"Additional fields to include in the response. See the `include` parameter for Response creation above for more information."}},{"name":"openai-beta","in":"query","required":false,"description":"Optional beta features to enable for this request.","schema":{"type":"array","description":"Optional beta features to enable for this request."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/ai:openai/beta-getinputtokencounts":{"post":{"operationId":"ai_openai_beta_getinputtokencounts","summary":"Get input token counts","description":"POST /responses/input_tokens?beta=true","tags":["ai"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"openai-beta":{"type":"array","description":"Optional beta features to enable for this request."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}