Start a file upload
Reserves an upload for a document up to 10 MB and returns where to send it. Send the file’s bytes with PUT to upload_url, with exactly upload_headers, within about 15 minutes. Then call POST /knowledge/uploads//complete. An unfinished upload expires after a day.
Autorisations
An API key from Settings > API keys (lsk_...), which acts on its own business, or a platform key from the PLATFORM_API_KEYS setting (lsp_...), which onboards and manages businesses. Scopes: business:read, business:write, calls:read, contacts:read, contacts:write, appointments:read, appointments:write, messages:read, knowledge:read, knowledge:write, webhooks:manage, billing:manage, phone_numbers:manage, team:manage, businesses:create, users:create. Only platform keys can hold businesses:create and users:create.
En-têtes
The business a platform key acts on. Required with a platform key. A per-business key may leave it out; if it sends one, it must be the key's own business.
Corps
The file's name, such as prices.pdf.
1 - 255[^.]PDF, Word (DOCX), plain text, Markdown, or a JPEG, PNG, WebP or TIFF image.
application/pdf, application/vnd.openxmlformats-officedocument.wordprocessingml.document, text/plain, text/markdown, image/jpeg, image/png, image/webp, image/tiff The file's size in bytes, up to 10 MB.
x <= 10485760The base64-encoded SHA-256 of the file's bytes.
^[A-Za-z0-9+/]{43}=$Réponse
Created
Where to send a file before completing its upload.