API Credentials
To access the Drop Cowboy API, you need your API Credentials.
To access the Drop Cowboy API, you must first complete the Know Your Customer (KYC) process. This includes verifying your identity and registering your brand(s) in the Drop Cowboy Trust Center.
Once approved, you’ll receive a Team ID and Secret Key used to authenticate requests to the API.
Getting Your Credentials
Log in to your Drop Cowboy account.
Navigate to My Account → API.
Locate your:
team_idsecret

⚠️ Keep these credentials secure. Do not share them publicly or include them in client-side code (such as browser JavaScript).
If you're working with a developer or a third-party integration, share these keys only with trusted partners.
Using Credentials in the API
When calling the Drop Cowboy API directly, include your credentials in each request:
For HTTP operations → include in the request headers
Example (GET request)
Using Credentials with the Drop Cowboy SDK
The Drop Cowboy SDK allows you to authenticate globally or per instance.
Option 1 — Global Configuration
Create a config file at ~/.dropcowboyrc:
baseUrlis optional — it defaults tohttps://api.dropcowboy.com/v1.
Once created, any SDK instance you initialize will automatically use these credentials.
Option 2 — Per-instance Configuration
You can also pass credentials directly when initializing the client.
Best Practices
Store your credentials securely (e.g., environment variables or secrets manager).
Never commit your keys to version control (like GitHub).
Rotate keys periodically for better security.
💡 Tip: If you receive an “Unauthorized” or “Missing Credentials” error, double-check your
x-team-idandx-secretvalues or verify that your API access has been approved in the Trust Center.
Last updated
Was this helpful?