Contact Image

Show the contact image

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

A contact optionally has an associated image. The image is served separately from the main contact object because it is potentially very large, and because we find it easier to work with the raw binary data.

To GET an image, you must include an Accept header to indicate the desired image format. The supported values for the header are: image/jpeg, image/png, and application/octet-stream.

If you request image/jpeg or image/png, and the image is not already stored in that format, the image data will be converted on-the-fly for the response

If you request application/octet-stream, you will receive the image data exactly as it is stored by Daylite. The most common formats that Daylite uses are TIFF, JPEG, and PNG; but any format that is supported by Cocoa's image classes are possible.

📘

Image Formats

Converting between different image formats may cause the image to degrade in quality. If you are capable of accepting arbitrary image data, we recommend that you request application/octet-stream for the image format.

🚧

Response Content-Type

Unsuccessful requests will have a Content-Type of application/json, just as you would receive from other parts of the API.

Path Params
int32
required

The contact identifier

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json