Skip to content

Error reference

Pick the Pinterest board by its id

Pinterest identifies a board by its numeric id. A board name is accepted only on a post to one Pinterest account, and only when exactly one board on that account has that name. Send the board id instead (digits only), and list an account boards with GET /v1/accounts/{id}/boards or the list_pinterest_boards tool.

Code
pinterest_board_unresolved
HTTP status
422
Category
bad-body
Severity
error
Retryable
No
Domain
posts

How to fix

Review the request and try again. The response `detail` explains the specific problem.

Example response

Every error is returned as application/problem+json (RFC 9457). The detail is the specific, actionable message; the code is stable and safe to branch on.

{
  "type": "https://skedcast.com/errors/pinterest_board_unresolved",
  "title": "Pick the Pinterest board by its id",
  "status": 422,
  "category": "bad-body",
  "code": "pinterest_board_unresolved",
  "detail": "Pinterest identifies a board by its numeric id. A board name is accepted only on a post to one Pinterest account, and only when exactly one board on that account has that name. Send the board id instead (digits only), and list an account boards with GET /v1/accounts/{id}/boards or the list_pinterest_boards tool.",
  "correlationId": "c-1f2e3d4c-…",
  "severity": "error"
}

Handle it in code

try {
  await skedcast.posts.create(input);
} catch (err) {
  if (err instanceof SkedcastApiError && err.code === 'pinterest_board_unresolved') {
    // Pinterest identifies a board by its numeric id. A board name is accepted only on a post to one Pinterest account, and only when exactly one board on that account has that name. Send the board id instead (digits only), and list an account boards with GET /v1/accounts/{id}/boards or the list_pinterest_boards tool.
  }
}