tebarDocs
GuideDevelopersAPI ReferenceChangelog
Posts

Count scheduled posts

GET
/v1/posts/counts

How many posts are scheduled, in total and per account, without listing them (the dashboard sidebar counters).

Requires the read scope.

Authorization

bearer
headerAuthorizationBearer <token>

An API key (tb_live_...) from the dashboard, or an OAuth access token.

Header Parameters

Tebar-Profile?string

Limits an owner key to one profile (id or external_id). Unknown: 404 profile_not_found.

Response Body

The counts.

application/json
  1. response
total*integer

Each item once.

by_account*array<>

Accounts with at least one; an item on several accounts counts under each.

Example Request
curl -X GET 'https://api.tebar.app/v1/posts/counts'
Example Response
{
  "total": 0,
  "by_account": [
    {
      "account_id": "string",
      "count": 0
    }
  ]
}