twitter

Usage guides

Authentication

The Cold DM API uses API keys to authenticate requests. You can view and manage your API keys here .


Bearer Authentication

The generated API secret key must be sent as a bearer token in the Authorization HTTP header of your outbound requests. Do not send the key as a query parameter.

cURL

curl -H "Authorization: Bearer <secret-key>" https://api.colddm.me/v1/campaigns

Javascript

const response = await fetch('https://api.colddm.me/campaigns', {
  headers: { Authorization: 'Bearer <secret-key>' },
})
warning

Your API key is like your password

Never share keys with others. Do not publish keys in public code repositories.

Previous
Getting started