media
Start an upload
Reserves a media id and returns a signed URL for the bytes. Upload in three steps:
POST /api/mediawith the mime type. You get back aMediaand anupload.PUTthe raw bytes toupload.url. NoAuthorizationheader — the URL is signed.- Send the message with the media id in
mediaIds.
The media stays pending until the bytes are in storage. POST /api/chat/send
confirms them for you, so step 3 needs no extra call. Pending media that is never
uploaded is dropped from the message instead of failing the send.
upload.url expires in 15 minutes. Start again if it does.
POST
Start an upload
Authorizations
Supabase access token: Authorization: Bearer <token>
Body
application/json
Required string length:
1 - 255Required range:
1 <= x <= 9007199254740991Required range:
1 <= x <= 9007199254740991Required range:
1 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991Maximum string length:
255