Posts
Get a post
One post, with its status, time, text, media and, once it’s published, its link.
GET
/
posts
/
{id}
Get a post
curl --request GET \
--url https://api.postploy.com/public/v1/posts/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.postploy.com/public/v1/posts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.postploy.com/public/v1/posts/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9",
"status": "scheduled",
"statusGroup": "scheduled",
"blockedReason": null,
"socialAccountId": "5b0f4c3e-8a2d-4c51-9e7a-1d2f3a4b5c6d",
"platform": "linkedin",
"title": null,
"text": "Our spring blend is here. Bright, citrusy and roasted this week.",
"thread": null,
"scheduledAt": "2030-01-15T09:00:00.000Z",
"timezone": "Europe/London",
"acceptedAt": null,
"publishedAt": null,
"deletedAt": null,
"link": null,
"failureReason": null,
"failureKind": null,
"sentBack": null,
"review": null,
"attempts": 0,
"mediaIds": [],
"media": [],
"platformFields": null,
"conversationId": null,
"seriesId": null,
"createdAt": "2030-01-10T12:00:00.000Z",
"actions": {
"edit": true,
"approve": false,
"reject": false,
"retry": false,
"delete": true
}
}
}⌘I
Get a post
curl --request GET \
--url https://api.postploy.com/public/v1/posts/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.postploy.com/public/v1/posts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.postploy.com/public/v1/posts/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9",
"status": "scheduled",
"statusGroup": "scheduled",
"blockedReason": null,
"socialAccountId": "5b0f4c3e-8a2d-4c51-9e7a-1d2f3a4b5c6d",
"platform": "linkedin",
"title": null,
"text": "Our spring blend is here. Bright, citrusy and roasted this week.",
"thread": null,
"scheduledAt": "2030-01-15T09:00:00.000Z",
"timezone": "Europe/London",
"acceptedAt": null,
"publishedAt": null,
"deletedAt": null,
"link": null,
"failureReason": null,
"failureKind": null,
"sentBack": null,
"review": null,
"attempts": 0,
"mediaIds": [],
"media": [],
"platformFields": null,
"conversationId": null,
"seriesId": null,
"createdAt": "2030-01-10T12:00:00.000Z",
"actions": {
"edit": true,
"approve": false,
"reject": false,
"retry": false,
"delete": true
}
}
}