GET/bots/{botId}/attachments/{fileId}

Downloads a file or an image of a bot.

Note

  • For how to download content using the API, see Upload or Download Files.
  • Auto redirect should be off when downloading content.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

bot.message
bot

HTTP Request

GEThttps://www.worksapis.com/v1.0/bots/{botId}/attachments/{fileId}

Path Parameters

ParameterTypeDescription
botId integer 

Bot ID


required
example : 2000001
format : int64 
fileId string 

File ID


required
example : jp1.1628695315008671000.1628781715.0.1000001.0.0.0 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 302

Returns the file access URL in the Location header.