Create a Post
POST/api/v2/posts
Create a Post
Request
- application/json
Body
required
business_search
object
Filter by business ids
Possible values: [google_my_business
, facebook
]
List of publisher to diffuse the post
data
object
required
Main text content of the post.
URL of the image displayed with the post.
Title of the post.
link
object
Link displayed in the post to redirect the client clicking on it. Use can only have one of the following parameters ('use_business_url' or 'custom_url').
Use the business google url for link on the post.
An URL to redirect client when they click on the button
Offer code that is usable in store or online
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
Terms and conditions of the offer
Possible values: [book
, order
, shop
, learn_more
, sign_up
, call
, no_cta
]
The type of the post to be created. Some type mig.
Responses
- 201
- 400
- 401
- 403
- 404
This endpoint lets you create a Post on Google / Facebook.
The creation will not happen in real time and might take a few minutes.
- application/json
- Schema
- Example (from schema)
Schema
Post ID and relative business ID pair list
Request status
Request code
Number of post(s) created
{
"data": [
{
"post_id": 101,
"business_id": "1234567890"
},
{
"post_id": 102,
"business_id": "1234567891"
}
],
"status": "OK",
"code": 200,
"message": "string"
}