Skip to content
View as Markdown

SloeDoc: start an upload.

POST/v1/abilities/document.upload

SloeDoc: start an upload. Returns a documentId and a one-shot upload URL (PUT the bytes with the same content type within 15 minutes). Files are kept in the EU; unattached uploads are deleted after 48 hours. Types: JPEG, PNG, WebP, HEIC, PDF; up to 15 MB.

Required
Yes
Content type
  • application/json
  • inputDocumentUploadInputrequired
    Show 5 properties
    • filenamestringrequired
    • contentTypestringrequired
      Allowed values: image/jpeg, image/png, image/webp, image/heic, image/heif, application/pdf
    • sizenumberrequired
    • purposestringoptional

      label from the calling app, e.g. expense_receipt

    • sourceAppstringoptional
  • contextCallContextoptional

    Optional call context. The tenant always comes from the credential: tenantId is honoured only by a credential allowed to address sub-tenants, and then nests under the credential’s own tenant.

    Show 3 properties
    • tenantIdstringoptional

      Sub-tenant to act for (sub-tenant credentials only).

    • runIdstringoptional

      The trust run (from trust.preflight) this call executes under.

    • verticalIdstringoptional

      Vertical to attribute created records to.

Schema shown for 200 · application/json

  • result

    The ability’s return value. Its shape depends on the ability.