List all posts
Changed onReturns information about all posts
Request
- Base URLhttps://www.app.ocoya.com/api/_public/v1
- AuthAPI key in header X-API-Key
Query parameters
Ocoya brand ID. Get one from GET /brands.
Post statuses to include in the result.
[ "DRAFT" ]
Only posts whose caption or title contains this text.
Zero-based page number for paginated results.
Maximum number of items to return per page.
Response
Success. Newest scheduled first.
Example response
[
{
"id": "cmajvvb9q0003ja5vh0538j6r",
"status": "SCHEDULED",
"createdAt": "2024-01-01T00:00:00Z",
"scheduledAt": "2024-01-01T00:00:00Z",
"posts": [
{
"id": "cmajvvbaa0004ja5v2c0c8k1x",
"provider": "instagram",
"caption": "Happy new year everyone!",
"options": {
"type": "post"
},
"creatives": [
{
"id": "cm2d687bf000q5h5vct2hdmyg",
"image": "https://cdn.ocoya.com/prod/creative/13a76677.jpeg"
}
],
"boardIds": []
}
],
"channels": [
{
"id": "clh49poxf008x8kov4ncbjty9",
"provider": "instagram",
"name": "Ocoya"
}
]
}
]Changes
- breaking
removed the required property
/from the response with the status - info
added the required property
/to the response with the status
- breaking
- breaking
removed the enum value
DRAFTfrom thequeryrequest parameterstatuses - breaking
removed the enum value
ERRORfrom thequeryrequest parameterstatuses - breaking
removed the enum value
GENERATINGfrom thequeryrequest parameterstatuses - breaking
removed the enum value
PENDING_CLIENT_APPROVALfrom thequeryrequest parameterstatuses - breaking
removed the enum value
PENDING_INTERNAL_APPROVALfrom thequeryrequest parameterstatuses - breaking
removed the enum value
POSTEDfrom thequeryrequest parameterstatuses - breaking
removed the enum value
SCHEDULEDfrom thequeryrequest parameterstatuses - warning
for the
queryrequest parameterpage, the min was set to0.00 - warning
for the
queryrequest parameterperPage, the min was set to1.00 - info
api operation id
listPostswas added - info
api tag
Postsadded - info
added the new optional
queryrequest parameterquery - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking