{"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:pinecone/list-indexes":{"get":{"operationId":"ai_pinecone_list_indexes","summary":"List indexes","description":"GET /indexes","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:pinecone/create-index":{"post":{"operationId":"ai_pinecone_create_index","summary":"Create an index","description":"POST /indexes","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:pinecone/describe-index":{"get":{"operationId":"ai_pinecone_describe_index","summary":"Describe an index","description":"GET /indexes/{index_name}","tags":["ai"],"parameters":[{"name":"index_name","in":"query","required":true,"description":"The name of the index to be described.","schema":{"type":"string","description":"The name of the index to be described."},"example":"test-index"}],"responses":{"200":{"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:pinecone/configure-index":{"post":{"operationId":"ai_pinecone_configure_index","summary":"Configure an index","description":"PATCH /indexes/{index_name}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["index_name","body"],"properties":{"index_name":{"type":"string","description":"The name of the index to configure."},"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:pinecone/delete-index":{"post":{"operationId":"ai_pinecone_delete_index","summary":"Delete an index","description":"DELETE /indexes/{index_name}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["index_name"],"properties":{"index_name":{"type":"string","description":"The name of the index 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:pinecone/list-index-backups":{"get":{"operationId":"ai_pinecone_list_index_backups","summary":"List backups for an index","description":"GET /indexes/{index_name}/backups","tags":["ai"],"parameters":[{"name":"index_name","in":"query","required":true,"description":"Name of the backed up index","schema":{"type":"string","description":"Name of the backed up index"}},{"name":"limit","in":"query","required":false,"description":"The number of results to return per page.","schema":{"type":"integer","default":10,"description":"The number of results to return per page."}},{"name":"paginationToken","in":"query","required":false,"description":"The token to use to retrieve the next page of results.","schema":{"type":"string","description":"The token to use to retrieve the next page of 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:pinecone/create-backup":{"post":{"operationId":"ai_pinecone_create_backup","summary":"Create a backup of an index","description":"POST /indexes/{index_name}/backups","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["index_name","body"],"properties":{"index_name":{"type":"string","description":"Name of the index to backup"},"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:pinecone/list-collections":{"get":{"operationId":"ai_pinecone_list_collections","summary":"List collections","description":"GET /collections","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:pinecone/create-collection":{"post":{"operationId":"ai_pinecone_create_collection","summary":"Create a collection","description":"POST /collections","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:pinecone/create-index-for-model":{"post":{"operationId":"ai_pinecone_create_index_for_model","summary":"Create an index with integrated embedding","description":"POST /indexes/create-for-model","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:pinecone/list-project-backups":{"get":{"operationId":"ai_pinecone_list_project_backups","summary":"List backups for all indexes in a project","description":"GET /backups","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"The number of results to return per page.","schema":{"type":"integer","default":10,"description":"The number of results to return per page."}},{"name":"paginationToken","in":"query","required":false,"description":"The token to use to retrieve the next page of results.","schema":{"type":"string","description":"The token to use to retrieve the next page of 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:pinecone/describe-backup":{"get":{"operationId":"ai_pinecone_describe_backup","summary":"Describe a backup","description":"GET /backups/{backup_id}","tags":["ai"],"parameters":[{"name":"backup_id","in":"query","required":true,"description":"The ID of the backup to describe.","schema":{"type":"string","description":"The ID of the backup to describe."},"example":"670e8400-e29b-41d4-a716-446655440000"}],"responses":{"200":{"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:pinecone/delete-backup":{"post":{"operationId":"ai_pinecone_delete_backup","summary":"Delete a backup","description":"DELETE /backups/{backup_id}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["backup_id"],"properties":{"backup_id":{"type":"string","description":"The ID of the backup 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:pinecone/create-index-from-backup-operation":{"post":{"operationId":"ai_pinecone_create_index_from_backup_operation","summary":"Create an index from a backup","description":"POST /backups/{backup_id}/create-index","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["backup_id","body"],"properties":{"backup_id":{"type":"string","description":"The ID of the backup to create an index from."},"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:pinecone/list-restore-jobs":{"get":{"operationId":"ai_pinecone_list_restore_jobs","summary":"List restore jobs","description":"GET /restore-jobs","tags":["ai"],"parameters":[{"name":"limit","in":"query","required":false,"description":"The number of results to return per page.","schema":{"type":"integer","default":10,"description":"The number of results to return per page."}},{"name":"paginationToken","in":"query","required":false,"description":"The token to use to retrieve the next page of results.","schema":{"type":"string","description":"The token to use to retrieve the next page of 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:pinecone/describe-restore-job":{"get":{"operationId":"ai_pinecone_describe_restore_job","summary":"Describe a restore job","description":"GET /restore-jobs/{job_id}","tags":["ai"],"parameters":[{"name":"job_id","in":"query","required":true,"description":"The ID of the restore job to describe.","schema":{"type":"string","description":"The ID of the restore job to describe."},"example":"670e8400-e29b-41d4-a716-446655440000"}],"responses":{"200":{"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:pinecone/describe-collection":{"get":{"operationId":"ai_pinecone_describe_collection","summary":"Describe a collection","description":"GET /collections/{collection_name}","tags":["ai"],"parameters":[{"name":"collection_name","in":"query","required":true,"description":"The name of the collection to be described.","schema":{"type":"string","description":"The name of the collection to be described."},"example":"tiny-collection"}],"responses":{"200":{"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:pinecone/delete-collection":{"post":{"operationId":"ai_pinecone_delete_collection","summary":"Delete a collection","description":"DELETE /collections/{collection_name}","tags":["ai"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["collection_name"],"properties":{"collection_name":{"type":"string","description":"The name of the collection."}}}}}},"responses":{"200":{"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"}}}}}}}