How can we help?

Railway Integration

Netanel Hugi
Netanel Hugi
  • Updated
Torii SMP
Torii Identity

Overview

Torii integrates with Railway and syncs:

  • The members of one Railway workspace, including their email, name and workspace role (Admin, Member or Viewer).
  • License usage for each member (one Railway license; Railway does not charge per member).
  • You can constantly stay updated with application information from our Integrations Page >> Integration Capabilities button >> Integration Capabilities table.

Requirements

Accounts & Permissions

To connect this integration, we require the following:

  • A Railway workspace token for the workspace you want to sync. To use the remove-user and change-role workflow actions, create the token with a workspace Admin, because only Admins can remove members and change roles in Railway.
  • Only Pro and Enterprise workspaces can have more than one member.

Required keys

  • Workspace Token - a token created in Railway Account Settings >> Tokens, with your workspace selected.
  • Workspace ID - the ID of the Railway workspace.

How to Generate the Required Values

Step 1: Create a workspace token

  1. Sign in to Railway and open the tokens page at railway.com/account/tokens.
  2. Enter a name for the token (for example, Torii).
  3. In the workspace dropdown, select the workspace you want to sync. Do not choose "No workspace".
  4. Click Create and copy the token.

Step 2: Copy the Workspace ID

  1. In Railway, open the settings of the same workspace.
  2. Copy the Workspace ID.

If you use the Railway CLI, you can also run railway whoami --json and copy the id of the workspace under workspaces.

Important
Project tokens (created in a project's settings) do not work with this integration. Use a workspace token.

How to Connect the Integration

  1. Go to the Integrations page in Torii.
  2. Search for Railway and click Connect.
  3. Enter your Workspace Token and Workspace ID.
  4. Click Connect.

Q&A

Q: Which Railway users does Torii sync?

A: Torii syncs the members of the workspace you connect. People who were invited but have not joined yet are not synced. To sync more than one workspace, connect each workspace separately with its own token and Workspace ID.

Q: Why do I see the role Viewer when Railway shows Deployer?

A: Torii shows the role name Railway's API returns. Railway's API calls the Deployer role VIEWER.



For any further questions, please contact Torii Support.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request