a month ago
Hello,
I am encountering a discrepancy between the Dashboard and the Public API.
1. In the Dashboard (browser), I see my active projects (e.g., "sincere-delight", "edavladoni-max's Projects").
2. However, when I generate a new API Token (Account Settings -> Tokens) and query the GraphQL API me { projects { edges { node { name } } } }), it returns an empty list [].
3. The token seems to be scoped to a different/empty context than my actual workspace.
Account Email: edavladoni@gmail.com
Token ID (partial): 18ff...
Could you please verify if my API tokens are correctly scoped to my primary workspace?
1 Replies
a month ago
The issue is with your GraphQL query structure, not your token scope. Your account and workspace are correctly configured with 2 projects (sincere-delight and zooming-exploration) in your "edavladoni-max's Projects" workspace. In Railway's API, projects belong to workspaces rather than directly to the user object. Instead of querying me { projects { ... } }, you need to traverse through workspaces first. Try querying me { workspaces { edges { node { name projects { edges { node { name } } } } } } } to fetch your projects through the workspace hierarchy. Your account token created from Account Settings > Tokens should have full access to your resources when using the Authorization: Bearer <TOKEN> header.
Status changed to Awaiting User Response Railway • about 1 month ago
a month ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • about 1 month ago