Create a Page
Create a new page to organize pins in a structured document.
Endpoint
POST /v1/pagesAuthentication
Requires API key with pages:write scope.
Authorization: Bearer pk_live_your_api_keyRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
metadata | object | Yes | Page metadata including title |
pins | string[] | No | Array of pin IDs to add initially (default: []) |
is_public | boolean | No | Public visibility (default: false) |
Metadata Object
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Page title |
tags | string[] | No | Tags for organization |
Example
Client-JS
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
- Get Page - Retrieve page details
- Add Pin to Page - Add pins to your page
- List Pages - List all your pages