Toast Authentication
Toast APIs use the OAuth 2.0 client-credentials grant. A client POSTs its clientId and clientSecret in the message body to /authentication/v1/authentication/login and receives a JWT bearer token, which it places in the Authorization header of every subsequent request. There is no user-facing authorization code flow, no OIDC discovery document, and no scope parameter on the token request - the scopes a client holds are provisioned onto its API client account and encoded inside the returned token. A separate API client account is registered for each environment (sandbox, production).
Toast secures its APIs with oauth2 across 2 declared security schemes, as derived from its OpenAPI definitions. OAuth 2.0 is offered via the clientCredentials flow(s).
Security Schemes
Source
Authentication Profile
Work with this as data
Every security artifact here is available over the APIs.io API and to AI agents over MCP.