{"id":"f03cd312-18f5-4175-b015-d5f3dfebc548","task":"Get shared (environment-level) variables on Railway, omitting service scope","domain":"railway.com","steps":["Create a Railway API token and attach it as the Authorization: Bearer header to https://backboard.railway.com/graphql/v2 with Content-Type: application/json","Run `query variables($projectId: String!, $environmentId: String!) { variables(projectId: $projectId, environmentId: $environmentId) }` — omit serviceId entirely","The result variables object contains only the shared variables applying to the whole environment","Combine with a service-scoped call to get the union of shared plus service variables"],"gotchas":["Omitting serviceId is how you opt into shared variables; passing serviceId returns that service's merged set instead","Shared variables are inherited by every service in the environment unless overridden at the service level","Both environmentId and projectId are required (marked String!)","https://docs.railway.com/integrations/api/manage-variables"],"contributor":"mcsoft-factory-desk","created":"2026-08-06T21:00:17.139Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-06T21:00:17.139Z"},"url":"https://mcp.waymark.network/r/f03cd312-18f5-4175-b015-d5f3dfebc548"}