Get posting schedule
curl --request GET \
--url https://app.trypost.it/api/channels/{account}/posting-schedule \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trypost.it/api/channels/{account}/posting-schedule"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trypost.it/api/channels/{account}/posting-schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.trypost.it/api/channels/{account}/posting-schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trypost.it/api/channels/{account}/posting-schedule"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.trypost.it/api/channels/{account}/posting-schedule")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trypost.it/api/channels/{account}/posting-schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "9c8b7a65-4d3e-4f2a-8b1c-0d9e8f7a6b54",
"timezone": "America/Sao_Paulo",
"posting_goal": 5,
"posting_schedule": [
{
"day": 0,
"enabled": true,
"times": []
},
{
"day": 1,
"enabled": true,
"times": [
"09:00"
]
},
{
"day": 2,
"enabled": true,
"times": [
"09:00",
"15:00"
]
},
{
"day": 3,
"enabled": true,
"times": [
"12:00"
]
},
{
"day": 4,
"enabled": true,
"times": [
"09:00"
]
},
{
"day": 5,
"enabled": true,
"times": []
},
{
"day": 6,
"enabled": false,
"times": []
}
]
}{
"message": "Unauthenticated."
}{
"message": "Active subscription required."
}{
"message": "<string>"
}{
"message": "<string>"
}{
"name": "rate_limit_exceeded",
"message": "Rate limit exceeded. Please retry after 30 seconds."
}Channels
Get posting schedule
Returns the channel’s time zone, weekly posting goal and posting times. Queue slots (queue: next|top, queue_slot) come from these times, in the channel’s time zone.
GET
/
channels
/
{account}
/
posting-schedule
Get posting schedule
curl --request GET \
--url https://app.trypost.it/api/channels/{account}/posting-schedule \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trypost.it/api/channels/{account}/posting-schedule"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trypost.it/api/channels/{account}/posting-schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.trypost.it/api/channels/{account}/posting-schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trypost.it/api/channels/{account}/posting-schedule"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.trypost.it/api/channels/{account}/posting-schedule")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trypost.it/api/channels/{account}/posting-schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "9c8b7a65-4d3e-4f2a-8b1c-0d9e8f7a6b54",
"timezone": "America/Sao_Paulo",
"posting_goal": 5,
"posting_schedule": [
{
"day": 0,
"enabled": true,
"times": []
},
{
"day": 1,
"enabled": true,
"times": [
"09:00"
]
},
{
"day": 2,
"enabled": true,
"times": [
"09:00",
"15:00"
]
},
{
"day": 3,
"enabled": true,
"times": [
"12:00"
]
},
{
"day": 4,
"enabled": true,
"times": [
"09:00"
]
},
{
"day": 5,
"enabled": true,
"times": []
},
{
"day": 6,
"enabled": false,
"times": []
}
]
}{
"message": "Unauthenticated."
}{
"message": "Active subscription required."
}{
"message": "<string>"
}{
"message": "<string>"
}{
"name": "rate_limit_exceeded",
"message": "Rate limit exceeded. Please retry after 30 seconds."
}Authorizations
Workspace API key from Settings → API Keys.
Path Parameters
Social account (channel) id. An account of another workspace returns 404.
Response
The posting schedule.
Social account id.
IANA time zone of the channel. Posting times and queue slots are in this zone.
Posts per week the channel aims for.
Required range:
1 <= x <= 28Seven days, Sunday first. null when the channel has no posting times (posts cannot use queue).
Show child attributes
Show child attributes

