Listing APPROVED Audio Recordings
You can retrieve a list of audio recordings that are approved for use with the Drop Cowboy API.
To filter only recordings allowed via the API, use the api_allowed=true query parameter.
Audio recordings can be used in RVM campaigns or other compatible endpoints.
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 getApprovedRecordings() {
const recordings = await client.listRecordings({ api_allowed: true });
console.log(recordings);
};
getApprovedRecordings();API Endpoint
GET
https://api.dropcowboy.com/v1/recording?api_allowed=trueExample Request
Required Headers
x-team-id- Your Team ID from API settingsx-secret- Your Secret Key from API settings
Required Query Parameters
api_allowed(boolean) - Filter results by whether recordings are API-approved (must be true)
Invoke our recordings api from your application by sending an HTTP GET containing with the attributes listed.
Requires two headers: x-team-id and x-secret. Both must be sent with each request.
Filter brands by whether API access has been granted or not.
Array of recordings
Array of recordings
Example Response
The response will be an array of media objects
Last updated
Was this helpful?