Photo

Represents the photo of an applicant.

URI
/api/v10/applicants/ID/photo

GET Get a photo

Retrieve the photo data of an applicant.

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

Parameters

NameRequired/OptionalDescriptionNotes
sizeOptionalThe requested transformed size of the photo. Allowed values: S, M, L, R, F.The default value is F, which applies the existing transformations. The R value can skip all transformations and return a 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/v10/applicants/123/photo?size=S"

Response headers

HeaderValueDescription
Content-Typeimage/jpegThe media type of the resource
Content-Length1234The size 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