---
title: "Your API key is missing or wrong"
description: "The API refused your request because it could not accept the API key you sent: it is missing, wrongly formed, not one of ours, past its expiry date, or…"
canonical: "https://www.scriptivox.com/errors/api-key-invalid"
last-updated: "2026-11-24"
---

# Your API key is missing or wrong

> The message: "Missing API key. Provide via Authorization header or x-api-key header."

## What happened
The API refused your request because it could not accept the API key you sent: it is missing, wrongly formed, not one of ours, past its expiry date, or paused for a while because it was refused too many times. Nothing was started.

## Why it happens
- No key was sent, or it was sent in the wrong place. The key goes in the `Authorization` header or the `X-Api-Key` header.
- The key is cut off or has extra characters. A key is `sk_live_` followed by a long string of lowercase letters a to f and numbers. Anything else is refused as the wrong format before we look it up.
- The key does not exist. It may belong to another account, have a typo, or be a key you never created.
- The key has expired. A key made with an expiry date stops working on that date.
- The key was refused many times in a short while. After repeated refusals of a key that is wrong, expired or revoked, we pause that key. The pause gets longer if it keeps happening, and while it lasts every request with that key is refused. The message says how long the pause can be.
- In an AI app, the connection's sign-in has ended or is no longer valid. A connection that goes unused for a long time ends, and every connection ends on its own after a while.

## What to do
1. Check how the key is sent: `Authorization: sk_live_…` (a `Bearer ` prefix is also accepted) or `X-Api-Key: sk_live_…`.
2. Compare the key with the one you saved when you created it. A key's full value is shown only once, on the **API Keys** page of the API dashboard. If you are not sure you have it right, choose **Create Key** and use the new key. In the **Create API Key** window, **Expires** chooses whether a key stops working after 30 days, 90 days, a year, or never.
3. If the message says the key was refused too many times, stop sending requests with it. Find out why it was refused (a wrong, expired or revoked key), and use a working key. A new key from **Create Key** is not paused. The old key can be used again when its pause ends.
4. Send the request again to `https://api.scriptivox.com/v1`.

### In Claude, ChatGPT and other AI apps
1. If the app was set up with an API key in its settings, fix that key there, or remove the key so the app signs in with your account instead.
2. If the app signs in with your account, reconnect it: reconnect the Scriptivox connector in the app and sign in again. That makes a new connection.

## Were you charged?
No. Nothing was started, so nothing was used.

## Still stuck?
Email support@scriptivox.com with:
- the email address of your Scriptivox account
- the name of the key as the **API Keys** page shows it (never the key itself), and the `request_id` from the answer
- when it happened, with your time zone
- the exact message you saw

In Claude, ChatGPT or another AI app, you can also ask it to send us a problem report: it shows you the report first and sends it only when you say yes.

## For developers
`401 INVALID_API_KEY`, answered at once on the request. Sending the same request again with the same key gives the same answer; fix the key first. Repeated refusals of one key pause it for a while, and the pause is answered with `401` too.

The sentences you can get:

- No key sent: `Missing API key. Provide via Authorization header or x-api-key header.`
- A key not shaped like a key: `This is not a valid API key: a key starts with sk_live_ and has no extra characters. Check how your code sends the key.`
- A key that does not exist: `This API key was not recognized. Check that you copied the whole key, or create a new one at https://platform.scriptivox.com/keys`
- A key past its expiry: `API key has expired. Create a new one at https://platform.scriptivox.com/keys`
- A key paused after repeated refusals: `This API key was refused too many times in a short while, so it is paused for up to 30 minutes. Check that it is the right key, or create a new one at https://platform.scriptivox.com/keys`
- An AI-app connection whose sign-in has ended: `This connection's sign-in is no longer valid: it has ended or expired. Sign in to Scriptivox again from the app to make a new connection.`

```json
{
  "error": {
    "code": "INVALID_API_KEY",
    "message": "Missing API key. Provide via Authorization header or x-api-key header.",
    "docs_url": "https://www.scriptivox.com/errors/api-key-invalid",
    "help_id": "api-key-invalid",
    "request_id": "req_6fe725fffa7d9b98"
  }
}
```
A key that was revoked is a different code, `API_KEY_REVOKED`.

---

Every help page: https://www.scriptivox.com/errors.md (the list as JSON: https://www.scriptivox.com/errors.json)
