Listing Private Number Pools
Retrieve a list of all private number pools in your Drop Cowboy account
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 getNumberPools() {
const pools = await client.listPools();
console.log(pools);
};
getNumberPools();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 number pools
application/json
pool_idstringOptional
namestringOptional
brand_idstringOptional
service_typestringOptional
number_countintegerOptional
get
/pool200
Array of number pools
Example Response
Last updated
Was this helpful?