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

Batch Get Pinboards

Retrieve multiple pinboards by their IDs in a single request. This is more efficient than making individual GET requests.

Endpoint

POST /v1/pinboards/batch/get

Authentication

Requires API key with pinboards:read scope.

Authorization: Bearer pk_live_your_api_key

Request Body

FieldTypeRequiredDescription
pinboard_idsstring[]YesArray of pinboard IDs (max 100)

Example

import { PindownClient } from '@pindownai/client-js' const client = new PindownClient({ apiKey: process.env.PINDOWN_API_KEY }) const result = await client.pinboards.batchGet([ 'pb-abc123', 'pb-xyz789', 'pb-def456' ]) console.log(`Found: ${result.found.length}`) console.log(`Not found: ${result.not_found.length}`) console.log(`Permission denied: ${result.permission_denied.length}`)

Response

{ "success": true, "data": { "found": [ { "id": "pb-abc123", "title": "My Pinboard", "pins": ["p-pin1", "p-pin2"], "layout": {}, "is_public": false, "owner_id": "user-xyz789", "created_at": 1703123456789, "updated_at": 1703123456789 } ], "not_found": ["pb-xyz789"], "permission_denied": ["pb-def456"] }, "message": "Retrieved 1 pinboards" }

Response Fields

  • found: Array of pinboards that were successfully retrieved
  • not_found: Array of pinboard IDs that don’t exist
  • permission_denied: Array of pinboard IDs you don’t have access to

Notes

  • Maximum 100 pinboards per batch request
  • Pinboards you don’t have access to will be in permission_denied, not not_found
  • More efficient than individual GET requests for multiple pinboards

Next Steps