Skip to Content
Pindown.ai is in early alpha - features may change
Pinboards APIBatch Remove Pins

Batch Remove Pins from Pinboard

Remove multiple pins from a pinboard in a single request. This is more efficient than making individual DELETE requests.

Endpoint

DELETE /v1/pinboards/:pinboardId/pins/batch

Authentication

Requires API key with pinboards:write scope. You must be the owner or editor of the pinboard.

Authorization: Bearer pk_live_your_api_key

Path Parameters

ParameterTypeRequiredDescription
pinboardIdstringYesPinboard ID (e.g., pb-abc123)

Request Body

FieldTypeRequiredDescription
pin_idsstring[]YesArray of pin IDs to remove (max 50)

Example

import { PindownClient } from '@pindownai/client-js' const client = new PindownClient({ apiKey: process.env.PINDOWN_API_KEY }) const result = await client.pinboards.batchRemovePins('pb-abc123', [ 'p-pin1', 'p-pin2', 'p-pin3' ]) console.log(`Removed: ${result.removed.length}`) console.log(`Failed: ${result.failed.length}`)

Response

{ "success": true, "data": { "removed": ["p-pin1", "p-pin2"], "failed": [ { "id": "p-pin3", "error": "Pin not found on pinboard" } ] }, "message": "Removed 2 pins" }

Response Fields

  • removed: Array of pin IDs that were successfully removed
  • failed: Array of pins that failed to remove with error messages

Notes

  • Maximum 50 pins per batch request
  • Each pin is processed independently - if one fails, others still succeed
  • Removing a pin from a pinboard does not delete the pin itself
  • Pins are also removed from the pinboard’s layout if they were positioned

Next Steps