{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:mozilla-kinto/server-info":{"get":{"operationId":"cloud_mozilla_kinto_server_info","summary":"GET /","description":"GET /","tags":["cloud"],"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":"live"}},"/v1/cloud:mozilla-kinto/get-openapi-spec":{"get":{"operationId":"cloud_mozilla_kinto_get_openapi_spec","summary":"GET /__api__","description":"GET /__api__","tags":["cloud"],"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":"live"}},"/v1/cloud:mozilla-kinto/heartbeat":{"get":{"operationId":"cloud_mozilla_kinto_heartbeat","summary":"GET /__heartbeat__","description":"GET /__heartbeat__","tags":["cloud"],"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":"live"}},"/v1/cloud:mozilla-kinto/lbheartbeat":{"get":{"operationId":"cloud_mozilla_kinto_lbheartbeat","summary":"GET /__lbheartbeat__","description":"GET /__lbheartbeat__","tags":["cloud"],"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":"live"}},"/v1/cloud:mozilla-kinto/version":{"get":{"operationId":"cloud_mozilla_kinto_version","summary":"GET /__version__","description":"GET /__version__","tags":["cloud"],"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":"live"}},"/v1/cloud:mozilla-kinto/batch":{"post":{"operationId":"cloud_mozilla_kinto_batch","summary":"POST /batch","description":"POST /batch","tags":["cloud"],"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":"live"}},"/v1/cloud:mozilla-kinto/get-buckets":{"get":{"operationId":"cloud_mozilla_kinto_get_buckets","summary":"GET /buckets","description":"GET /buckets","tags":["cloud"],"parameters":[{"name":"_limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_sort","in":"query","required":false,"schema":{"type":"array"}},{"name":"_token","in":"query","required":false,"schema":{"type":"string"}},{"name":"_since","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_to","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_before","in":"query","required":false,"schema":{"type":"integer"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"last_modified","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_fields","in":"query","required":false,"schema":{"type":"array"}},{"name":"If-Match","in":"query","required":false,"schema":{"type":"string"}},{"name":"If-None-Match","in":"query","required":false,"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":"live"}},"/v1/cloud:mozilla-kinto/get-changess":{"get":{"operationId":"cloud_mozilla_kinto_get_changess","summary":"GET /buckets/monitor/collections/changes/records","description":"GET /buckets/monitor/collections/changes/records","tags":["cloud"],"parameters":[{"name":"_limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_sort","in":"query","required":false,"schema":{"type":"array"}},{"name":"_token","in":"query","required":false,"schema":{"type":"string"}},{"name":"_since","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_to","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_before","in":"query","required":false,"schema":{"type":"integer"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"last_modified","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_fields","in":"query","required":false,"schema":{"type":"array"}},{"name":"If-Match","in":"query","required":false,"schema":{"type":"string"}},{"name":"If-None-Match","in":"query","required":false,"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":"live"}},"/v1/cloud:mozilla-kinto/get-collection-changeset":{"get":{"operationId":"cloud_mozilla_kinto_get_collection_changeset","summary":"GET /buckets/{bid}/collections/{cid}/changeset","description":"GET /buckets/{bid}/collections/{cid}/changeset","tags":["cloud"],"parameters":[{"name":"bid","in":"query","required":true,"schema":{"type":"string"}},{"name":"cid","in":"query","required":true,"schema":{"type":"string"}},{"name":"_since","in":"query","required":false,"schema":{"type":"string"}},{"name":"_expected","in":"query","required":true,"schema":{"type":"string"}},{"name":"_limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"bucket","in":"query","required":false,"schema":{"type":"string"}},{"name":"collection","in":"query","required":false,"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":"live"}},"/v1/cloud:mozilla-kinto/get-collections":{"get":{"operationId":"cloud_mozilla_kinto_get_collections","summary":"GET /buckets/{bucket_id}/collections","description":"GET /buckets/{bucket_id}/collections","tags":["cloud"],"parameters":[{"name":"bucket_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"_limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_sort","in":"query","required":false,"schema":{"type":"array"}},{"name":"_token","in":"query","required":false,"schema":{"type":"string"}},{"name":"_since","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_to","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_before","in":"query","required":false,"schema":{"type":"integer"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"last_modified","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_fields","in":"query","required":false,"schema":{"type":"array"}},{"name":"If-Match","in":"query","required":false,"schema":{"type":"string"}},{"name":"If-None-Match","in":"query","required":false,"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":"live"}},"/v1/cloud:mozilla-kinto/get-records":{"get":{"operationId":"cloud_mozilla_kinto_get_records","summary":"GET /buckets/{bucket_id}/collections/{collection_id}/records","description":"GET /buckets/{bucket_id}/collections/{collection_id}/records","tags":["cloud"],"parameters":[{"name":"bucket_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"collection_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"_limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_sort","in":"query","required":false,"schema":{"type":"array"}},{"name":"_token","in":"query","required":false,"schema":{"type":"string"}},{"name":"_since","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_to","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_before","in":"query","required":false,"schema":{"type":"integer"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"last_modified","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_fields","in":"query","required":false,"schema":{"type":"array"}},{"name":"If-Match","in":"query","required":false,"schema":{"type":"string"}},{"name":"If-None-Match","in":"query","required":false,"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":"live"}},"/v1/cloud:mozilla-kinto/get-record":{"get":{"operationId":"cloud_mozilla_kinto_get_record","summary":"GET /buckets/{bucket_id}/collections/{collection_id}/records/{id}","description":"GET /buckets/{bucket_id}/collections/{collection_id}/records/{id}","tags":["cloud"],"parameters":[{"name":"bucket_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"collection_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"id","in":"query","required":true,"schema":{"type":"string"}},{"name":"_fields","in":"query","required":false,"schema":{"type":"array"}},{"name":"If-Match","in":"query","required":false,"schema":{"type":"string"}},{"name":"If-None-Match","in":"query","required":false,"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":"live"}},"/v1/cloud:mozilla-kinto/create-attachment":{"post":{"operationId":"cloud_mozilla_kinto_create_attachment","summary":"POST /buckets/{bucket_id}/collections/{collection_id}/records/{id}/attachment","description":"POST /buckets/{bucket_id}/collections/{collection_id}/records/{id}/attachment","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["bucket_id","collection_id","id"],"properties":{"bucket_id":{"type":"string"},"collection_id":{"type":"string"},"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":"live"}},"/v1/cloud:mozilla-kinto/delete-attachment":{"post":{"operationId":"cloud_mozilla_kinto_delete_attachment","summary":"DELETE /buckets/{bucket_id}/collections/{collection_id}/records/{id}/attachment","description":"DELETE /buckets/{bucket_id}/collections/{collection_id}/records/{id}/attachment","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["bucket_id","collection_id","id"],"properties":{"bucket_id":{"type":"string"},"collection_id":{"type":"string"},"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":"live"}},"/v1/cloud:mozilla-kinto/get-collection":{"get":{"operationId":"cloud_mozilla_kinto_get_collection","summary":"GET /buckets/{bucket_id}/collections/{id}","description":"GET /buckets/{bucket_id}/collections/{id}","tags":["cloud"],"parameters":[{"name":"bucket_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"id","in":"query","required":true,"schema":{"type":"string"}},{"name":"_fields","in":"query","required":false,"schema":{"type":"array"}},{"name":"If-Match","in":"query","required":false,"schema":{"type":"string"}},{"name":"If-None-Match","in":"query","required":false,"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":"live"}},"/v1/cloud:mozilla-kinto/get-groups":{"get":{"operationId":"cloud_mozilla_kinto_get_groups","summary":"GET /buckets/{bucket_id}/groups","description":"GET /buckets/{bucket_id}/groups","tags":["cloud"],"parameters":[{"name":"bucket_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"_limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_sort","in":"query","required":false,"schema":{"type":"array"}},{"name":"_token","in":"query","required":false,"schema":{"type":"string"}},{"name":"_since","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_to","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_before","in":"query","required":false,"schema":{"type":"integer"}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"last_modified","in":"query","required":false,"schema":{"type":"integer"}},{"name":"_fields","in":"query","required":false,"schema":{"type":"array"}},{"name":"If-Match","in":"query","required":false,"schema":{"type":"string"}},{"name":"If-None-Match","in":"query","required":false,"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":"live"}},"/v1/cloud:mozilla-kinto/get-group":{"get":{"operationId":"cloud_mozilla_kinto_get_group","summary":"GET /buckets/{bucket_id}/groups/{id}","description":"GET /buckets/{bucket_id}/groups/{id}","tags":["cloud"],"parameters":[{"name":"bucket_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"id","in":"query","required":true,"schema":{"type":"string"}},{"name":"_fields","in":"query","required":false,"schema":{"type":"array"}},{"name":"If-Match","in":"query","required":false,"schema":{"type":"string"}},{"name":"If-None-Match","in":"query","required":false,"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":"live"}},"/v1/cloud:mozilla-kinto/get-bucket":{"get":{"operationId":"cloud_mozilla_kinto_get_bucket","summary":"GET /buckets/{id}","description":"GET /buckets/{id}","tags":["cloud"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}},{"name":"_fields","in":"query","required":false,"schema":{"type":"array"}},{"name":"If-Match","in":"query","required":false,"schema":{"type":"string"}},{"name":"If-None-Match","in":"query","required":false,"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":"live"}},"/v1/cloud:mozilla-kinto/contribute":{"get":{"operationId":"cloud_mozilla_kinto_contribute","summary":"GET /contribute.json","description":"GET /contribute.json","tags":["cloud"],"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":"live"}}},"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"}}}}}}}