Use Railway to list projects, inspect their services and environments, monitor deployments, deploy a service, or roll back a deployment. Read or update service and shared environment variables through Railway's public GraphQL API.
Use project, service, and environment IDs from lookup actions in later release steps. Confirm the target environment before changing variables or starting a deployment.
Integrate Railway into workflows to list projects, manage services and environments, monitor deployments, trigger and roll back service deployments, and manage environment variables.
List Railway projects visible to the provided token
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. workspaceIdstring No Workspace ID to list projects from firstnumber No Maximum number of projects to return afterstring No Cursor for pagination
Parameter Type Description projectsarray Railway projects ↳ id string Project ID ↳ name string Project name ↳ description string Project description ↳ createdAt string Project creation timestamp ↳ updatedAt string Project update timestamp pageInfoobject Pagination information ↳ hasNextPage boolean Whether more projects are available ↳ endCursor string Cursor for the next page countnumber Number of projects returned
Get a Railway project with its services and environments
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. projectIdstring Yes Railway project ID
Parameter Type Description projectobject Project with services and environments ↳ id string Project ID ↳ name string Project name ↳ description string Project description ↳ createdAt string Project creation timestamp ↳ updatedAt string Project update timestamp ↳ services array Project services ↳ id string Service ID ↳ name string Service name ↳ icon string Service icon ↳ environments array Project environments ↳ id string Environment ID ↳ name string Environment name
Create a Railway project
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. namestring Yes Project name descriptionstring No Project description workspaceIdstring No Workspace ID to create the project in isPublicboolean No Whether the project should be publicly visible defaultEnvironmentNamestring No Name for the default environment prDeploysboolean No Whether to enable pull request deploys
Parameter Type Description projectobject Created project ↳ id string Project ID ↳ name string Project name
Update a Railway project name or description
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. projectIdstring Yes Railway project ID namestring No Updated project name descriptionstring No Updated project description isPublicboolean No Whether the project should be publicly visible prDeploysboolean No Whether to enable pull request deploy environments
Parameter Type Description projectobject Updated project ↳ id string Project ID ↳ name string Project name ↳ description string Project description
Delete a Railway project
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. projectIdstring Yes Railway project ID
Parameter Type Description successboolean Whether the project was deleted
Transfer a Railway project to another workspace
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. projectIdstring Yes Railway project ID workspaceIdstring Yes Destination workspace ID
Parameter Type Description successboolean Whether the project was transferred
List members for a Railway project
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. projectIdstring Yes Railway project ID
Parameter Type Description membersarray Project members ↳ id string Member user ID ↳ role string Project role ↳ name string Member name ↳ email string Member email ↳ avatar string Member avatar URL countnumber Number of members returned
Create a Railway project environment
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. projectIdstring Yes Railway project ID namestring Yes Environment name sourceEnvironmentIdstring No Environment ID to clone from ephemeralboolean No Whether the environment is ephemeral skipInitialDeploysboolean No Whether to skip initial deploys for the environment stageInitialChangesboolean No Whether to stage initial changes instead of applying them immediately
Parameter Type Description environmentobject Created environment ↳ id string Environment ID ↳ name string Environment name
Delete a Railway project environment
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. environmentIdstring Yes Railway environment ID
Parameter Type Description successboolean Whether the environment was deleted
Create a Railway service from a GitHub repo or Docker image
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. projectIdstring Yes Railway project ID namestring Yes Service name repostring No GitHub repository in owner/name format to deploy from imagestring No Docker image to deploy, for example redis:7-alpine branchstring No Git branch to deploy when using a repository source
Parameter Type Description serviceobject Created service ↳ id string Service ID ↳ name string Service name
Delete a Railway service and all of its deployments
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. serviceIdstring Yes Railway service ID
Parameter Type Description successboolean Whether the service was deleted
List deployments for a Railway service in an environment
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. projectIdstring Yes Railway project ID serviceIdstring Yes Railway service ID environmentIdstring Yes Railway environment ID firstnumber No Maximum number of deployments to return afterstring No Cursor for pagination
Parameter Type Description deploymentsarray Service deployments ↳ id string Deployment ID ↳ status string Deployment status ↳ createdAt string Deployment creation timestamp ↳ url string Deployment URL ↳ staticUrl string Static deployment URL ↳ canRollback boolean Whether this deployment can be rolled back to ↳ canRedeploy boolean Whether this deployment can be redeployed countnumber Number of deployments returned pageInfoobject Pagination information ↳ hasNextPage boolean Whether more deployments are available ↳ endCursor string Cursor for the next page
Get details for a single Railway deployment
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. deploymentIdstring Yes Railway deployment ID
Parameter Type Description deploymentobject Deployment details ↳ id string Deployment ID ↳ status string Deployment status ↳ createdAt string Deployment creation timestamp ↳ url string Deployment URL ↳ staticUrl string Static deployment URL ↳ canRollback boolean Whether the deployment can be rolled back to ↳ canRedeploy boolean Whether the deployment can be redeployed
Trigger a deployment for a Railway service in an environment
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. serviceIdstring Yes Railway service ID environmentIdstring Yes Railway environment ID commitShastring No Specific Git commit SHA to deploy
Parameter Type Description deploymentIdstring Created deployment ID
Restart a running Railway deployment without rebuilding
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. deploymentIdstring Yes Railway deployment ID
Parameter Type Description successboolean Whether the deployment was restarted
Roll a Railway service back to a previous deployment
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. deploymentIdstring Yes Railway deployment ID to roll back to (must have canRollback)
Parameter Type Description successboolean Whether the rollback was triggered
Retrieve runtime logs for a Railway deployment
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. deploymentIdstring Yes Railway deployment ID limitnumber No Maximum number of log lines to return
Parameter Type Description logsarray Deployment log entries ↳ timestamp string Log timestamp ↳ message string Log message ↳ severity string Log severity countnumber Number of log entries returned
List Railway environment variables for a service or shared environment
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. projectIdstring Yes Railway project ID environmentIdstring Yes Railway environment ID serviceIdstring No Railway service ID. Omit for shared environment variables.
Parameter Type Description variablesobject Variable names and values countnumber Number of variables returned
Create or update a Railway environment variable
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. projectIdstring Yes Railway project ID environmentIdstring Yes Railway environment ID serviceIdstring No Railway service ID. Omit to create or update a shared variable. namestring Yes Variable name valuestring Yes Variable value skipDeploysboolean No Whether to skip automatic redeploys after changing the variable
Parameter Type Description successboolean Whether the variable was created or updated
Delete a Railway environment variable
Inputs and outputsParameter Type Required Description apiKeystring Yes Railway API token tokenTypestring No Railway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens. projectIdstring Yes Railway project ID environmentIdstring Yes Railway environment ID namestring Yes Variable name to delete serviceIdstring No Railway service ID. Omit to delete a shared variable.
Parameter Type Description successboolean Whether the variable was deleted