List posts
GET
http://localhost:4000/api/v1 /posts Newest first. Page with cursor (the id of the last post of the previous page). GET /posts/count answers how many posts the same filter matches.
Parameters
fromstring
query
tostring
query
statusstring[]
query
channelIdstring
query
channelIdsstring[]
query
tagIdstring
query
clientIdstring
query
typestring
query
authorIdstring
query
campaignIdstring
query
awaitingApproverIdstring
query
hasCommentsboolean
query
fieldIdstring
query
fieldValuestring
query
cursorstring
query
limitinteger
query
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/posts" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
[
{
"id": "string",
"organizationId": "string",
"authorId": "string",
"parts": {},
"status": "draft",
"scheduledAt": "2024-01-01T00:00:00Z",
"clientId": "string",
"aiGenerated": true,
"recycledFromId": "string",
"idempotencyKey": "string",
"source": "string",
"draftReason": "string",
"draftProblem": {},
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z",
"targets": [
{
"id": "string",
"organizationId": "string",
"postId": "string",
"channelId": "string",
"parts": {},
"settings": {},
"status": "pending",
"published": {},
"notBefore": "2024-01-01T00:00:00Z",
"remoteUrl": "string",
"error": "string",
"errorCode": "string",
"errorParams": {},
"attempts": 0,
"publishedAt": "2024-01-01T00:00:00Z",
"pending": {}
}
],
"tagIds": [
"string"
],
"seriesId": "string"
}
]Schema
idstring
required
organizationIdstring
required
authorIdstring
required
partsrequired
statusstring
required
scheduledAtstring
required
clientIdstring
required
aiGeneratedboolean
required
recycledFromIdstring
required
idempotencyKeystring
required
sourcestring
required
draftReasonstring
required
draftProblemrequired
createdAtstring
required
updatedAtstring
required
targetsobject[]
required
Show child parameters
idstring
required
organizationIdstring
required
postIdstring
required
channelIdstring
required
partsrequired
settingsrequired
statusstring
required
publishedrequired
notBeforestring
required
remoteUrlstring
required
errorstring
required
errorCodestring
required
errorParamsrequired
attemptsnumber
required
publishedAtstring
required
pendingrequired
tagIdsstring[]
required
seriesIdstring
required
Updated