Update Sharing Settings
Control who can access your pinboard.
Endpoint
POST /v1/pinboards/:boardId/shareAuthentication
Requires API key with pinboards:share scope.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
is_public | boolean | No | Make pinboard publicly accessible |
require_sign_in | boolean | No | Require sign-in to view |
allow_comments | boolean | No | Enable comments |
Example
Client-JS
import { PindownClient } from '@pindownai/client-js'
const client = new PindownClient({
apiKey: process.env.PINDOWN_API_KEY
})
// Make pinboard public
const result = await client.pinboards.share('pb-abc123', {
is_public: true,
allow_comments: true
})
console.log(`Share URL: ${result.shareable_url}`)
// Make private again
await client.pinboards.share('pb-abc123', {
is_public: false
})Response
{
"success": true,
"data": {
"id": "pb-abc123",
"is_public": true,
"require_sign_in": false,
"allow_comments": true
}
}Rate Limiting
This endpoint costs 3 tokens per request (email costs for notifications).