{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://www.apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/open-data:uploadthing/server-callback-get-data":{"get":{"operationId":"open_data_uploadthing_server_callback_get_data","summary":"Poll for server callback data. This is used to retrieve the data returned from `onUploadComplete` callback.","description":"GET /serverCallback","tags":["open-data"],"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/open-data:uploadthing/server-callback-set-data":{"post":{"operationId":"open_data_uploadthing_server_callback_set_data","summary":"Set server callback data. This is used to set the data returned from `onUploadComplete` callback.","description":"POST /serverCallback","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-uploadthing-version"],"properties":{"x-uploadthing-version":{"type":"string","description":"A semver parseable version string of the SDK calling the API"},"x-uploadthing-fe-package":{"type":"string","description":"Used for analytics, the package name of the frontend"},"x-uploadthing-be-adapter":{"type":"string","description":"Used for analytics, the name of the backend adapter"},"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/open-data:uploadthing/file-list-files":{"post":{"operationId":"open_data_uploadthing_file_list_files","summary":"List files for the current app. Response is paginated.","description":"POST /listFiles","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-uploadthing-version"],"properties":{"x-uploadthing-version":{"type":"string","description":"A semver parseable version string of the SDK calling the API"},"x-uploadthing-fe-package":{"type":"string","description":"Used for analytics, the package name of the frontend"},"x-uploadthing-be-adapter":{"type":"string","description":"Used for analytics, the name of the backend adapter"},"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/open-data:uploadthing/file-rename-files":{"post":{"operationId":"open_data_uploadthing_file_rename_files","summary":"Rename files.","description":"POST /renameFiles","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-uploadthing-version"],"properties":{"x-uploadthing-version":{"type":"string","description":"A semver parseable version string of the SDK calling the API"},"x-uploadthing-fe-package":{"type":"string","description":"Used for analytics, the package name of the frontend"},"x-uploadthing-be-adapter":{"type":"string","description":"Used for analytics, the name of the backend adapter"},"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/open-data:uploadthing/file-mark-for-deletion":{"post":{"operationId":"open_data_uploadthing_file_mark_for_deletion","summary":"Mark files for deletion. The files will be deleted at the storage provider shortly after.","description":"POST /deleteFile","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-uploadthing-version"],"properties":{"x-uploadthing-version":{"type":"string","description":"A semver parseable version string of the SDK calling the API"},"x-uploadthing-fe-package":{"type":"string","description":"Used for analytics, the package name of the frontend"},"x-uploadthing-be-adapter":{"type":"string","description":"Used for analytics, the name of the backend adapter"},"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/open-data:uploadthing/usage-info-get-usage-info":{"post":{"operationId":"open_data_uploadthing_usage_info_get_usage_info","summary":"Retrieve usage info for the app associated with the provided API key.","description":"POST /getUsageInfo","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-uploadthing-version"],"properties":{"x-uploadthing-version":{"type":"string","description":"A semver parseable version string of the SDK calling the API"},"x-uploadthing-fe-package":{"type":"string","description":"Used for analytics, the package name of the frontend"},"x-uploadthing-be-adapter":{"type":"string","description":"Used for analytics, the name of the backend adapter"}}}}}},"responses":{"200":{"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/open-data:uploadthing/multipart-complete-upload":{"post":{"operationId":"open_data_uploadthing_multipart_complete_upload","summary":"Complete a multipart upload. This will finalize the upload and make the file available for download.","description":"POST /completeMultipart","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-uploadthing-version"],"properties":{"x-uploadthing-version":{"type":"string","description":"A semver parseable version string of the SDK calling the API"},"x-uploadthing-fe-package":{"type":"string","description":"Used for analytics, the package name of the frontend"},"x-uploadthing-be-adapter":{"type":"string","description":"Used for analytics, the name of the backend adapter"},"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/open-data:uploadthing/callback-mark-upload-failed":{"post":{"operationId":"open_data_uploadthing_callback_mark_upload_failed","summary":"Mark an upload as failed, or abort a multipart upload. This will free up resources and revert the storage…","description":"POST /failureCallback","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-uploadthing-version"],"properties":{"x-uploadthing-version":{"type":"string","description":"A semver parseable version string of the SDK calling the API"},"x-uploadthing-fe-package":{"type":"string","description":"Used for analytics, the package name of the frontend"},"x-uploadthing-be-adapter":{"type":"string","description":"Used for analytics, the name of the backend adapter"},"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/open-data:uploadthing/file-request-presigned-url":{"post":{"operationId":"open_data_uploadthing_file_request_presigned_url","summary":"Request a presigned GET url for a private file.","description":"POST /requestFileAccess","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-uploadthing-version"],"properties":{"x-uploadthing-version":{"type":"string","description":"A semver parseable version string of the SDK calling the API"},"x-uploadthing-fe-package":{"type":"string","description":"Used for analytics, the package name of the frontend"},"x-uploadthing-be-adapter":{"type":"string","description":"Used for analytics, the name of the backend adapter"},"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/open-data:uploadthing/upload-request-presigned-urls":{"post":{"operationId":"open_data_uploadthing_upload_request_presigned_urls","summary":"Request presigned URLs for file uploads through based on your file router. NOTE: This spec complies with SDK…","description":"POST /prepareUpload","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-uploadthing-version"],"properties":{"x-uploadthing-version":{"type":"string","description":"A semver parseable version string of the SDK calling the API"},"x-uploadthing-fe-package":{"type":"string","description":"Used for analytics, the package name of the frontend"},"x-uploadthing-be-adapter":{"type":"string","description":"Used for analytics, the name of the backend adapter"},"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/open-data:uploadthing/file-request-presigned-urls":{"post":{"operationId":"open_data_uploadthing_file_request_presigned_urls","summary":"Request presigned URLs for file uploads without file routes. NOTE: This spec complies with SDK versions…","description":"POST /uploadFiles","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-uploadthing-version"],"properties":{"x-uploadthing-version":{"type":"string","description":"A semver parseable version string of the SDK calling the API"},"x-uploadthing-fe-package":{"type":"string","description":"Used for analytics, the package name of the frontend"},"x-uploadthing-be-adapter":{"type":"string","description":"Used for analytics, the name of the backend adapter"},"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/open-data:uploadthing/acl-update-file-acl":{"post":{"operationId":"open_data_uploadthing_acl_update_file_acl","summary":"Update the ACL for a list of files.","description":"POST /updateACL","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-uploadthing-version"],"properties":{"x-uploadthing-version":{"type":"string","description":"A semver parseable version string of the SDK calling the API"},"x-uploadthing-fe-package":{"type":"string","description":"Used for analytics, the package name of the frontend"},"x-uploadthing-be-adapter":{"type":"string","description":"Used for analytics, the name of the backend adapter"},"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"}}}}}}}