Skip to content
Railway Project Tokens & CLI Permissions
hugohsieh-oecjfk
OP

15 days ago

I have two questions about project tokens:

  1. I manually created a token in Project Settings → Tokens. The value is partially masked, and there is no Copy or Reveal button. How can I obtain the full token securely? Is it only shown at creation?

image.png

  1. My Workspace ADMIN CLI login receives Not Authorized when calling projectTokenCreate. What authentication or permission is required? (Trace ID: 5298296748197781259)
Solved

1 Reply

Railway
BOT

15 days ago

For a value you can't copy from the Tokens page, the reliable path is to delete that token with its trash icon and create a new one from the same New Token form in Project Settings → Tokens. Save the new value somewhere secure (a secret manager or CI secret) at that point, then set it as RAILWAY_TOKEN wherever it's used.

For creating project tokens through the API, try an account token rather than the CLI login session. You can create one on your tokens page with "No workspace" selected. It can perform any API action you're authorized to do across your workspaces. Send it as Authorization: Bearer <token> to https://backboard.railway.com/graphql/v2.


Status changed to Awaiting User Response Railway • 15 days ago


Status changed to Solved hugohsieh-oecjfk • 15 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...