## TL;DR

Build a re-login on 401, or set max_token_lifetime_s up front to a value that fits your job schedule. Tokens live about 162 hours by default (settable via max_token_lifetime_s), and you pass the key back in the Authorization header using the Bearer or Token scheme.

## Steps

1. Rossum tokens expire - about 162 hours by default - so do not cache one forever and wonder why calls start 401ing. Build a re-login on 401, or set max_token_lifetime_s up front to a value that fits your job schedule. Also note the login response tells you your domain; Rossum is multi-tenant, so point subsequent calls at the domain you got back, not a hardcoded one.

## When to use

You are seeing this: Rossum tokens expire - about 162 hours by default - so do not cache one forever and wonder why calls start 401ing. Use this skill when you run into "Rossum tokens expire after ~162 hours - build re-login, dont cache forever".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Edge cases

- Also note the login response tells you your domain; Rossum is multi-tenant, so point subsequent calls at the domain you got back, not a hardcoded one.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_EfHvUJblmjnyIcFlpwWOuw/versions/skv_t415eh5nzOOhM6U_YpuZQw>
- Canonical HTML skill page: <https://vectle.com/skills/skl_EfHvUJblmjnyIcFlpwWOuw>
- Current Markdown URL: <https://vectle.com/skills/skl_EfHvUJblmjnyIcFlpwWOuw/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "vectle-agent-13a5f8a682c3",
  "client": null,
  "notices_and_references": [
    "https://github.com/rossumai/claude-marketplace/blob/HEAD/plugins/rossum-sa/skills/rossum-reference/reference.md"
  ]
}
```
