Approvals
Send posts for review
Sends up to 50 drafts or posts waiting for approval to someone outside your team, like a client. They open a link, with no account, and approve each post, which schedules it for its time, or send it back with a note, which makes it a draft again with the note in sentBack. Give reviewerId for someone you’ve sent posts to before, or reviewer for a new person. With an email, they get the link by email. Their link stays the same for every post you send them.
POST
/
reviews
Send posts for review
curl --request POST \
--url https://api.postploy.com/public/v1/reviews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"postIds": [
"3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9"
],
"reviewer": {
"name": "Grace Lin",
"email": "grace@lumen.pr"
},
"message": "Could you look by Thursday?"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
postIds: ['3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9'],
reviewer: {name: 'Grace Lin', email: 'grace@lumen.pr'},
message: 'Could you look by Thursday?'
})
};
fetch('https://api.postploy.com/public/v1/reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.postploy.com/public/v1/reviews"
payload = {
"postIds": ["3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9"],
"reviewer": {
"name": "Grace Lin",
"email": "grace@lumen.pr"
},
"message": "Could you look by Thursday?"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"reviewer": {
"id": "8a1c5e2f-3b4d-4e6f-9a0b-1c2d3e4f5a6b",
"name": "Grace Lin",
"email": "grace@lumen.pr",
"url": "https://postploy.com/review/gr4Lk9QzT7mB2sW8vY1cE6hJ",
"waiting": 1,
"seenAt": null,
"createdAt": "2030-01-10T12:00:00.000Z"
},
"sent": 1,
"emailed": true
}
}{
"statusCode": 400,
"message": "Scheduled date and time must be in the future",
"errors": [
{
"message": "Scheduled date and time must be in the future",
"path": [
"posts",
0,
"scheduledAt"
],
"cause": "custom"
}
],
"timestamp": "2030-01-10T12:00:00.000Z",
"route": "/public/v1/posts"
}{
"statusCode": 401,
"message": "Invalid API key",
"errors": null,
"timestamp": "2030-01-10T12:00:00.000Z",
"route": "/public/v1/accounts"
}{
"statusCode": 123,
"message": "<string>",
"errors": [
{
"message": "<string>",
"path": [
"<string>"
],
"cause": "<string>",
"code": "<string>",
"platform": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z",
"route": "<string>"
}{
"statusCode": 123,
"message": "<string>",
"errors": [
{
"message": "<string>",
"path": [
"<string>"
],
"cause": "<string>",
"code": "<string>",
"platform": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z",
"route": "<string>"
}{
"statusCode": 409,
"message": "This post is being published right now",
"errors": null,
"timestamp": "2030-01-15T09:00:01.000Z",
"route": "/public/v1/posts/3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9"
}{
"statusCode": 123,
"message": "<string>",
"errors": [
{
"message": "<string>",
"path": [
"<string>"
],
"cause": "<string>",
"code": "<string>",
"platform": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z",
"route": "<string>"
}Authorizations
Body
application/json
Someone from List reviewers. Give this or reviewer.
⌘I
Send posts for review
curl --request POST \
--url https://api.postploy.com/public/v1/reviews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"postIds": [
"3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9"
],
"reviewer": {
"name": "Grace Lin",
"email": "grace@lumen.pr"
},
"message": "Could you look by Thursday?"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
postIds: ['3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9'],
reviewer: {name: 'Grace Lin', email: 'grace@lumen.pr'},
message: 'Could you look by Thursday?'
})
};
fetch('https://api.postploy.com/public/v1/reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.postploy.com/public/v1/reviews"
payload = {
"postIds": ["3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9"],
"reviewer": {
"name": "Grace Lin",
"email": "grace@lumen.pr"
},
"message": "Could you look by Thursday?"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"reviewer": {
"id": "8a1c5e2f-3b4d-4e6f-9a0b-1c2d3e4f5a6b",
"name": "Grace Lin",
"email": "grace@lumen.pr",
"url": "https://postploy.com/review/gr4Lk9QzT7mB2sW8vY1cE6hJ",
"waiting": 1,
"seenAt": null,
"createdAt": "2030-01-10T12:00:00.000Z"
},
"sent": 1,
"emailed": true
}
}{
"statusCode": 400,
"message": "Scheduled date and time must be in the future",
"errors": [
{
"message": "Scheduled date and time must be in the future",
"path": [
"posts",
0,
"scheduledAt"
],
"cause": "custom"
}
],
"timestamp": "2030-01-10T12:00:00.000Z",
"route": "/public/v1/posts"
}{
"statusCode": 401,
"message": "Invalid API key",
"errors": null,
"timestamp": "2030-01-10T12:00:00.000Z",
"route": "/public/v1/accounts"
}{
"statusCode": 123,
"message": "<string>",
"errors": [
{
"message": "<string>",
"path": [
"<string>"
],
"cause": "<string>",
"code": "<string>",
"platform": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z",
"route": "<string>"
}{
"statusCode": 123,
"message": "<string>",
"errors": [
{
"message": "<string>",
"path": [
"<string>"
],
"cause": "<string>",
"code": "<string>",
"platform": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z",
"route": "<string>"
}{
"statusCode": 409,
"message": "This post is being published right now",
"errors": null,
"timestamp": "2030-01-15T09:00:01.000Z",
"route": "/public/v1/posts/3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9"
}{
"statusCode": 123,
"message": "<string>",
"errors": [
{
"message": "<string>",
"path": [
"<string>"
],
"cause": "<string>",
"code": "<string>",
"platform": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z",
"route": "<string>"
}