List Pinterest boards
curl --request GET \
--url https://api.social-api.ai/v1/accounts/{id}/boards \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/accounts/{id}/boards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/accounts/{id}/boards"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"board_id": "8828",
"id": "sapi_board_01HZ9X3Q4R5M6N7P8V2K0W1J",
"name": "Recipes",
"privacy": "PUBLIC"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Accounts
List Pinterest boards
Returns the boards for a connected Pinterest account.
GET
/
accounts
/
{id}
/
boards
List Pinterest boards
curl --request GET \
--url https://api.social-api.ai/v1/accounts/{id}/boards \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/accounts/{id}/boards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/accounts/{id}/boards"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"board_id": "8828",
"id": "sapi_board_01HZ9X3Q4R5M6N7P8V2K0W1J",
"name": "Recipes",
"privacy": "PUBLIC"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}