Photo

Represents the applicant’s photo.

URI
/api/v9/applicants/ID/photo

GET Get a photo

Return the applicant’s photo data.

Syntax
GET /api/v9/applicants/123/photo
Host: apply.example.edu
Authorization: DREAM apikey="..."

Parameters

NameRequired/OptionalDescriptionNotes
sizeOptionalRequested transformed size of photo, possible values are S, M, L, R, F.The default value is F which applies the existing transformations, while R can skip all transformations and return the raw image.

Example request

Request
curl
curl \
  -X GET \
  -H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
  -o ~/Downloads/photo_123.jpeg \
  "https://apply.example.edu/api/v9/applicants/123/photo"

Response headers

HeaderValueDescription
Content-Typeimage/jpegMedia type of the resource
Content-Length1234Size of the response body in bytes

Response codes

Response codeDescription
200 OKThe applicant’s binary photo was successfully returned
404 Not FoundThe applicant does not have a photo