zira logo

Get Posts

Add New post on a channel



GET
https://api.zira.us/public/posts?channelIds=[channelIds]

Example response


  {
    "data": [
      {
        "id": "1452987",
        "toChannel": {
          "id": "14727",
          "name": "test site",
          "image": null,
          "type": "4",
          "entityId": "1038",
          "siteId": "1038",
          "companyId": "640"
        },
        "fromChannel": {
          "id": "28593",
          "name": "Yuriy A ",
          "image": null,
          "type": "8",
          "entityId": "3485",
          "siteId": null,
          "companyId": null
        },
        "type": {
          "id": "1",
          "name": "Bot"
        },
        "title": "Hello world!",
        "content": "This is my message",
        "payload": null,
        "formattedText": null,
        "priority": null,
        "groupingKey": null,
        "commentCount": 0,
        "reactionCounts": [
          0,
          0,
          0,
          0,
          0
        ],
        "auditInfo": {
          "createdBy": {
            "id": "3485"
          },
          "createdDate": "2023-06-08T11:40:34.731281Z",
          "lastModifiedBy": {
            "id": "3485"
          },
          "lastModifiedDate": "2023-06-08T11:40:34.731281Z"
        },
        "lastUpdatedDate": "2023-06-08T11:40:34.731281Z",
        "ctas": null,
        "images": null,
        "files": null,
        "mentions": null,
        "hashtags": null,
        "reaction": null,
        "replyPostId": null,
        "comments": null
      }
    ],
    "lastValue": "eyJsYXN0VXBkYXRlZERhdGUiOiIyMDIzLTA2LTA4VDExOjQwOjM0LjczMTI4MVoifQ=="
  }

Query Params

PropertyRequiredTypeExampleDescription
channelIds falseString14727,14245Comma separated channel ids
fromChannelIds falseString14727,14245Comma separated channel ids
textSearch falseStringhello worldtext search for title or content
limit falseNumber5Number of posts to fetch. it is recommended to paginate the posts list