Skip to content

Calendar view

GET
/scheduler/schedule-view
curl 'https://api.xholic.ai/v1/scheduler/schedule-view' \
-H "Authorization: Bearer $XHOLIC_API_KEY"

The posting calendar day by day: scheduled posts, open slots and best times, for up to 42 days.

tagIds

Comma-separated tag ids from list_tags, to show only posts with those tags.

string
<= 1900 characters

Comma-separated tag ids from list_tags, to show only posts with those tags.

timezone

IANA timezone such as America/New_York. Use the user’s timezone.

string
>= 1 characters <= 100 characters

IANA timezone such as America/New_York. Use the user’s timezone.

days

Days to show (default 21).

integer
>= 1 <= 42

Days to show (default 21).

startDate

First day, YYYY-MM-DD. Defaults to today.

string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/

First day, YYYY-MM-DD. Defaults to today.

account

X account to act on, as @handle. Leave it out to use the connection’s default account.

string
>= 1 characters <= 64 characters

X account to act on, as @handle. Leave it out to use the connection’s default account.

Success

Media typeapplication/json
object
ok
required
boolean
summary
required

One or two readable sentences about the result.

string
data
required

The result. Its shape depends on the action.

ids
object
key
additional properties
any
next
Array<string>
creditsCharged
number
dryRun
boolean

Example

{
"ok": true
}

Error

Media typeapplication/json
object
ok
required
boolean
error
required
object
code
required
string
Allowed values: UNAUTHENTICATED INVALID_CREDENTIAL SCOPE_MISSING ROLE_NOT_PERMITTED ACCOUNT_NOT_FOUND SUBSCRIPTION_REQUIRED FEATURE_NOT_INCLUDED APP_ONLY INVALID_INPUT NOT_FOUND CONFLICT CREDITS_CONFIRMATION_REQUIRED INSUFFICIENT_CREDITS RATE_LIMITED IDEMPOTENCY_KEY_REUSED IDEMPOTENCY_IN_PROGRESS X_DATA_LIMIT_REACHED UPSTREAM_UNAVAILABLE INTERNAL_ERROR
message
required
string
scope
required
string
Allowed values: account platform
retryAfterSeconds
integer
details

Example

{
"ok": false,
"error": {
"code": "UNAUTHENTICATED",
"scope": "account"
}
}