Channels
Get platform rules
What each platform accepts, such as text length, media counts, file sizes, video lengths and post options. Check a post against these rules with Check posts.
GET
/
capabilities
Get platform rules
curl --request GET \
--url https://api.postploy.com/public/v1/capabilities \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.postploy.com/public/v1/capabilities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.postploy.com/public/v1/capabilities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"platform": "linkedin",
"label": "LinkedIn",
"contentStyle": "informative, relevant to the industry and professional in tone",
"text": {
"max": 3000
},
"media": {
"required": false,
"maxItems": 20,
"mixed": false,
"image": {
"allowed": true,
"maxItems": 20
},
"video": {
"allowed": true,
"maxItems": 1
}
},
"features": {
"firstComment": true,
"visibility": [
"PUBLIC",
"CONNECTIONS"
]
}
}
]
}{
"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>"
}⌘I
Get platform rules
curl --request GET \
--url https://api.postploy.com/public/v1/capabilities \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.postploy.com/public/v1/capabilities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.postploy.com/public/v1/capabilities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"platform": "linkedin",
"label": "LinkedIn",
"contentStyle": "informative, relevant to the industry and professional in tone",
"text": {
"max": 3000
},
"media": {
"required": false,
"maxItems": 20,
"mixed": false,
"image": {
"allowed": true,
"maxItems": 20
},
"video": {
"allowed": true,
"maxItems": 1
}
},
"features": {
"firstComment": true,
"visibility": [
"PUBLIC",
"CONNECTIONS"
]
}
}
]
}{
"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>"
}