Start

Authentication

Authenticate trusted services with scoped credentials or user-facing applications with OAuth 2.1 Authorization Code and PKCE.

Reviewed November 3, 2026·AI-readable

Developer credentials

Create a credential in Settings → Developer API. The token starts with trv_ and is shown once. Send it in every API or bearer-authenticated MCP request.

http
Authorization: Bearer trv_KEY_ID_SECRET

OAuth tokens

OAuth access tokens start with troa_ and expire after one hour. Refresh tokens start with tror_, expire after 30 days, and rotate on every successful refresh. Authorization codes expire after ten minutes and can be used once.

Credential restrictions

  • Scopes limit operations.
  • Allowed-account grants limit delivery targets.
  • Expiration and revocation are checked on every request.
  • The default request limit is stored per developer client.

Secret storage

Keep tokens server-side

Store tokens in a secret manager. Never place a developer credential in browser code, mobile binaries, URLs, prompts, logs, screenshots, or source control.

Was this page helpful?