Sending

    Upload media

    POSThttps://api.batzap.com/v1/media

    Returns a pre-signed URL to upload a file directly to storage. Then pass the returned s3_key to Send a message or Add a private note.

    Upload with PUT <presigned_url>, the raw file as the body and a Content-Type header equal to mimetype. The URL expires in 5 minutes.

    Accepted: JPEG, PNG, GIF and WebP images; MP4, WebM and QuickTime video; OGG, MP3 and WebM audio; PDF, CSV, Word, Excel, PowerPoint, plain text and subtitle files.

    Body parameters

    mimetypestringrequired

    Type of the file you are about to upload, e.g. application/pdf.

    Errors

    400
    Missing mimetype or Unsupported file format.

    Plus the errors every route can return: see Errors.