Authentication & Encryption | TTF Docs
Skip to main content
api reference

Authentication & Encryption

Bearer JWT authentication, Route Deck API keys, FormX isolated auth, and optional X-Payload-Encrypted headers.

1. Bearer JWT Authentication (Core Suite)

Obtain an access token via POST /api/auth/login or the Sign in with TTF PKCE flow (POST /api/sso/token), then send it in the Authorization header:

http
Authorization: Bearer <your-jwt-token>

2. Route Deck Developer API Keys

Server-to-server calls to /api/route-deck/v1/* authenticate using a Route Deck API key generated from /api/route-deck/api-keys.

3. Isolated App Tokens

  • Developer Console (/api/console/*): Uses a Developer JWT scoped solely to the developer's own third-party SsoClient apps.
  • Formx Dashboard (/api/forms/*): Uses a FormX JWT (formxAuthMiddleware), separate from management users.
  • Third-Party SSO (aud: 'ttf-identity'): Valid only on GET /api/sso/userinfo.

4. Payload Encryption Header

Client apps using encrypted request/response envelopes pass X-Payload-Encrypted alongside X-Client:

http
Content-Type: application/json
Authorization: Bearer <token>
X-Payload-Encrypted: true