Skip to content

Get Asset

Request

Use this API to generate a signed URL for downloading content. Use contentUrl in response as it used is for downloading content.

Scope

Client application must have 'app.conversation.conversationmgr.interaction.manage' or 'app.conversation.conversationmgr.interaction.read' assigned to call this API

Security
oAuthClient(Required scopes:
https://api.egain.cloud/auth/.default
)
Path
idstring, = 36 charactersrequired

id of object

Example:7b6c5fff-036e-4a40-b68a-a67c592fc079
curl -i -X GET \
  https://api.egain.cloud/conversation/conversationmgr/v3/assets/7b6c5fff-036e-4a40-b68a-a67c592fc079 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
idstring, = 36 characters

Unique id generated for asset.

namestring, [ 1 .. 255 ] characters

name of asset with extension.

sizeinteger, <= 2147483648
contentTypestring
contentUrlExpirystring, (date-time)

Signed URL expiry time in GMT

Example:"2020-08-11T03:19:21.070Z"
contentUrlstring

URL to upload or download the content

Response
{ "id": "7b6c5fff-036e-4a40-b68a-a67c592fc079", "name": "bird.jpeg", "contentType": "image/jpeg", "size": 17245, "contentUrl": "http://storage-ext.egain.cloud/core/assetmgr/v3/chat.attachments/download?signature=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiI5OThiNjFjMWRlYmM0OTRiYWVkNjhmNTkxM2U5", "contentUrlExpiry": "2023-01-13T16:45:27.457Z" }