Railway Connection
Learn how to configure a Railway Connection for Infisical.
Infisical supports the use of API Tokens to connect with Railway.
Create a Railway API Token
A team token provides access to all resources within a team. It cannot be used to access personal resources in Railway.
Click the profile image in the top-right corner and select 'Account Settings'
In the personal settings sidebar, click on 'Tokens'
Enter a token name and select a team
Make sure to provide a descriptive name and select the correct team.
Click on 'Create'
Save the token
After clicking ‘Create’, your access token will be displayed. Save it securely for later use.
A team token provides access to all resources within a team. It cannot be used to access personal resources in Railway.
Click the profile image in the top-right corner and select 'Account Settings'
In the personal settings sidebar, click on 'Tokens'
Enter a token name and select a team
Make sure to provide a descriptive name and select the correct team.
Click on 'Create'
Save the token
After clicking ‘Create’, your access token will be displayed. Save it securely for later use.
If no team is selected, the token will be associated with your personal Railway account and will have access to all your individual and team resources.
Click the profile image in the top-right corner and select 'Account Settings'
In the personal settings sidebar, click on 'Tokens'
Enter a token name and select 'No workspace'
Provide a descriptive name and ensure no team is selected. This will create an account-level token.
Click on 'Create'
Save the token
After clicking ‘Create’, your access token will be shown. Save it for future use.
Project tokens are limited to a specific environment within a project and can only be used to authenticate requests to that environment.
Open your Railway dashboard and click on a project
On the project page, click 'Settings' in the top-right corner
In the left sidebar, scroll to the bottom and click on 'Tokens'
Enter a token name and select an environment
Provide a descriptive name and select the appropriate environment for the token.
Click on 'Create'
Save the token
After clicking ‘Create’, the access token will be displayed. Be sure to save it for later use.
Create a Railway Connection in Infisical
Navigate to App Connections
In your Infisical dashboard, go to Organization Settings and open the App Connections tab.
Select Railway Connection
Click + Add Connection and choose Railway Connection from the list of integrations.
Fill out the Railway Connection form
Complete the form by providing:
- A descriptive name for the connection
- An optional description
- The type of token you created earlier
- The token value from the previous step
Connection created
After submitting the form, your Railway Connection will be successfully created and ready to use with your Infisical projects.
Navigate to App Connections
In your Infisical dashboard, go to Organization Settings and open the App Connections tab.
Select Railway Connection
Click + Add Connection and choose Railway Connection from the list of integrations.
Fill out the Railway Connection form
Complete the form by providing:
- A descriptive name for the connection
- An optional description
- The type of token you created earlier
- The token value from the previous step
Connection created
After submitting the form, your Railway Connection will be successfully created and ready to use with your Infisical projects.
To create a Railway Connection via API, send a request to the Create Railway Connection endpoint.