Skip to Content
Pindown.ai is in early alpha - features may change
Pages APICreate a Page

Create a Page

Create a new page to organize pins in a structured document.

Endpoint

POST /v1/pages

Authentication

Requires API key with pages:write scope.

Authorization: Bearer pk_live_your_api_key

Request Body

FieldTypeRequiredDescription
metadataobjectYesPage metadata including title
pinsstring[]NoArray of pin IDs to add initially (default: [])
is_publicbooleanNoPublic visibility (default: false)

Metadata Object

FieldTypeRequiredDescription
titlestringYesPage title
tagsstring[]NoTags for organization

Example

import { PindownClient } from '@pindownai/client-js' const client = new PindownClient({ apiKey: process.env.PINDOWN_API_KEY }) // Create page const page = await client.pages.create({ metadata: { title: 'Monthly Sales Report', tags: ['sales', 'monthly', 'report'] } }) console.log(`Page created: ${page.id}`)

Response

{ "success": true, "data": { "id": "pg-abc123xyz", "title": "Monthly Sales Report", "created_at": 1703123456789 }, "message": "Page created successfully" }

Next Steps