Queue

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-queue"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/bfaf94c6-a877-4913-bdb1-17ffb25768d1/social-card.svg?v=3e7ae33eec8b" alt="Queue" width="600" height="315"></a>
GET http://localhost:4000/api/v1/publishing/pause

Where publishing is paused

Each active pause: the whole workspace (clientId null) or one client, who paused it, when and why.

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/publishing/pause" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST http://localhost:4000/api/v1/publishing/pause

Pause all publishing for the workspace or one client

Every scheduled, queued and automation-made post is held, and stays scheduled, until publishing is resumed.

Request body

application/json
clientId
string
= null
reason
string
{
  "clientId": null,
  "reason": "string"
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/publishing/pause" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clientId":null,"reason":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST http://localhost:4000/api/v1/publishing/resume

Resume publishing, and say what happens to posts whose time passed

overdue: publish_now (one minute apart, oldest first), next_slots (the channel's next free times) or drafts.

Request body

application/json
clientId
string
= null
overdue
string
required
publish_now | next_slots | drafts
{
  "clientId": null,
  "overdue": "publish_now"
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/publishing/resume" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clientId":null,"overdue":"publish_now"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/slots/best-times

Best times to post on a channel

Up to seven ranked times per weekday in the channel's zone, from its own posts of the last 16 weeks (ranked by goal), follower-online hours where the platform reports them, else general default times (source: default).

Parameters

channelId
string
query
required
goal
string
query
engagement | reach | clicks = engagement
days
integer[]
query
perDay
integer
query

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/slots/best-times?channelId=<channelId>" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/slots/queue

Queue status: goals, streaks and queue length per channel

Parameters

channelIds
string[]
query

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/slots/queue" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/slots/{channelId}/queue

The queued posts of a channel in order

Parameters

channelId
string
path
required
tagId
string
query

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/slots/{channelId}/queue" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST http://localhost:4000/api/v1/slots/goals

Set a channel's weekly posting goal

perWeek 0 removes the goal. The answer says how many posting times the channel is missing to reach it.

Request body

application/json
channelId
string
required
perWeek
integer
required
{
  "channelId": "string",
  "perWeek": 0
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/slots/goals" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channelId":"string","perWeek":0}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST http://localhost:4000/api/v1/slots/{channelId}/shuffle

Shuffle a channel's queued posts across their existing times

Parameters

channelId
string
path
required

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/slots/{channelId}/shuffle" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST http://localhost:4000/api/v1/slots/{channelId}/move

Move a queued post to the top or the bottom of its channel's queue

Parameters

channelId
string
path
required

Request body

application/json
postId
string
required
to
string
required
top | bottom
{
  "postId": "string",
  "to": "top"
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/slots/{channelId}/move" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"postId":"string","to":"top"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST http://localhost:4000/api/v1/slots/{channelId}/duplicate

Copy a posting time to other weekdays

Parameters

channelId
string
path
required

Request body

application/json
weekday
integer
required
time
string
required
toWeekdays
integer[]
required
{
  "weekday": 0,
  "time": "string",
  "toWeekdays": [
    0
  ]
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/slots/{channelId}/duplicate" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"weekday":0,"time":"string","toWeekdays":[0]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST http://localhost:4000/api/v1/slots/{channelId}/recommended

Use the recommended times as a channel's posting times

replace swaps all its posting times, add keeps them and adds the recommended ones (raise perDay for more).

Parameters

channelId
string
path
required

Request body

application/json
mode
string
replace | add = add
perDay
integer
= 2
goal
string
engagement | reach | clicks = engagement
{
  "mode": "add",
  "perDay": 2,
  "goal": "engagement"
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/slots/{channelId}/recommended" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"add","perDay":2,"goal":"engagement"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
PUT http://localhost:4000/api/v1/slots/{channelId}/timezone

Set the timezone a channel's posting times are read in

null goes back to the workspace timezone.

Parameters

channelId
string
path
required

Request body

application/json
timezone
string
required
{
  "timezone": "string"
}

Code samples

cURL
curl -X PUT "http://localhost:4000/api/v1/slots/{channelId}/timezone" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"timezone":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/slots/categories

Categories (tags) used by posting times, with their pause state

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/slots/categories" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST http://localhost:4000/api/v1/slots/categories/pause

Pause or resume a category: its posting times are skipped while paused

Request body

application/json
tagId
string
required
paused
boolean
required
{
  "tagId": "string",
  "paused": true
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/slots/categories/pause" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tagId":"string","paused":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}

Updated