{"openapi":"3.1.0","info":{"title":"SendByLink API","version":"1","description":"Send large files by link from your own code, scripts and agents.\n\nAuthenticate with an API key from the Developers page in the app: `Authorization: Bearer sbl_live_...`.\n\nAgents connect over MCP at https://sendbylink.com/mcp with the same key."},"servers":[{"url":"https://sendbylink.com"}],"security":[{"apiKey":[]}],"tags":[{"name":"Account"},{"name":"Transfers"},{"name":"Uploads"},{"name":"Downloads"}],"paths":{"/api/v1/transfers":{"post":{"operationId":"createTransfer","summary":"Create a transfer and reserve its files","tags":["Transfers"],"parameters":[],"responses":{"201":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"transfer":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"slug":{"type":"string","pattern":"^[2-9a-km-np-zA-HJ-NP-Z]{12}$"},"url":{"type":"string","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$"},"state":{"type":"string","enum":["draft","uploading","active","expired","purged","burned","blocked","deleted"]},"region":{"type":"string","enum":["eu","us"]},"title":{"type":["string","null"]},"total_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"file_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"burn":{"type":"boolean"},"e2ee":{"type":"boolean"},"pinned":{"type":"boolean"},"pass":{"anyOf":[{"type":"string","enum":["pass_50","pass_100","pass_250"]},{"type":"null"}]},"paid":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","slug","url","state","region","title","total_bytes","file_count","burn","e2ee","pinned","pass","paid","created_at","expires_at"],"additionalProperties":false},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"idx":{"type":"integer","minimum":0,"maximum":9007199254740991},"path":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","idx","path","size"],"additionalProperties":false}},"allowance_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"payment_required":{"type":"boolean"}},"required":["transfer","files","allowance_bytes","payment_required"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"files":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"object","properties":{"path":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"mime":{"type":"string","minLength":1,"maxLength":255},"last_modified":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["path","size"]}},"region":{"type":"string","enum":["eu","us"]},"workspace_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"domain_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"null"}]},"title":{"type":"string","maxLength":200},"message":{"type":"string","maxLength":5000},"expires_in_days":{"type":"integer","minimum":1,"maximum":365},"pinned":{"default":false,"type":"boolean"},"burn":{"default":false,"type":"boolean"},"password":{"type":"object","properties":{"kdf":{"type":"string","const":"pbkdf2-sha256+hkdf"},"iterations":{"type":"integer","minimum":600000,"maximum":2000000},"salt":{"type":"string","pattern":"^[A-Za-z0-9_-]{22}$"},"verifier":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"}},"required":["kdf","iterations","salt","verifier"]},"sender_email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"recipients":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"email_code":{"type":"object","properties":{"emails":{"maxItems":500,"type":"array","items":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"domains":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["emails","domains"]},"ip_allow":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"string","minLength":2,"maxLength":64}},"tracked_links":{"type":"boolean"},"client_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"pass":{"type":"string","enum":["pass_50","pass_100","pass_250"]},"e2ee":{"type":"object","properties":{"scheme":{"type":"string","const":"sbl-e2ee-v1"},"verifier":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"},"passphrase":{"type":"object","properties":{"kdf":{"type":"string","const":"pbkdf2-sha256"},"iterations":{"type":"integer","minimum":600000,"maximum":2000000},"salt":{"type":"string","pattern":"^[A-Za-z0-9_-]{22}$"}},"required":["kdf","iterations","salt"]}},"required":["scheme"]},"turnstile_token":{"type":"string","minLength":1,"maxLength":2048},"via":{"type":"string","enum":["footer"]}},"required":["files","region"]}}}}},"get":{"operationId":"listTransfers","summary":"List transfers, newest first","tags":["Transfers"],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["draft","uploading","active","expired","purged","burned","blocked","deleted"]}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"transfers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"slug":{"type":"string","pattern":"^[2-9a-km-np-zA-HJ-NP-Z]{12}$"},"url":{"type":"string","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$"},"state":{"type":"string","enum":["draft","uploading","active","expired","purged","burned","blocked","deleted"]},"region":{"type":"string","enum":["eu","us"]},"title":{"type":["string","null"]},"total_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"file_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"burn":{"type":"boolean"},"e2ee":{"type":"boolean"},"pinned":{"type":"boolean"},"pass":{"anyOf":[{"type":"string","enum":["pass_50","pass_100","pass_250"]},{"type":"null"}]},"paid":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","slug","url","state","region","title","total_bytes","file_count","burn","e2ee","pinned","pass","paid","created_at","expires_at"],"additionalProperties":false}},"next_cursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":512},{"type":"null"}]}},"required":["transfers","next_cursor"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/transfers/{id}":{"get":{"operationId":"getTransfer","summary":"Get a transfer with its files and downloads","tags":["Transfers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"transfer":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"slug":{"type":"string","pattern":"^[2-9a-km-np-zA-HJ-NP-Z]{12}$"},"url":{"type":"string","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$"},"state":{"type":"string","enum":["draft","uploading","active","expired","purged","burned","blocked","deleted"]},"region":{"type":"string","enum":["eu","us"]},"title":{"type":["string","null"]},"total_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"file_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"burn":{"type":"boolean"},"e2ee":{"type":"boolean"},"pinned":{"type":"boolean"},"pass":{"anyOf":[{"type":"string","enum":["pass_50","pass_100","pass_250"]},{"type":"null"}]},"paid":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","slug","url","state","region","title","total_bytes","file_count","burn","e2ee","pinned","pass","paid","created_at","expires_at"],"additionalProperties":false},"files":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"idx":{"type":"integer","minimum":0,"maximum":9007199254740991},"path":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"mime":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}]},"state":{"type":"string","enum":["pending","uploading","stored","hashed","aborted"]},"sha256":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}]}},"required":["id","idx","path","size","mime","state","sha256"],"additionalProperties":false}},"files_total":{"type":"integer","minimum":0,"maximum":9007199254740991},"downloads":{"type":"object","properties":{"started":{"type":"integer","minimum":0,"maximum":9007199254740991},"completed":{"type":"integer","minimum":0,"maximum":9007199254740991},"last_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["started","completed","last_at"],"additionalProperties":false},"tracked_links":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["transfer","files","files_total","downloads"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteTransfer","summary":"Delete a transfer and end its link","tags":["Transfers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"204":{"description":"Done"},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/transfers/{id}/uploads":{"post":{"operationId":"mintUploads","summary":"Get upload URLs for the files of a transfer","tags":["Uploads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"objects":{"type":"array","items":{"type":"object","properties":{"object_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"file_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"seq":{"type":"integer","minimum":0,"maximum":9007199254740991},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"multipart":{"type":"boolean"},"part_size":{"type":"integer","minimum":0,"maximum":9007199254740991},"part_count":{"type":"integer","minimum":1,"maximum":10000},"last_part_size":{"type":"integer","minimum":0,"maximum":9007199254740991},"cap":{"type":"integer","minimum":1,"maximum":10000},"token":{"type":"string","minLength":16,"maxLength":4096},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"windowed":{"type":"boolean"}},"required":["object_id","file_id","seq","size","multipart","part_size","part_count","last_part_size","cap","token","expires_at"],"additionalProperties":false}},"awaiting_payment":{"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"awaiting_window":{"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}},"required":["objects","awaiting_payment"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file_ids":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}},"required":["file_ids"]}}}}}},"/api/v1/uploads/{object_id}":{"get":{"operationId":"renewUpload","summary":"Renew the upload URL of one object","tags":["Uploads"],"parameters":[{"name":"object_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"object_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"file_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"seq":{"type":"integer","minimum":0,"maximum":9007199254740991},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"multipart":{"type":"boolean"},"part_size":{"type":"integer","minimum":0,"maximum":9007199254740991},"part_count":{"type":"integer","minimum":1,"maximum":10000},"last_part_size":{"type":"integer","minimum":0,"maximum":9007199254740991},"cap":{"type":"integer","minimum":1,"maximum":10000},"token":{"type":"string","minLength":16,"maxLength":4096},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"windowed":{"type":"boolean"}},"required":["object_id","file_id","seq","size","multipart","part_size","part_count","last_part_size","cap","token","expires_at"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/uploads/{object_id}/parts":{"get":{"operationId":"listUploadParts","summary":"List the parts already stored for one object","tags":["Uploads"],"parameters":[{"name":"object_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"object_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"parts":{"maxItems":10000,"type":"array","items":{"type":"object","properties":{"n":{"type":"integer","minimum":1,"maximum":10000},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"receipt":{"type":"string","minLength":16,"maxLength":4096}},"required":["n","size","receipt"],"additionalProperties":false}}},"required":["object_id","parts"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/transfers/{id}/files/{fid}/complete":{"post":{"operationId":"completeFile","summary":"Complete a file once all its parts are stored","tags":["Uploads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"fid","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"file_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"state":{"type":"string","enum":["pending","uploading","stored","hashed","aborted"]},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["file_id","state","size"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"objects":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"object","properties":{"object_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"receipts":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","minLength":16,"maxLength":4096}}},"required":["object_id","receipts"]}},"crc32":{"type":"integer","minimum":0,"maximum":4294967295}},"required":["objects"]}}}}}},"/api/v1/transfers/{id}/finalize":{"post":{"operationId":"finalizeTransfer","summary":"Finalize a transfer so its link goes live","tags":["Transfers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"transfer":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"slug":{"type":"string","pattern":"^[2-9a-km-np-zA-HJ-NP-Z]{12}$"},"url":{"type":"string","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$"},"state":{"type":"string","enum":["draft","uploading","active","expired","purged","burned","blocked","deleted"]},"region":{"type":"string","enum":["eu","us"]},"title":{"type":["string","null"]},"total_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"file_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"burn":{"type":"boolean"},"e2ee":{"type":"boolean"},"pinned":{"type":"boolean"},"pass":{"anyOf":[{"type":"string","enum":["pass_50","pass_100","pass_250"]},{"type":"null"}]},"paid":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","slug","url","state","region","title","total_bytes","file_count","burn","e2ee","pinned","pass","paid","created_at","expires_at"],"additionalProperties":false}},"required":["transfer"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/t/{slug}/unlock":{"post":{"operationId":"unlock","summary":"Open a link's password, email code or key gate; a key stands in for the human check","tags":["Downloads"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[2-9a-km-np-zA-HJ-NP-Z]{12}$"}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"grant":{"anyOf":[{"type":"string","minLength":16,"maxLength":4096},{"type":"null"}]},"remaining":{"type":"array","items":{"type":"string","enum":["password","email_code","turnstile","key"]}},"code_sent":{"type":"boolean"},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"page":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["pending","locked","ready","claimed","expired","burned","blocked","deleted","not_found"]},"slug":{"type":"string","pattern":"^[2-9a-km-np-zA-HJ-NP-Z]{12}$"},"host_kind":{"type":"string","enum":["link","customer"]},"branding":{"anyOf":[{"type":"object","properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"logo_url":{"anyOf":[{"type":"string","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$"},{"type":"null"}]},"accent":{"anyOf":[{"type":"string","pattern":"^#[0-9a-f]{6}$"},{"type":"null"}]}},"required":["name","logo_url","accent"],"additionalProperties":false},{"type":"null"}]},"footer":{"type":"boolean"},"transfer":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"title":{"type":["string","null"]},"message":{"type":["string","null"]},"sender":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]}},"required":["name","email"],"additionalProperties":false},"file_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"total_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"region":{"type":"string","enum":["eu","us"]},"e2ee":{"type":"boolean"},"burn":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"gates":{"type":"array","items":{"type":"string","enum":["password","email_code","turnstile","key"]}},"password":{"anyOf":[{"type":"object","properties":{"kdf":{"type":"string","const":"pbkdf2-sha256+hkdf"},"iterations":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"salt":{"type":"string","pattern":"^[A-Za-z0-9_-]{22}$"}},"required":["kdf","iterations","salt"],"additionalProperties":false},{"type":"null"}]},"files":{"anyOf":[{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"path":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"warn":{"type":"boolean"},"mime":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}]},"preview_url":{"anyOf":[{"type":"string","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$"},{"type":"null"}]},"view":{"anyOf":[{"type":"string","enum":["image","video","audio","pdf"]},{"type":"null"}]}},"required":["id","path","size","mime","preview_url"],"additionalProperties":false}},{"type":"null"}]},"files_truncated":{"type":"boolean"},"warn":{"type":"string","enum":["files","names"]},"zip":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["name","size"],"additionalProperties":false},{"type":"null"}]},"encryption":{"anyOf":[{"type":"object","properties":{"scheme":{"type":"string","const":"sbl-e2ee-v1"},"passphrase":{"anyOf":[{"type":"object","properties":{"kdf":{"type":"string","const":"pbkdf2-sha256"},"iterations":{"type":"integer","minimum":600000,"maximum":2000000},"salt":{"type":"string","pattern":"^[A-Za-z0-9_-]{22}$"}},"required":["kdf","iterations","salt"],"additionalProperties":false},{"type":"null"}]}},"required":["scheme","passphrase"],"additionalProperties":false},{"type":"null"}]}},"required":["id","title","message","sender","file_count","total_bytes","region","e2ee","burn","created_at","expires_at","gates","password","files","files_truncated","zip"],"additionalProperties":false},{"type":"null"}]},"e2ee":{"type":"boolean"}},"required":["state","slug","host_kind","branding","footer","transfer"],"additionalProperties":false},{"type":"null"}]}},"required":["grant","remaining","code_sent","expires_at","page"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"gate":{"type":"string","const":"password"},"verifier":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"},"turnstile_token":{"type":"string","minLength":1,"maxLength":2048}},"required":["gate","verifier"]},{"type":"object","properties":{"gate":{"type":"string","const":"email"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"turnstile_token":{"type":"string","minLength":1,"maxLength":2048}},"required":["gate","email"]},{"type":"object","properties":{"gate":{"type":"string","const":"key"},"verifier":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"}},"required":["gate","verifier"]},{"type":"object","properties":{"gate":{"type":"string","const":"email_code"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"code":{"type":"string","pattern":"^(?:\\d{6}|\\d{8})$"},"turnstile_token":{"type":"string","minLength":1,"maxLength":2048}},"required":["gate","email","code"]},{"type":"object","properties":{"gate":{"type":"string","const":"resume"}},"required":["gate"]}]}}}}}},"/api/v1/t/{slug}/claim":{"post":{"operationId":"claim","summary":"Get download URLs for a link's files; a key stands in for the human check","tags":["Downloads"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[2-9a-km-np-zA-HJ-NP-Z]{12}$"}}],"responses":{"201":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"files":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"file_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"url":{"type":"string","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"etag":{"type":"string","minLength":1,"maxLength":256}},"required":["file_id","url","size","etag"],"additionalProperties":false}},"zip":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$"},"name":{"type":"string","minLength":1,"maxLength":255},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"etag":{"type":"string","minLength":1,"maxLength":256}},"required":["url","name","size","etag"],"additionalProperties":false},{"type":"null"}]},"session_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"session_key":{"type":"string","minLength":32,"maxLength":256}},"required":["expires_at","files","zip","session_id","session_key"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["engine","native","zip","api"]},"file_ids":{"maxItems":1000,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"zip":{"default":false,"type":"boolean"},"turnstile_token":{"type":"string","minLength":1,"maxLength":2048},"session_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{43,256}$"},"inline":{"type":"boolean"}},"required":["mode"]}}}}}},"/api/v1/transfers/{id}/manifest":{"put":{"operationId":"putE2eeManifest","summary":"Store the sealed file list of an end-to-end encrypted transfer","tags":["Uploads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["size","sha256"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sealed":{"type":"string","minLength":38,"maxLength":22369622,"pattern":"^[A-Za-z0-9_-]+$"}},"required":["sealed"]}}}}}},"/api/v1/me":{"get":{"operationId":"me","summary":"Show the account, workspace, plan and limits a key acts for","tags":["Account"],"parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"string","const":"1"}}],"responses":{"200":{"description":"Done","content":{"application/json":{"schema":{"type":"object","properties":{"account":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"anyOf":[{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]}},"required":["id","email"],"additionalProperties":false},{"type":"null"}]},"workspace":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","maxLength":120},"role":{"type":"string","enum":["owner","admin","member"]}},"required":["id","name","role"],"additionalProperties":false},{"type":"null"}]},"plan":{"type":"string","enum":["free","pass_50","pass_100","pass_250","pro","team","agency"]},"limits":{"type":"object","properties":{"max_transfer_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"max_expiry_days":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"pinned_links":{"type":"boolean"},"storage_quota_bytes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"active_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"daily_bytes_left":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"active_links_left":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["max_transfer_bytes","max_expiry_days","pinned_links","storage_quota_bytes","active_bytes","daily_bytes_left","active_links_left"],"additionalProperties":false},"regions":{"minItems":1,"type":"array","items":{"type":"string","enum":["eu","us"]}},"suggested_region":{"type":"string","enum":["eu","us"]},"footer":{"type":"boolean"},"features":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"boolean"}},"billing":{"anyOf":[{"type":"object","properties":{"plan":{"type":"string","enum":["free","pro","team","agency"]},"status":{"type":"string","enum":["none","active","past_due","canceled","lapsed"]},"interval":{"anyOf":[{"type":"string","enum":["monthly","yearly"]},{"type":"null"}]},"period_end":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"cancel_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"grace_until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"can_manage":{"type":"boolean"},"extra_domains":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["plan","status","interval","period_end","cancel_at","grace_until","can_manage"],"additionalProperties":false},{"type":"null"}]}},"required":["account","workspace","plan","limits","regions","footer","features"],"additionalProperties":false}}}},"4XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"5XX":{"description":"An error with a stable code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"webhooks":{"transfer.created":{"post":{"operationId":"webhook_transfer_created","summary":"A transfer finished uploading and its link works.","parameters":[{"name":"sendbylink-signature","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of t.body keyed with the endpoint secret>","schema":{"type":"string"}},{"name":"idempotency-key","in":"header","required":true,"description":"The event id, the same on every retry","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"type":{"type":"string","const":"transfer.created"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"workspace_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"data":{"type":"object","properties":{"transfer":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"state":{"type":"string","enum":["draft","uploading","active","expired","purged","burned","blocked","deleted"]},"link":{"type":"string","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$"},"region":{"type":"string","enum":["eu","us"]},"total_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"file_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"e2ee":{"type":"boolean"},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","state","link","region","total_bytes","file_count","e2ee","expires_at"],"additionalProperties":false}},"required":["transfer"],"additionalProperties":false}},"required":["id","type","created_at","workspace_id","data"],"additionalProperties":false}}}},"responses":{"2XX":{"description":"Received. Anything else is retried"}}}},"transfer.downloaded":{"post":{"operationId":"webhook_transfer_downloaded","summary":"A recipient downloaded every file of a transfer.","parameters":[{"name":"sendbylink-signature","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of t.body keyed with the endpoint secret>","schema":{"type":"string"}},{"name":"idempotency-key","in":"header","required":true,"description":"The event id, the same on every retry","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"type":{"type":"string","const":"transfer.downloaded"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"workspace_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"data":{"type":"object","properties":{"transfer":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"state":{"type":"string","enum":["draft","uploading","active","expired","purged","burned","blocked","deleted"]},"link":{"type":"string","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$"},"region":{"type":"string","enum":["eu","us"]},"total_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"file_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"e2ee":{"type":"boolean"},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","state","link","region","total_bytes","file_count","e2ee","expires_at"],"additionalProperties":false},"download":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"completed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","completed_at"],"additionalProperties":false}},"required":["transfer","download"],"additionalProperties":false}},"required":["id","type","created_at","workspace_id","data"],"additionalProperties":false}}}},"responses":{"2XX":{"description":"Received. Anything else is retried"}}}},"transfer.expired":{"post":{"operationId":"webhook_transfer_expired","summary":"A transfer reached its expiry date and its link stopped working.","parameters":[{"name":"sendbylink-signature","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of t.body keyed with the endpoint secret>","schema":{"type":"string"}},{"name":"idempotency-key","in":"header","required":true,"description":"The event id, the same on every retry","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"type":{"type":"string","const":"transfer.expired"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"workspace_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"data":{"type":"object","properties":{"transfer":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"state":{"type":"string","enum":["draft","uploading","active","expired","purged","burned","blocked","deleted"]},"link":{"type":"string","maxLength":8192,"pattern":"^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$"},"region":{"type":"string","enum":["eu","us"]},"total_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"file_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"e2ee":{"type":"boolean"},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","state","link","region","total_bytes","file_count","e2ee","expires_at"],"additionalProperties":false}},"required":["transfer"],"additionalProperties":false}},"required":["id","type","created_at","workspace_id","data"],"additionalProperties":false}}}},"responses":{"2XX":{"description":"Received. Anything else is retried"}}}},"submission.received":{"post":{"operationId":"webhook_submission_received","summary":"Someone sent files through one of your receive links.","parameters":[{"name":"sendbylink-signature","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of t.body keyed with the endpoint secret>","schema":{"type":"string"}},{"name":"idempotency-key","in":"header","required":true,"description":"The event id, the same on every retry","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"type":{"type":"string","const":"submission.received"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"workspace_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"data":{"type":"object","properties":{"submission":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"receive_link_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"transfer_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"total_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"file_count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","receive_link_id","transfer_id","total_bytes","file_count"],"additionalProperties":false}},"required":["submission"],"additionalProperties":false}},"required":["id","type","created_at","workspace_id","data"],"additionalProperties":false}}}},"responses":{"2XX":{"description":"Received. Anything else is retried"}}}},"payment.received":{"post":{"operationId":"webhook_payment_received","summary":"A payment for a pass or a subscription went through.","parameters":[{"name":"sendbylink-signature","in":"header","required":true,"description":"t=<unix seconds>,v1=<hex HMAC-SHA256 of t.body keyed with the endpoint secret>","schema":{"type":"string"}},{"name":"idempotency-key","in":"header","required":true,"description":"The event id, the same on every retry","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"type":{"type":"string","const":"payment.received"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"workspace_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"data":{"type":"object","properties":{"payment":{"type":"object","properties":{"kind":{"type":"string","enum":["pass","subscription"]},"pass_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"null"}]},"transfer_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"type":"null"}]},"amount_cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}]}},"required":["kind","pass_id","transfer_id","amount_cents","currency"],"additionalProperties":false}},"required":["payment"],"additionalProperties":false}},"required":["id","type","created_at","workspace_id","data"],"additionalProperties":false}}}},"responses":{"2XX":{"description":"Received. Anything else is retried"}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key, sbl_live_ and 32 letters and digits"}},"schemas":{"Error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request","invalid_body","invalid_query","part_size_mismatch","unauthorized","token_invalid","token_expired","reauth_required","payment_required","forbidden","origin_mismatch","feature_disabled","plan_limit","quota_exceeded","gate_required","gate_failed","turnstile_failed","ip_not_allowed","not_found","method_not_allowed","conflict","plan_change_unavailable","claimed","upload_incomplete","subscription_active","checkout_open","workspace_has_members","claim_not_held","claim_completed","transfer_inactive","burn_off","expired","burned","blocked","deleted","payload_too_large","unsupported_media_type","range_not_satisfiable","rate_limited","too_many_attempts","slots_full","internal","not_implemented","upstream_error","unavailable"]},"message":{"type":"string","maxLength":2000},"request_id":{"type":"string","maxLength":128}},"required":["code","message","request_id"],"additionalProperties":false}}}}