Skip to content

Remove Pinterest Board ​

DELETEhttps://api.repliz.com/public/addon/pinterest/board/{boardId}

Deletes a board of a connected Pinterest account.

Pins are deleted too

Pinterest deletes every pin in the board along with it, and it can't be undone. Schedules that still post to the board fail when they run.

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Repliz
  • Scope (Bearer only): addon:write
  • Access Tier: Premium+

Parameters ​

ParameterTypeRequiredDescription
boardIdstringYesID of the board to remove, the id from Get Pinterest Board.
accountIdstringYesID of the Pinterest account the board belongs to, the _id from Get Account. Sent in the query string.

Example Request ​

bash
curl -X DELETE "https://api.repliz.com/public/addon/pinterest/board/1006921296753698211?accountId=680affa5ce12f2f72916f67e" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
javascript
import axios from 'axios';

const boardId = '1006921296753698211';

await axios.delete(`https://api.repliz.com/public/addon/pinterest/board/${boardId}`, {
  params: {
    accountId: '680affa5ce12f2f72916f67e',
  },
  auth: {
    username: 'YOUR_ACCESS_KEY',
    password: 'YOUR_SECRET_KEY',
  },
});
javascript
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const boardId = '1006921296753698211';

await fetch(
  `https://api.repliz.com/public/addon/pinterest/board/${boardId}?accountId=680affa5ce12f2f72916f67e`,
  {
    method: 'DELETE',
    headers: {
      Authorization: `Basic ${credentials}`,
    },
  },
);

Response ​

json
// No content returned on success
json
{
  "code": 400,
  "message": "invalid account type"
}
json
{
  "code": 404,
  "message": "account not found"
}
json
{
  "code": 401,
  "message": "unauthorized"
}

Errors from Pinterest, such as a board that was already deleted, come back with Pinterest's status code and message.