Listing Private Number Pools

Retrieve a list of all private number pools in your Drop Cowboy account

Private number pools are groups of phone numbers registered to your approved brands.

Each pool is tied to a specific brand and service type (e.g., RVM or SMS).


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

GET


Example Request

Required Headers

  • x-team-id - Your Team ID from API settings

  • x-secret - Your Secret Key from API settings

List number pools

get

Invoke our number pool api from your application by sending an HTTP GET containing with the attributes listed.

Authorizations
x-team-id / x-secretstringRequired

Requires two headers: x-team-id and x-secret. Both must be sent with each request.

Responses
chevron-right
200

Array of number pools

application/json
pool_idstringOptional
namestringOptional
brand_idstringOptional
service_typestringOptional
number_countintegerOptional
get
/pool
200

Array of number pools


Example Response

The response will be an array of pool objects

Last updated

Was this helpful?