Content

Rich Content refers to content larger than 2KB; such content must be stored on a separate server rather than within a message itself.

The following JSON represents a Content object:

{
  "id": "layer:///content/7a0aefb8-3c97-11e4-baad-164230d1df67",
  "download_url": "http://google-testbucket.storage.googleapis.com/some/download/path",
  "expiration": "2014-09-09T04:44:47+00:00",
  "refresh_url": "https://api.layer.com/content/7a0aefb8-3c97-11e4-baad-164230d1df67",
  "size": 172114124
}
Name Type Description
id string Layer ID to identify the Content
download_url string URL to download the content payload
expiration string ISO 8601–encoded timestamp at which the download_url will expire
refresh_url string URL for refreshing the download_url when it expires
size integer Size (in bytes) of the content payload