---
title: "Errors and states"
url: "https://inboxnight.com/docs/errors.md"
canonical_url: "https://inboxnight.com/docs/errors"
last_updated: "2026-10-22"
type: "reference"
summary: "What inbox statuses and activity outcomes mean, why a request can answer 503 unavailable, and what to do next in each case."
related: ["https://inboxnight.com/docs/connect-gmail.md", "https://inboxnight.com/docs/plans-and-limits.md", "https://inboxnight.com/docs/activity-and-undo.md"]
---

# Errors and states

> **For AI agents:** the complete index of InboxNight pages is [llms.txt](https://inboxnight.com/llms.txt). Every page is also served as markdown at its URL plus .md.

What inbox statuses and activity outcomes mean, why a request can answer 503 unavailable, and what to do next in each case.

This page lists the states and messages you can run into, what each one means, and what to do. It covers inbox statuses, activity outcomes, the answer a service gives when it is not set up, and the error codes the API returns.

## Inbox statuses

| Status | What it means | What to do |
| --- | --- | --- |
| `active` | The inbox is connected and the patrol runs for it about every five minutes. | Nothing. This is the normal state. |
| `reauth_required` | Google reports that the grant is no longer valid, for example because access was revoked. The patrol skips this inbox. Nothing is deleted. | Connect the inbox again. See [Connect Gmail](https://inboxnight.com/docs/connect-gmail.md). |
| `paused_plan` | The account has no active plan, so Night Shift is not running. The inbox is paused. It is not patrolled but still counts as a seat while a subscription lasts. | Start or renew Night Shift to turn it back on, or disconnect the inbox. See [Plans and limits](https://inboxnight.com/docs/plans-and-limits.md). |
| `disconnected` | You disconnected the inbox. The grant was revoked and the stored token deleted. | Connect it again if you want it back. It does not count as a seat. |

## Activity outcomes

The [activity log](https://inboxnight.com/docs/activity-and-undo.md) shows what happened to each message. Most outcomes are ordinary: a rule action, a label, a second look or no match. A skipped entry means InboxNight did not act, and always states the reason.

| Skipped because | What it means | What to do |
| --- | --- | --- |
| A service is unavailable | A needed service, such as the AI model or Gmail access, cannot be reached. Nothing is applied and nothing is counted against you. | Wait, or write to hello@inboxnight.com if it persists. |
| The AI could not read the message | The model declined or could not read this message, so it was left alone. | Nothing. Open the message yourself, or write a rule that covers it. |

### Failures and retries

If InboxNight fails partway through a message, that message is marked as failed and a later pass tries it again. A message that is already done is never processed twice.

## The 503 provider_unavailable answer

When something InboxNight depends on cannot be reached, the request answers 503 `provider_unavailable` with a plain reason instead of pretending to work. When the answer says it is not retryable, trying again will not help. For example:

- Connecting a Gmail inbox, when Google access or secure token storage is not set up.
- Parsing or previewing a rule, when the AI model is not available.
- Sync now, when Gmail cannot be reached.

You are never charged for work that did not happen.

## Other refusals

- A Google account that cannot connect is refused with 403 `forbidden` and a message. See [Connect Gmail](https://inboxnight.com/docs/connect-gmail.md).
- An account with no active plan is refused with 402 `subscription_required` when it tries to connect an inbox or write a rule: Night Shift is paid up front, so start it first.
- A Google account that another InboxNight account already has connected is refused with 409 `conflict`.
- A label cannot be deleted while a rule uses it. The request answers 400 `invalid_input` and names the label.

## Error codes

API errors use one envelope, `{"error": {"code", "message", "fix", "docs_url", "retryable", "request_id"}}`, with stable codes you can branch on. Branch on `code`, never on the message. See [API](https://inboxnight.com/docs/api.md) for the routes. These are the codes it can return:

| Code | HTTP status | Retry | What it means | What to do |
| --- | --- | --- | --- | --- |
| `unauthorized` | 401 | No | The API key is missing, malformed, revoked or unknown. | Send a valid key in the Authorization header as "Bearer <key>". If the key was revoked, create a new one and retry. |
| `forbidden` | 403 | No | This request is not allowed for this key or account, for example a Google account that cannot be connected. | Use a key that belongs to the account, or connect an allowed Google account. See [Connect Gmail](https://inboxnight.com/docs/connect-gmail.md). |
| `plan_limit` | 402 | No | The account has reached a limit of its plan, for example the number of connected inboxes it allows. | Reduce usage to stay within the plan, or write to hello@inboxnight.com. Nothing was changed by the refused request. |
| `subscription_required` | 402 | No | The account has no active Night Shift plan. | Write to hello@inboxnight.com to start Night Shift, then retry. |
| `rate_limited` | 429 | Yes, with backoff | Too many requests for this API key. | Wait the number of seconds in the Retry-After header, then retry. Spread requests out to stay under the X-RateLimit-Limit value. |
| `invalid_input` | 400 | No | The request input is invalid. | Correct the field named in the message and resend. The routes and their fields are on the [API](https://inboxnight.com/docs/api.md) page. |
| `not_found` | 404 | No | Nothing exists at this address. | Check the path and any ids in it against the API reference, then retry. |
| `method_not_allowed` | 405 | No | This route does not accept that HTTP method. | Use the method named in the Allow response header, or the method listed for the route on the [API](https://inboxnight.com/docs/api.md) page. |
| `payload_too_large` | 413 | No | The request body is too large. | Keep the JSON body under 64 KB and send a smaller request. |
| `conflict` | 409 | No | The request conflicts with the current state of the resource. | Fetch the resource again, check its current state, then resend if the change still applies. |
| `provider_unavailable` | 503 | Yes, with backoff | A service InboxNight depends on, such as Gmail access or the AI model, is unavailable right now. | If retryable is true, retry later with exponential backoff. If it is false, retrying will not help right now. |
| `internal_error` | 500 | Yes, with backoff | An unexpected error occurred. | Retry once after a short wait. If it fails again, report the request_id to support. Nothing was charged. |

The messages in the last two columns are the general text for each code. The message inside a real response is specific to the request, and `retryable` in the response is the value to trust. A 429 comes with a `Retry-After` header.

## Related

- [Connect Gmail](https://inboxnight.com/docs/connect-gmail.md)
- [Plans and limits](https://inboxnight.com/docs/plans-and-limits.md)
- [Using the activity log and undo](https://inboxnight.com/docs/activity-and-undo.md)
