All pages

Developer docs

Authentication

View as Markdown

API keys

Create keys on the MCP and API page of uetr.ai. A key acts for the user who created it, on the account they are on, with their team rights, and has one of two access levels:

  • Read: every read the user can make on the website.
  • Read and change: also every change the user can make there, such as adding, renaming, archiving or restoring transfers.

Some operations are the account owner's alone, as on the website. Their pages say so, and a teammate's keys cannot call them. Keys work on every plan, a free account included, within the plan's limits.

Send the key only in the Authorization header:

curl "https://uetr.ai/api/v1/account" \
  -H "Authorization: Bearer $UETR_API_KEY"

A key found in a web address, in its path or its query, is revoked at once and the call is refused with credential_in_url. Keep keys out of source code and logs.

API keys only, from a server

This API takes API keys only. A connected app's access token is refused here with invalid_credential; the MCP server at https://uetr.ai/mcp takes both API keys and connected apps' tokens.

Call this API from your server, never from a web page. It sends no CORS headers and refuses a browser's preflight request, so a call from a web page fails in the browser, and a key in a web page could be read by anyone who opens it.

Rotating and revoking a key

To rotate a key, create a new one, move your systems to it, then revoke the old one on the MCP and API page. A revoked key stops working at once, and calls with it answer invalid_credential. When you revoke a key you can also remove what it set up that is still waiting for the account owner, and replace payment record links it shared. While the payment for a team account is overdue, its teammates' keys are paused and answer credential_suspended. When an account is deleted, every key is revoked.

AI apps

Claude, ChatGPT and other AI apps connect to https://uetr.ai/mcp and sign in through https://auth.uetr.ai with OAuth 2.1 and PKCE: the person approves the app on uetr.ai, choosing read or read and change access, and the app receives its own tokens. An access token lasts one hour and the app renews it; a connection unused for 30 days signs in again. Disconnect an app at any time on the MCP and API page. Setup steps for each app are on uetr.ai/mcp. A script or an agent framework without a browser can instead send an API key to https://uetr.ai/mcp, in the Authorization header as for this API.

Without a credential, https://uetr.ai/mcp answers starting a session and listing tools. A tool call without one gets HTTP 401 with a WWW-Authenticate: Bearer challenge naming scope="read write", and the app signs in from there. An Authorization header in a scheme other than Bearer counts as no credential. A key or token that is unknown, expired or revoked gets HTTP 401 with error="invalid_token" on every message, so the app renews its token or signs in again.

The sign-in asks for read and change access deliberately: when the person allows both, a tool that makes changes never needs a second sign-in. A person can still allow reading only, and a tool that makes changes then gets HTTP 403 with error="insufficient_scope", so the app can ask for change access.

Versions

Versions are dates. A key keeps the version it was created on, and a call to this API or to https://uetr.ai/mcp can name another known version in the uetr-version header; an unknown version, or the header sent empty, is refused with unsupported_version. The current version is 2026-10-14. See the changelog. A version is named only in that header: the base address stays https://uetr.ai/api/v1 under every version, and another address, such as one starting with /api/v2, is not part of the API and answers with the website's not-found page, not a problem+json refusal.