Skip to content

Set the default Pin Spacing rule

PUT
/v1/accounts/{accountId}/pin-spacing/default-rule
curl --request PUT \
--url https://api-v1.tailwind.ai/v1/accounts/example/pin-spacing/default-rule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "spacing": 1 }'

Create or replace the account-wide default Pin Spacing rule: the minimum number of days between scheduled Pins that share a destination URL, for every URL on the account without a custom rule. Calling it again with the same spacing changes nothing, and previousSpacing reports the default it replaced (null when there was none). To space one URL differently, use PUT /v1/accounts/{accountId}/pin-spacing/custom-rule instead. Only Pins scheduled after the write are spaced by it: This call does not move Pins already on the schedule; to respace them, use the dashboard’s Pin Spacing settings. Free, as in the dashboard.

accountId
required
string

Numeric Tailwind account ID returned by GET /v1/accounts

Media typeapplication/json
object
spacing
required

Minimum days between Pins to one URL

integer
>= 1 <= 365
Examplegenerated
{
"spacing": 1
}

The default rule now in effect

Media typeapplication/json
object
data
object
rule
required
object
ruleType
required
string
Allowed values: DEFAULT
spacing
required

Minimum days between Pins to one URL

integer
spacingUnits
required
string
Allowed values: DAYS
previousSpacing
required

The default spacing this replaced; null when the account had no default

integer
nullable
meta
object
requestId

Unique request ID for debugging

string
Example
{
"data": {
"rule": {
"ruleType": "DEFAULT",
"spacingUnits": "DAYS"
}
}
}

Invalid request

Media typeapplication/json
object
error
object
code

Error code

string
message

Error message

string
reason

Machine-readable reason. On PAYMENT_REQUIRED errors it is the denial reason: insufficient_credits, trial_exhausted, no_access, account_not_connected, legacy_post_limit_exceeded, post_limit_reached. Other errors may carry an operation-specific reason, such as pinterest_reconnect_required, pinterest_rate_limited, pinterest_timeout, pinterest_request_failed or list_boards_upstream_failed; each operation’s documented error responses show the values it returns. Branch on reason rather than parsing message.

string
limitPeriod

Present with reason post_limit_reached when saving Pins to a Board: monthly for the plan’s post limit per billing period, lifetime for a free plan’s lifetime cap.

string
Allowed values: monthly lifetime
resolve_url

Present on PAYMENT_REQUIRED errors: where the denial can be resolved. Reason-specific, because buying credits does not clear a trial, access or connection denial. Requests sent with X-Request-Source: mcp receive an informational plans page instead, so agent surfaces never present a purchase link.

string
meta
object
requestId

Unique request ID for debugging

string
Example
{
"error": {
"code": "BAD_REQUEST",
"message": "Invalid request body"
},
"meta": {
"requestId": "abc123"
}
}

Authentication required or invalid bearer credentials

Media typeapplication/json
object
error
object
code

Error code

string
message

Error message

string
reason

Machine-readable reason. On PAYMENT_REQUIRED errors it is the denial reason: insufficient_credits, trial_exhausted, no_access, account_not_connected, legacy_post_limit_exceeded, post_limit_reached. Other errors may carry an operation-specific reason, such as pinterest_reconnect_required, pinterest_rate_limited, pinterest_timeout, pinterest_request_failed or list_boards_upstream_failed; each operation’s documented error responses show the values it returns. Branch on reason rather than parsing message.

string
limitPeriod

Present with reason post_limit_reached when saving Pins to a Board: monthly for the plan’s post limit per billing period, lifetime for a free plan’s lifetime cap.

string
Allowed values: monthly lifetime
resolve_url

Present on PAYMENT_REQUIRED errors: where the denial can be resolved. Reason-specific, because buying credits does not clear a trial, access or connection denial. Requests sent with X-Request-Source: mcp receive an informational plans page instead, so agent surfaces never present a purchase link.

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 reason. On PAYMENT_REQUIRED errors it is the denial reason: insufficient_credits, trial_exhausted, no_access, account_not_connected, legacy_post_limit_exceeded, post_limit_reached. Other errors may carry an operation-specific reason, such as pinterest_reconnect_required, pinterest_rate_limited, pinterest_timeout, pinterest_request_failed or list_boards_upstream_failed; each operation’s documented error responses show the values it returns. Branch on reason rather than parsing message.

string
limitPeriod

Present with reason post_limit_reached when saving Pins to a Board: monthly for the plan’s post limit per billing period, lifetime for a free plan’s lifetime cap.

string
Allowed values: monthly lifetime
resolve_url

Present on PAYMENT_REQUIRED errors: where the denial can be resolved. Reason-specific, because buying credits does not clear a trial, access or connection denial. Requests sent with X-Request-Source: mcp receive an informational plans page instead, so agent surfaces never present a purchase link.

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 reason. On PAYMENT_REQUIRED errors it is the denial reason: insufficient_credits, trial_exhausted, no_access, account_not_connected, legacy_post_limit_exceeded, post_limit_reached. Other errors may carry an operation-specific reason, such as pinterest_reconnect_required, pinterest_rate_limited, pinterest_timeout, pinterest_request_failed or list_boards_upstream_failed; each operation’s documented error responses show the values it returns. Branch on reason rather than parsing message.

string
limitPeriod

Present with reason post_limit_reached when saving Pins to a Board: monthly for the plan’s post limit per billing period, lifetime for a free plan’s lifetime cap.

string
Allowed values: monthly lifetime
resolve_url

Present on PAYMENT_REQUIRED errors: where the denial can be resolved. Reason-specific, because buying credits does not clear a trial, access or connection denial. Requests sent with X-Request-Source: mcp receive an informational plans page instead, so agent surfaces never present a purchase link.

string
meta
object
requestId

Unique request ID for debugging

string
Example
{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Daily rate limit of 10000 requests for this organization exceeded. Resets at midnight UTC."
},
"meta": {
"requestId": "abc123"
}
}
Retry-After
integer

Seconds until the daily limit resets at midnight UTC.