REST API Reference//
- Retrieves a ticket attachment by its ID
Retrieves a paginated list of tickets based on the batch request
Retrieves a ticket by its Id
Retrieves a ticket attach...
Security
oauth2
- https://.app.willowinc.com/api/v3https://.app.willowinc.com/api/v3/tickets/{ticketId}/attachments/{attachmentId}
const ticketId = 'YOUR_ticketId_PARAMETER';
const attachmentId = 'YOUR_attachmentId_PARAMETER';
const instance = 'YOUR_instance_PARAMETER';
const resp = await fetch(
`https://${instance}.app.willowinc.com/api/v3/tickets/${ticketId}/attachments/${attachmentId}`,
{
method: 'GET',
headers: {
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
}
}
);
const data = await resp.text();
console.log(data);Response
{ "fileContents": "string", "contentType": null, "fileDownloadName": null, "lastModified": null, "entityTag": { "property1": null, "property2": null }, "enableRangeProcessing": true }