Search posts
GET/api/v2/posts
Search posts
Request
Query Parameters
Filters Posts based on their start datetime.
The start datetime represents the moment on which a Post of type event/offer
will become available. In case of Posts of type news, the start_datetime
it will be compared to the creation date of the Post, as the field is not
present in this context.
Filter Posts based on their end datetime.
The end datetime represents the date on which the Post of type event/offer
will expire. In case of Posts of type news, the end_datetime
it will be compared to exactly one week after the creation date of the Post,
as the field is not present in this context.
Filter Posts based on their description.
It returns Posts that contain in their description the given string. The text does not have to match perfectly.
Possible values: [standard
, event
, offer
, alert
]
Filter Posts based on a list of different types.
Possible values: [live
, to_configure
, pending
, scheduled
, error
, expired
]
Filter Posts based on their description.
It returns Posts that contain in their description the given string. The text does not have to match perfectly.
Possible values: [google_my_business
, facebook
]
Filter Posts based on a list of different platforms.
Filter by business ids
Responses
- 200
- 400
- 401
- 403
- 404
This endpoint lets you browse through all your Posts.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
Array [
]
]
posts
object[]
required
List of posts
Main text content of the post.
The Post id
Business id
The title of the post
Possible values: [standard
, event
, offer
, alert
]
The type of the post to be created. Event and Offer are not yet available for Facebook.
For either event or offer post type. Defined when it start. Timezone is defined by the business timezone.
For either event or offer post type. Defined when it end. Timezone is defined by the business timezone.
Date when the Post will be published. No scheduled start time means that the Post will be published immediately. @default null
post_medias
object[]
@description The photo that will be on the Post
URL of the image displayed with the post.
Creation date
Last update date (either on our platform or on Partner platform)
name and address of the business that the post is related to.
post_insight
object[]
Statistics related to the posts on the different platforms.
⚠️ Due to a Google deprecation, on 20/02/2023, Google views and counts won't be available anymore. Old insights will still be sent. Facebook ones will still be available.
Possible values: [google_my_business__posts
, facebook__posts
]
Publisher related to the post
number of times a user has clicked on the post.
number of times the post has been viewed.
post_status
object[]
Status related to the posts on the different platforms.
Possible values: [google_my_business__posts
, facebook__posts
]
Publisher related to the post
Possible values: [live
, to_configure
, pending
, scheduled
, error
, expired
]
The state of the post, indicating at which lifecycle stage it is currently.
Link displayed in the post to redirect the client clicking on it.
Terms and conditions of the offer
Offer code that is usable in store or online
Link displayed in the post to redirect the client clicking on it.
Possible values: [book
, order
, shop
, learn_more
, sign_up
, call
, no_cta
]
The type of the post to be created. Some type mig.
Current page number
Last page number
Number of resources complying with filters
{
"posts": [
{
"summary": "Wonderful post summary!",
"id": 34,
"business_id": "5409c35a97bbc544d8e26737",
"title": "string",
"post_type": "standard",
"start_at": "2050-01-01T09:00:00.000Z",
"end_at": "2050-01-01T09:00:00.000Z",
"schedule_time": "2020-01-01T10:00:00.000Z",
"post_medias": [
{
"media_url": "wxx"
}
],
"created_at": "2019-08-01T17:15:54.256Z",
"updated_at": "2019-09-01T13:12:35.256Z",
"business_info": "string",
"post_insight": [
{
"name": "facebook__posts",
"click_count": 1512,
"view_count": 2012
}
],
"post_status": [
{
"name": "facebook__posts",
"state": "live",
"link": "google.com"
}
],
"offer_terms": "string",
"offer_code": "PROMO25",
"cta_link": "google.com",
"cta_type": "book"
}
],
"page": 1,
"max_page": 10,
"count": 287
}