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

Add Pin to Pinboard

Add an existing pin to a pinboard with layout position.

Endpoint

POST /v1/pinboards/:boardId/pins

Authentication

Requires API key with pinboards:write scope.

Request Body

FieldTypeRequiredDescription
pin_idstringYesThe pin ID to add
positionobjectNoGrid layout position {x, y, w, h} in grid slots (not pixels)

Position Object

Grid-based positioning using slots:

FieldTypeDescription
xnumberHorizontal position in grid slots
ynumberVertical position in grid slots
wnumberWidth in grid slots (1 = 1x slot, 2 = 2x slot, etc.)
hnumberHeight in grid slots (1 = 1x slot, 2 = 2x slot, etc.)

Note: Grid slots are logical units, not pixels. The actual pixel size is determined by the UI rendering.

Example

import { PindownClient } from '@pindownai/client-js' const client = new PindownClient({ apiKey: process.env.PINDOWN_API_KEY }) // Add pin to pinboard await client.pinboards.addPin('pb-abc123', { pin_id: 'p-xyz789', position: { x: 0, y: 0, w: 2, h: 1 } }) console.log('Pin added to pinboard')

Response

{ "success": true }

Rate Limiting

This endpoint costs 2 tokens per request.