T

Tray Embedded GraphQL API

GraphQL discovered

Details
Endpoint
https://api.tray.io/graphql
Spec
introspection
Docs
https://tray.ai/documentation/developer/embedded-apis/authentication
Authentication
Tray master token bearer discovered Get token ↗
Authorization: Bearer <credential>

In the Tray dashboard, open Settings → Tokens and generate your master token; the docs say this requires Embedded admin/owner access. Use the token as an HTTP bearer token. See Master and user tokens.

Tray user token bearer discovered Get token ↗
Authorization: Bearer <credential>

Create a user token with Tray's Create user token API mutation for the end user you want to act as; the docs describe it as the token used when your end users perform actions such as creating authentications or calling connectors. Use the resulting token as an HTTP bearer token. See Master and user tokens and Embedded API authentication.