Listing ALL Brands
Using the SDK
// Download the helper library from https://www.npmjs.com/package/dropcowboy
const { DropCowboy } = require("dropcowboy"); // Or, for ESM: import { DropCowboy } from "dropcowboy";
// Find your Team ID and Secret at dropcowboy.com/appv1/#/api
// and set the environment variables.
const teamId = process.env.DROPCOWBOY_TEAM_ID;
const secret = process.env.DROPCOWBOY_SECRET;
const client = new DropCowboy({ teamId: teamId, secret: secret });
async function getTrustedBrands() {
const brands = await client.listBrands();
console.log(brands);
};
getTrustedBrands();API Endpoint
Example Request
Required Headers
Authorizations
x-team-id / x-secretstringRequired
Requires two headers: x-team-id and x-secret. Both must be sent with each request.
Responses
200
Array of brands
application/json
brand_idstringOptional
company_namestringOptional
dba_namestringOptional
registeredbooleanOptional
api_allowedbooleanOptional
get
/brand200
Array of brands
Example Response
Last updated
Was this helpful?