Skip to content

API Key Refused

An API key is the secret string, starting with dbk_, that a script or service sends to DownBad in place of signing in. This page takes you from a refusal to a key that works. How keys are made and revoked is in Create and Revoke API Keys.

One of these:

  • A program using a key is refused, and the refusal says the key was revoked.
  • A program using a read key is refused when it tries to change something.
  • Making a key under Account › API keys says Viewers can make only read keys.
  • Making a key says the account already has 25 active API keys.

Each has its own section under Fix it.

Each of these refusals is DownBad applying a rule to your account’s keys, not an outage. A refusal names the rule that refused it, so the section below that matches its words is the fix.

Open Account › API keys in DownBad. The list shows each key’s name, its scope (Read, or Read and write), its first characters (such as dbk_1a2b3c4d…), when it was created and when it was last used. A key that no longer works shows Revoked.

Match the key your program uses to a row by its first characters: the first 12 characters of the key in your program are the ones the list shows.

Someone on your account revoked the key, so DownBad refuses it on every request from then on. A revoked key can’t be turned back on.

  1. In Account › API keys, find the key by its first characters and check that it shows Revoked.

  2. Choose New API key and make a key with the same name and scope. See Create a key.

  3. Copy the new key and put it in your program’s settings in place of the old one.

The key’s scope is Read: it can look at your monitors, incidents and settings, but not change them. A key’s scope can’t be changed after it is made.

  1. In Account › API keys, check that the key your program uses shows Read.

  2. Ask yourself whether the program really needs to change things. If it only shows data, leave the key as it is and stop the program from making the change.

  3. If it does need to change things, make a new key with Read and write (an Owner or Editor has to make it, see the next section), put it in the program, then revoke the read key.

Your role on this account is Viewer, which can look at the account but not change it. So a key you make can only read, and you can revoke only the read keys you made yourself.

  1. Make a Read key instead, if the program only needs to look.

  2. If the program has to change things, ask an Owner or Editor of the account to make a Read and write key for it, or to give you the Editor role.

  3. To revoke a key someone else made, ask an Owner or Editor to revoke it.

An account can hold 25 keys that aren’t revoked. Revoked keys don’t count, so revoking one makes room.

  1. In Account › API keys, look for keys that show Never used, or a Last used time long ago, and for keys whose program you have retired.

  2. Choose Revoke on one you no longer need, and confirm.

  3. Choose New API key again.

Run the program again with the new or changed key. In Account › API keys, that key’s Last used time moves to now (it’s updated at most once a minute), which shows DownBad accepted it.

Before you ask for help, collect:

  • the key’s name and its first 12 characters as the list shows them, never the whole key
  • the refusal your program or the page showed, word for word, and when
  • your role on the account (Owner, Editor or Viewer)

Then send all of it to us through Contact Us.