Impersonation via the GraphQL API

My web app is connecting to the 8base GraphQL API via a token. It appears as if the token is not correlated to any specific users in my base. When one of my users (8base user) is creating a new approval record for an order through the API, I would like to make sure the “created by” field on that row is populated with that user. Is there any documentation or example on how to achieve this?

Hey @douglaslassance - are you using an API token? If so, those are not registered to a user.

Please reference our authentication docs. https://docs.8base.com/docs/8base-console/authentication

What you’re trying to accomplish will occur automatically when using a valid JWT.

Makes sense, thank you for your answer.