Knowledge — Files

Upload file

file_name must carry a supported extension (.pdf .doc .docx .png .jpg .jpeg; .csv and .xlsx only when enabled for the account), the binary must match it, and the file must be 100 MB or smaller.

Known product gap: the passthrough currently rejects multipart uploads with 400 JSON Schema Validation Error — Failed to parse the request body parameters, and rejects JSON with 400 Unsupported content type: application/json. No upload succeeds through the wrapper today.

post/partner/app/{appId}/bizai/agent_config/files

Request

  • Base URL
    https://partner.gupshup.io
  • URL
    https://partner.gupshup.io/partner/app/{appId}/bizai/agent_config/files
  • Auth
    API key in header Authorization

Request body multipart/form-data

file_namestring required
filestring binary required

Example request

{
  "file_name": "pricing.pdf"
}

Response

File uploaded.

idstring required

Meta resource id.

file_namestring required

Example response

{
  "id": "pfbid0GNkExampleExampleExample"
}

Changes

No recorded changes to this operation across all 1 revision of this API.