Tray Embedded / Embedded APIs / Intro to the APIs / Basic calls

Basic calls

Authentication

Every query must be authenticated using an Authorization header which includes your master API token (obtained from the Partner Dashboard):

Authorization: "Bearer <your-token>"

Basic API calls

curl 'https://tray.io/graphql' \\
-X POST \\
-H 'Authorization: Bearer 3c1df3ef-xxx-xxxx-xxx-xxx' \\
--data-binary '{"query":"{ users(criteria: {userId: \\"8db466c0-a041-xxx-xxx-xxxxx-xxx\\"}) { edges { node {id externalUserId } }}}"}