Skip to main content
Connect Railway to add your workspaces, projects, services, and deployments to your Asset Map.

What it maps

The map connects a deployment to its service and environment so agents can identify which part of your application it belongs to.

Access required

Use a Railway workspace API token to connect one workspace. An account token can cover multiple workspaces available to its owner. See Railway API token types. Antigen uses the token to read resource metadata. Railway tokens may also permit changes within their scope.

Connect Railway

1. Create a token

Open the Tokens page in your Railway account settings. Create a token named Antigen and select the workspace you want to map. To connect all workspaces available to your account, select No workspace instead. Copy the token. Use a workspace or account token for this integration; a project token covers only one project environment.

2. Complete the connection

Open Settings → Integrations → Railway in Antigen. Paste the token and select Connect. The workspace’s resources appear in your Asset Map as discovery progresses. For separate workspace tokens, create a connection for each workspace.

Troubleshooting

A workspace is missing

Check the token’s scope. A workspace token can access only the workspace selected when you created it. An account token depends on its owner’s workspace membership.

The token is rejected

Confirm that you supplied an account or workspace API token and that it has not been revoked.