Skip to main content
Retrieves all Brand Boards for a specific account
GET https://services.leadconnectorhq.com/brand-boards/{locationId}

Autorización

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticación.
Version
string
default:"2021-07-28"
required
Versión de la API.

Path parameters

locationId
string
required

Query parameters

limit
number
default:"10"
Maximum number of brand boards to return
offset
number
default:"0"
Number of brand boards to skip for pagination
Search term to filter brand boards by name
deleted
boolean
default:"False"
Include deleted brand boards in results

Respuestas

brandBoards
object[]
required
Array of brand boards for the account
totalCount
number
default:"42"
required
Total number of brand boards matching the query
{
  "brandBoards": [
    {
      "_id": "507f1f77bcf86cd799439011",
      "name": "My Brand Board",
      "updatedAt": "2024-01-05T12:00:00.000Z",
      "default": false
    }
  ],
  "totalCount": 42
}
{}
{}
statusCode
number
default:"403"
message
string
default:"The token does not have access to this account"
{
  "statusCode": 403,
  "message": "The token does not have access to this account"
}
{}

Ejemplo

curl -X GET 'https://services.leadconnectorhq.com/brand-boards/YOUR_locationId' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28'
const response = await fetch('https://services.leadconnectorhq.com/brand-boards/YOUR_locationId', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LEADWAY_TOKEN}`,
    Version: '2021-07-28',
  },
});
const data = await response.json();
import os, requests
response = requests.request(
    'GET',
    'https://services.leadconnectorhq.com/brand-boards/YOUR_locationId',
    headers={
        'Authorization': f"Bearer {os.environ['LEADWAY_TOKEN']}",
        'Version': '2021-07-28',
    },
)
data = response.json()
<?php
$ch = curl_init('https://services.leadconnectorhq.com/brand-boards/YOUR_locationId');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('LEADWAY_TOKEN'),
        'Version: 2021-07-28',
    ],
]);
$data = json_decode(curl_exec($ch), true);