Skip to main content
GET
/
templates
/
posts
Get paginated post templates
curl --request GET \
  --url https://{subdomain}.nudj.cx/api/v2/admin/templates/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

limit
integer
default:10
Required range: 1 <= x <= 100
skip
integer
default:0
Required range: x >= 0
sort
string
communityId
string
allocationId
string
verified
boolean
isShop
boolean
type
string
status
string
eventCategory
string
eventSubCategory
string
eventName
string
displayMode
string
fromDate
string
toDate
string
isGlobalTemplate
boolean
key
string
progressPeriod
string

Response

Successful response

totalCount
number
required
edges
Post · object[]
required
I