Create agency upload

Changed on

Signs a 15-minute, size-limited upload form for an API integration with persistent agency storage. Call this from your server after checking which app member owns the file. POST multipart/form-data to uploadUrl with every uploadFields entry followed by the file field. Uploads are limited to 20 MiB. Pass resource as a sandboxFiles path when starting a completion.

post/create_agency_upload

Request

  • Base URL
    https://api-integration-v2-qd6wo466iq-uc.a.run.app
  • URL
    https://api-integration-v2-qd6wo466iq-uc.a.run.app/create_agency_upload
  • Auth
    HTTP bearer

Request body

apiIntegrationIdstring required
folderstring required

Canonical folder below /app/mnt/, chosen by your server for the app member.

filenamestring required

A nonblank filename without directory separators or control characters.

contentTypestring required
sizeBytesinteger required

Number of file bytes to upload.

Example request

{
  "contentType": "image/png"
}

Response

Upload destination reserved.

resourcestring required

Persistent /app/mnt/ file path for sandboxFiles.

uploadUrlstring uri required

Short-lived signed POST destination. Keep it on your server.

uploadFieldsobject required

Form fields to include unchanged before the file field.

Changes