Skip to content

JSON Schema Reference

Complete field reference for all data types returned by the API and webhook deliveries.

CollectionSummary

Returned in the collections array of GET /v1/collections.

FieldTypeRequiredDescription
idstringYesUnique collection identifier
namestringYesCollection display name
contentTypeContentTypeYesThe type of content in this collection
stagingContentCountintegerYesNumber of staging content items (>= 0)
liveContentCountintegerYesNumber of live content items (>= 0)
createdDatestring (ISO 8601)YesWhen the collection was created
lastModifiedDatestring (ISO 8601)YesWhen the collection was last updated
urlstring (URI)YesFull URL to fetch the collection details
json
{
  "id": "col_abc123",
  "name": "Match Day Social Feed",
  "contentType": "SOCIAL_POST",
  "stagingContentCount": 5,
  "liveContentCount": 20,
  "createdDate": "2026-01-10T08:00:00.000Z",
  "lastModifiedDate": "2026-01-18T10:35:00.000Z",
  "url": "https://api.interplai.app/v1/collections/col_abc123"
}

Collection

Returned by GET /v1/collections/:id and in webhook data payloads.

FieldTypeRequiredDescription
idstringYesUnique collection identifier
namestringYesCollection display name
contentTypeContentTypeYesThe type of content in this collection
stagingContentCountintegerYesNumber of staging content items (>= 0)
liveContentCountintegerYesNumber of live content items (>= 0)
createdDatestring (ISO 8601)YesWhen the collection was created
lastModifiedDatestring (ISO 8601)YesWhen the collection was last updated
stagingContentsContentItem[]YesArray of staging content items
liveContentsContentItem[]YesArray of live content items

ContentItem

Each item in a collection's contents array.

FieldTypeRequiredDescription
idstringYesUnique content item identifier (min length: 1)
fullNamestring | nullYesAuthor display name. Null when not available.
usernamestring | nullYesAuthor handle (e.g. @techwriter). Null for platforms without usernames.
sourceSourceYesThe platform this content came from
messagestringYesThe post text content
profileImageUrlstring | nullYesAuthor avatar URL. Null when not available.
mediaMediaItem[]YesAttached media items. Empty array if no media.
publishedAtstring (ISO 8601)YesWhen the content was originally published
lastModifiedDatestring (ISO 8601)YesWhen the content was last modified in the platform
json
{
  "id": "content_001",
  "fullName": "Sophie Hammer",
  "username": "sophiehammer",
  "source": "FACEBOOK",
  "message": "What a strike! Absolutely incredible goal",
  "profileImageUrl": "https://graph.facebook.com/sophie_h/picture",
  "media": [
    {
      "mediaUrl": "https://media.dizplai.com/social-media/2026/01/fb/0.jpg",
      "mediaType": "image/jpeg"
    }
  ],
  "publishedAt": "2026-01-18T10:30:00.000Z",
  "lastModifiedDate": "2026-01-18T10:35:00.000Z"
}

MediaItem

Each item in a content item's media array.

FieldTypeRequiredDescription
mediaUrlstring (URI)YesURL to the media asset
mediaTypestringYesMIME type of the media

Common MIME types

MIME TypeDescription
image/jpegJPEG image
image/pngPNG image
image/gifAnimated GIF
image/webpWebP image
video/mp4MP4 video

PaginationMeta

Returned in the meta field of list and single-collection responses.

List response meta

FieldTypeDescription
pageintegerCurrent page number (0-indexed)
pageSizeintegerItems per page
totalItemsintegerTotal number of items across all pages
totalPagesintegerTotal number of pages

Single collection response meta

FieldTypeDescription
totalItemsintegerNumber of content items in this collection
pageintegerAlways 0
pageSizeintegerSame as totalItems

ErrorResponse

Returned for all error responses (4xx, 5xx).

FieldTypeRequiredDescription
errorobjectYesError details container
error.codestringYesMachine-readable error code
error.messagestringYesHuman-readable description
error.detailsobjectNoAdditional context (e.g. field validation errors)
json
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Request validation failed",
    "details": {
      "fields": [
        { "field": "page", "message": "Must be a non-negative integer" }
      ]
    }
  }
}

WebhookPayload

Delivered to registered webhook endpoints.

FieldTypeDescription
eventstringEvent type (e.g. COLLECTION_UPDATED)
collectionIdstringThe ID of the affected collection
timestampstring (ISO 8601)When the event occurred
dataCollectionFull collection data

Interplai API v1.2.0