Skip to content

List the posts in a community channel, newest first

GET
/apps/{appId}/channels/{channelId}/posts
curl --request GET \
--url 'https://api.passion.io/v1/apps/example/channels/example/posts?limit=20'
appId
required

The id of the App, as Studio shows it.

string
/^[1-9][0-9]*$/
channelId
required

The id of a channel, as the App overview lists it under its community.

string
/^[1-9][0-9]*$/
cursor

The nextCursor of the page before. Leave it out for the newest posts.

string
/^[1-9][0-9]*$/
limit

How many posts, 50 at most.

integer
default: 20 >= 1 <= 50

OK

Media typeapplication/json
object
posts
required
Array<object>
object
id
required
string
text
required
Any of:
string
author
required
Any of:
string
createdAt
required
string
editedAt
required
Any of:
string
replies
required
integer
>= -9007199254740991 <= 9007199254740991
nextCursor
required
Any of:
string
Examplegenerated
{
"posts": [
{
"id": "example",
"text": "example",
"author": "example",
"createdAt": "example",
"editedAt": "example",
"replies": 1
}
],
"nextCursor": "example"
}