Get Pin
Retrieve a specific pin by ID.
Endpoint
GET /v1/pins/:pinIdAuthentication
Requires API key with pins:read scope.
Authorization: Bearer pk_live_your_api_keyPath Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pinId | string | Yes | The 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
Client-JS
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
- Update Pin - Update pin content
- Delete Pin - Remove a pin
- List Pins - Get all your pins