Skip to main content

Choosing a credential

Two credentials reach this API. Which you need comes down to whose account your software works on:

  • API key — you are automating your own Telebroad account (a script sending texts from your company's numbers). It acts as you.
  • OAuth — you are building an app that other Telebroad customers sign into, acting inside their account with their permission — like connecting a third-party app to your Google account.
API keyOAuth 2.1
Who is it forYou, running software for your own accountAn app acting inside someone else's account, with their permission
How you set it upCreate one in the admin center — no code.Add your app in the admin center, then have a developer build the login screen where users approve access.
Who has to approve itNobody — an account admin just creates it.Each user approves it once on a permission screen, and picks what your app may access.
Who it acts asThe whole account, not any one person.The specific person who approved your app.
How long it lastsUntil it expires or someone turns it off.Short passes of about an hour that renew automatically in the background.
Where it can runYour own server only — never an app or web page.On your server, but the approval step happens in the user's browser.
Does anyone need to log inNo — it runs on its own, even on a schedule.Yes — the user logs in and approves once at the start.

Pick a key if​

  • You are automating your own Telebroad account.
  • It runs on its own, with nobody logged in — a nightly report, a background service, an internal dashboard.
  • No outside user's permissions need to apply.

Pick OAuth if​

  • You are building an app that other companies connect their Telebroad account to.
  • Your app should see only what the person using it can — nothing more.
  • You want each person to approve and revoke access themselves, not everyone sharing one key.
Never ship a key in client-side code

Anyone with the key can use it — no approval, no quick expiry. Putting it in a mobile app, a web page, or anything a user can inspect is like publishing a password. For anything that runs on someone else's device, use OAuth instead.

What each one is allowed to do​

Both are limited by their scopes — the list of things the credential is allowed to do. But there is one more difference in how far each can reach:

  • OAuth — also limited by the permissions of the person who approved it. A scope can only shrink what they could already do in the portal, never grant more — so two people's tokens on the same account can return different data.
  • API key — for now, limited only by its scopes; no person's role narrows it, so within those scopes it reaches the whole account. See What a key can reach (a change is planned).

You can use both at the same time​

For example, a company might use an API key for its own automated software while its staff also connect a separate app through OAuth. The two never clash — the API simply sees two credentials, each with its own level of access.