Appearance
gallery
Example
json
{
"id": 1,
"name": "Portfolio",
"description": null,
"media_type": "image",
"model_id": 1,
"model_gallery_type_id": 1,
"model_division_type_id": null,
"office_id": null,
"is_published": 0,
"sort_order": 1,
"created_at": "2025-01-31 12:00:00",
"updated_at": "2025-01-31 12:00:00",
"last_viewed_at": "2025-01-31 12:00:00",
"url": "/portfolio",
"model_division_name": null,
"model_division_url": null,
"office_name": null,
"cover_url": "https://cdn.syngency.com/[agencyId]/models/[modelId]/galleries/[galleryId]/small/[fileId].jpg?[cacheString]",
"cover_small_url": "https://cdn.syngency.com/[agencyId]/models/[modelId]/galleries/[galleryId]/small/[fileId].jpg?[cacheString]",
"cover_medium_url": "https://cdn.syngency.com/[agencyId]/models/[modelId]/galleries/[galleryId]/medium/[fileId].jpg?[cacheString]",
"cover_large_url": "https://cdn.syngency.com/[agencyId]/models/[modelId]/galleries/[galleryId]/large/[fileId].jpg?[cacheString]",
"files": [{
"id": 1,
"model_gallery_id": 1,
"external_id": null,
"external_source": null,
"ext": "png",
"type": "image/png",
"size": 1,
"width": null,
"height": null,
"sort_order": 1,
"credit": null,
"user_id": 1,
"is_processing": null,
"created_at": "2025-01-31 12:00:00",
"updated_at": "2025-01-31 12:00:00",
"filename": "[fileId].jpg",
"media_type": "image",
"key": "[agencyId]/models/[modelId]/galleries/[galleryId]/[fileId].jpg",
"url": "https://cdn.syngency.com/[agencyId]/models/[modelId]/galleries/[galleryId]/[fileId].jpg?[cacheString]",
"small_url": "https://cdn.syngency.com/[agencyId]/models/[modelId]/galleries/[galleryId]/small/[fileId].jpg?[cacheString]",
"medium_url": "https://cdn.syngency.com/[agencyId]/models/[modelId]/galleries/[galleryId]/medium/[fileId].jpg?[cacheString]",
"large_url": "https://cdn.syngency.com/[agencyId]/models/[modelId]/galleries/[galleryId]/large/[fileId].jpg?[cacheString]",
"aspect_ratio": 0.59,
"is_landscape": null,
"is_image": 0
}]
}Properties
id
integername
stringdescription
stringmedia_type
stringMedia type — image, video or audio.
model_id
integermodel_gallery_type_id
integerThe ID of the gallery type, created in Settings > Types.
model_division_type_id
integerThe ID of the assigned division type, created in Settings > Types. Null if the gallery has no division assignment.
office_id
integeris_published
booleansort_order
integercreated_at
datetimeupdated_at
datetimelast_viewed_at
datetimeurl
stringmodel_division_name
stringmodel_division_url
stringoffice_name
stringcover_url
stringFormat: absolute-url
cover_small_url
stringFormat: absolute-url
cover_medium_url
stringFormat: absolute-url
cover_large_url
stringFormat: absolute-url
files
arrayid
integermodel_gallery_id
integerexternal_id
stringThe Vimeo or YouTube ID of a linked video media item.
external_source
stringFor video media — vimeo or youtube.
ext
stringtype
stringsize
integerFile size in bytes.
width
integerheight
integersort_order
integercredit
stringThe credit / caption added to the media item.
user_id
integeris_processing
booleancreated_at
datetimeupdated_at
datetimefilename
stringmedia_type
stringkey
stringurl
stringFormat: absolute-url
The media item in its uploaded size and format. For example, rendering a gif or png image requires this property instead of a sized jpg transform.
small_url
stringFormat: absolute-url
A jpg image transformed based on the agency's Settings > Image Sizes configuration. If the media item is a video, this is the video thumbnail. Null for audio items.
medium_url
stringFormat: absolute-url
A jpg image transformed based on the agency's Settings > Image Sizes configuration. If the media item is a video, this is the video thumbnail. Null for audio items.
large_url
stringFormat: absolute-url
A jpg image transformed based on the agency's Settings > Image Sizes configuration. If the media item is a video, this is the video thumbnail. Null for audio items.
aspect_ratio
numberis_landscape
booleanis_image
boolean