Saltar al contenido principal
POST
Start a file upload

Autorizaciones

Authorization
string
header
requerido

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.

Encabezados

LobbyStack-Business
string<uuid>

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.

Cuerpo

application/json
file_name
string
requerido

The file's name, such as prices.pdf.

Required string length: 1 - 255
Pattern: [^.]
content_type
enum<string>
requerido

PDF, Word (DOCX), plain text, Markdown, or a JPEG, PNG, WebP or TIFF image.

Opciones disponibles:
application/pdf,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
text/plain,
text/markdown,
image/jpeg,
image/png,
image/webp,
image/tiff
length
integer
requerido

The file's size in bytes, up to 10 MB.

Rango requerido: x <= 10485760
checksum_sha256
string
requerido

The base64-encoded SHA-256 of the file's bytes.

Pattern: ^[A-Za-z0-9+/]{43}=$

Respuesta

Created

data
object
requerido

Where to send a file before completing its upload.