Get attachment public URL
const url = 'https://localhost:10001/api/v1/attachments/1/url';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:10001/api/v1/attachments/1/url \ --header 'Authorization: <Authorization>'Generate a time-limited public URL for the attachment file
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Attachment ID
Query Parameters
Section titled “Query Parameters ”Expiration in minutes (default: 60)
Responses
Section titled “ Responses ”Signed URL and its expiration window
A time-limited signed URL for an attachment, and how long it stays valid
object
Rendered as ”
Example
{ "expiresIn": "60 minutes"}Bad request - Invalid attachment ID or expiration time
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Unauthorized - Missing or invalid token
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Attachment not found
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Internal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}