Skip to content

List timeslots

GET
/v1/accounts/{accountId}/timeslots
curl --request GET \
--url https://api-v1.tailwind.ai/v1/accounts/example/timeslots \
--header 'Authorization: Bearer <token>'

List all smart schedule timeslots for an account.

accountId
required
string

Numeric Tailwind account ID returned by GET /v1/accounts

List of timeslots

Media typeapplication/json
object
data
object
timeslots
Array<object>
object
id

Timeslot ID

string
accountId

Account ID

string
dayPreference

Day of week (0-6, where 0 is Sunday)

integer
<= 6
timePreference

Time in HH:MM format

string
timezone

Timezone (e.g., America/New_York)

string
type

Timeslot type

string
Allowed values: auto-created recommended manual
scheduleId

Schedule ID, when associated with a schedule

integer
pinUuid

Pin UUID, when associated with a pin

integer
sendAt

Unix timestamp of next scheduled send

integer
meta
object
requestId

Unique request ID for debugging

string
Example
{
"data": {
"timeslots": [
{
"type": "auto-created"
}
]
}
}

Authentication required or invalid bearer credentials

Media typeapplication/json
object
error
object
code

Error code

string
message

Error message

string
reason

Machine-readable denial reason. Present on PAYMENT_REQUIRED errors: insufficient_credits, trial_exhausted, no_access, account_not_connected.

string
meta
object
requestId

Unique request ID for debugging

string
Example
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key"
},
"meta": {
"requestId": "abc123"
}
}

Resource not found

Media typeapplication/json
object
error
object
code

Error code

string
message

Error message

string
reason

Machine-readable denial reason. Present on PAYMENT_REQUIRED errors: insufficient_credits, trial_exhausted, no_access, account_not_connected.

string
meta
object
requestId

Unique request ID for debugging

string
Example
{
"error": {
"code": "NOT_FOUND",
"message": "Account not found"
},
"meta": {
"requestId": "abc123"
}
}

Rate limit exceeded

Media typeapplication/json
object
error
object
code

Error code

string
message

Error message

string
reason

Machine-readable denial reason. Present on PAYMENT_REQUIRED errors: insufficient_credits, trial_exhausted, no_access, account_not_connected.

string
meta
object
requestId

Unique request ID for debugging

string
Example
{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Daily rate limit of 5000 requests exceeded. Resets at midnight UTC."
},
"meta": {
"requestId": "abc123"
}
}