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

Get Pin

Retrieve a specific pin by ID.

Endpoint

GET /v1/pins/:pinId

Authentication

Requires API key with pins:read scope.

Authorization: Bearer pk_live_your_api_key

Path Parameters

ParameterTypeRequiredDescription
pinIdstringYesThe pin ID (e.g., p-abc123def456)

Response

Success (200 OK)

{ "success": true, "data": { "id": "p-abc123def456", "owner_id": "usr_xyz", "data_type": "pin-card", "is_public": false, "pin_type": "stat-cards", "pin_layout": "1x1", "content": { "cards": [{ "title": "Total Sales", "value": "$125,430", "change": "+18.2%", "trend": "up" }] }, "metadata": { "title": "Sales Dashboard", "tags": ["sales", "kpi"], "allow_edit": false, "require_sign_in": false, "allow_comments": false, "created_at": "2024-11-01T15:30:00Z", "updated_at": "2024-11-01T16:45:00Z" } } }

Example

import { PindownClient } from '@pindownai/client-js' const client = new PindownClient({ apiKey: process.env.PINDOWN_API_KEY }) // Get pin details const pin = await client.pins.get('p-abc123def456') console.log(`Pin: ${pin.metadata.title}`)

Error Responses

404 Not Found

Pin doesn’t exist or you don’t have access:

{ "error": { "code": "NOT_FOUND", "message": "Pin not found or you don't have access" } }

401 Unauthorized

{ "error": { "code": "UNAUTHORIZED", "message": "Invalid or missing API key" } }

403 Forbidden

{ "error": { "code": "SCOPE_REQUIRED", "message": "This endpoint requires the 'pins:read' scope" } }

Rate Limiting

This endpoint costs 1 token per request.

Next Steps