Skip to content
English
  • There are no suggestions because the search field is empty.

Get attachment public URL

GET /api/v1/attachments/{attachmentId}/url Select code sample Fetch cURL
const url = 'https://localhost:10001/api/v1/attachments/1/url';const options = {method: 'GET', headers: {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: 
  
   '
  

Generate a time-limited public URL for the attachment file

Authorizations

Section titled “Authorizations ”

Parameters

Section titled “ Parameters ”

Path Parameters

Section titled “Path Parameters ” attachmentId required integer

Attachment ID

Query Parameters

Section titled “Query Parameters ” expiration integer

Expiration in minutes (default: 60)

Responses

Section titled “ Responses ”

200

Section titled “200 ”

Signed URL and its expiration window

Media type application/json object key additional properties string
Example generated
{  "additionalProperty": "example"}

400

Section titled “400 ”

Bad request - Invalid attachment ID or expiration time

Media type application/json object key additional properties string
Example generated
{  "additionalProperty": "example"}

401

Section titled “401 ”

Unauthorized - Missing or invalid token

Media type application/json object key additional properties string
Example generated
{  "additionalProperty": "example"}

404

Section titled “404 ”

Attachment not found

Media type application/json object key additional properties string
Example generated
{  "additionalProperty": "example"}

500

Section titled “500 ”

Internal server error

Media type application/json object key additional properties string
Example generated
{  "additionalProperty": "example"}
Previous
Download attachment public URL
Next
List all organizations