HydraCore
API by router

Chat media

GET
/internal/v1/instances/{instance_id}/chat/media/{media_id}

Path Parameters

instance_id*Instance Id
Formatuuid
media_id*Media Id

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/chat/media/string'
Example Response
null

Upload Chat Media

POST
/v1/instances/{instance_id}/chat/media

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

instance_id*Instance Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Request Body

multipart/form-data
  1. body
file*File
Formatbinary

Response Body

Successful Response

application/json
  1. response
content_type*Content Type
media_id*Media Id
size_bytes*Size Bytes
storage_key*Storage Key
url?string|null
Example Request
curl -X POST 'https://example.com/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/chat/media' \  -F 'file=string'
Example Response
{  "content_type": "string",  "media_id": "string",  "size_bytes": 0,  "storage_key": "string",  "url": "string"}

Download Chat Media

GET
/v1/instances/{instance_id}/chat/media/{media_id}

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

instance_id*Instance Id
Formatuuid
media_id*Media Id

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X GET 'https://example.com/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/chat/media/string'
Example Response
null