Reference

Authentication

Every request carries an API key. Create, rename and revoke keys in the developer console.

Send your key as a bearer token. Keys start with ds_live_.

Request

curl https://www.deepscribble.com/api/v1/balance \
  -H "Authorization: Bearer ds_live_…"

Response

{
  "object": "balance",
  "balance": { "amount": "1.882", "currency": "INR" },
  "price": { "per_1k_characters": "2.000", "currency": "INR" }
}

Managing keys

  • Create keys in the developer console. A key is shown once, at creation, so store it right away.
  • Give each app or environment its own key, up to 10 at a time.
  • Revoking a key stops it immediately. Its usage stays in your history.
  • The console shows when each key was last used, and lets you filter usage by key.

Keeping keys safe

Call the API from your server and keep keys in environment variables or a secrets manager. If a key might have leaked, create a new one, switch over, then revoke the old one.

All keys on your account share one balance. See Pricing.
NextErrors & limits