Listing ALL Audio Recordings
You can retrieve a list of audio recordings for use with the Drop Cowboy API.
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 getAllRecordings() {
const recordings = await client.listRecordings();
console.log(recordings);
};
getAllRecordings();API Endpoint
Example Request
Required Headers
Required Query Parameters
Authorizations
x-team-id / x-secretstringRequired
Requires two headers: x-team-id and x-secret. Both must be sent with each request.
Query parameters
api_allowedbooleanOptional
Filter brands by whether API access has been granted or not.
Responses
200
Array of recordings
application/json
media_idstringOptional
namestringOptional
created_atintegerOptional
api_allowedbooleanOptional
get
/recording200
Array of recordings
Example Response
Last updated
Was this helpful?