GET
/dashboard/tickets/attachments/{id} Get attachment
Downloads an attachment from a ticket reply.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | integer | path | The attachment ID |
Request
curl -X GET "https://api.royalehosting.net/dashboard/tickets/attachments/{id}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://api.royalehosting.net/dashboard/tickets/attachments/{id}", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.get(
"https://api.royalehosting.net/dashboard/tickets/attachments/{id}",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())