Attachments
API version
Select a version to change the base URI
in syntax and code examples. Learn about versions:
in syntax and code examples. Learn about versions
Represents a list of attachments to an email.
URI
/api/v9/applicants/ID/emails/ID/attachmentsGET List email attachments
Get a list of email attachments.
Syntax
GET /api/v9/applicants/123/emails/1/attachments
Host: apply.example.edu
Authorization: DREAM apikey="..."Example request
Request
curl
curl \
-X GET \
-H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
"https://apply.example.edu/api/v9/applicants/123/emails/321/attachments"Response headers
| Header | Value | Description |
|---|---|---|
Content-Type | application/json; charset=utf-8 | Media type of the resource |
X-Count | 1 | Number of returned attachments |
Response codes
| Response code | Description |
|---|---|
200 OK | The list of email attachments was successfully returned |
Example response
Response
{
"0": {
"name": "greek-1.jpg",
"size": 31334
}
}