Skip to main content
GET
/
posts
Get paginated posts
curl --request GET \
  --url https://{subdomain}.nudj.cx/api/v2/admin/posts \
  --header 'x-api-token: <api-key>'
{
  "totalCount": 123,
  "edges": [
    {
      "id": "<string>",
      "organisationId": "<string>",
      "communityId": "<string>",
      "details": {
        "title": "<string>",
        "description": "<string>",
        "light": {
          "primaryImageUrl": "<string>",
          "secondaryImageUrl": "<string>"
        },
        "dark": {
          "primaryImageUrl": "<string>",
          "secondaryImageUrl": "<string>"
        }
      },
      "content": "<string>",
      "likes": [
        "<string>"
      ],
      "disableComments": true,
      "disableLikes": true,
      "displayBannerOnPost": true,
      "status": "archived",
      "startsAt": "<string>",
      "expiresAt": "<string>",
      "featured": true,
      "tags": [
        "<string>"
      ],
      "campaigns": [
        "<string>"
      ],
      "availableAsTemplateForOrganisations": [
        "<string>"
      ],
      "isGlobalTemplate": true,
      "createdAt": "<string>",
      "createdBy": "<string>",
      "updatedAt": "<string>",
      "updatedBy": "<string>",
      "isEditing": true
    }
  ]
}

Authorizations

x-api-token
string
header
required

Headers

x-language
string

The language to return the posts in. If not provided, the default language for the organisation will be used.

Query Parameters

communityId
string
limit
integer
default:10
Required range: 1 <= x <= 100
skip
integer
default:0
Required range: x >= 0

Response

Successful response

totalCount
number
required
edges
Post · object[]
required
I