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/slots

List posting slots

Code samples

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

Responses

200 OK
Example
[
  {
    "id": "string",
    "organizationId": "string",
    "channelId": "string",
    "weekday": 0,
    "time": "string",
    "tagId": "string"
  }
]
Schema
id
string
required
organizationId
string
required
channelId
string
required
weekday
number
required
time
string
required
tagId
string
required
PUT http://localhost:4000/api/v1/slots/{channelId}

Replace the posting slots of a channel

Parameters

channelId
string
path
required

Request body

application/json
slots
object[]
required
Show child parameters
weekday
integer
required
time
string
required
tagId
string
{
  "slots": [
    {
      "weekday": 0,
      "time": "string",
      "tagId": "string"
    }
  ]
}

Code samples

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

Responses

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

Preview the next free slots per channel

Parameters

channelIds
string[]
query
count
integer
query

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/slots/preview" \
  -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/posts/{postId}/enqueue

Schedule a post at the next free slot of each of its channels

Parameters

postId
string
path
required

Request body

application/json
position
string
top | bottom = bottom
tagId
string
from
string
to
string
natural
boolean
{
  "position": "bottom",
  "tagId": "string",
  "from": "2024-01-01T00:00:00Z",
  "to": "2024-01-01T00:00:00Z",
  "natural": true
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/posts/{postId}/enqueue" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"position":"bottom","tagId":"string","from":"2024-01-01T00:00:00Z","to":"2024-01-01T00:00:00Z","natural":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

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