connect
List Pinterest boards
Returns the boards available for a connected Pinterest account. Use this to get a board ID when creating a Pinterest post.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
accountIdstring
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.getPinterestBoards({ path: { accountId: 'account_abc123', },});console.log(data);{
"boards": [
{
"id": "123456789012345678",
"name": "Marketing Ideas",
"description": "Collection of marketing inspiration",
"privacy": "PUBLIC"
},
{
"id": "234567890123456789",
"name": "Product Photos",
"description": "Product photography",
"privacy": "PUBLIC"
}
]
}Empty
{
"error": "Unauthorized"
}Empty
Select Pinterest board POST
Complete the Pinterest connection flow. After OAuth, use this endpoint to save the selected board and complete the account connection. Use the X-Connect-Token header if you initiated the connection via API key.
Set default Pinterest board PUT
Sets the default board used when publishing pins for this account.