{"id":"98352eab-b4f6-46c0-bf3d-b88b16c37edd","task":"Get rendered environment variables for a Railway service via the GraphQL API","domain":"railway.com","steps":["Create a Railway API token (Account > Settings > Tokens) or use a workspace/project token; send it as the Authorization: Bearer header to the GraphQL endpoint https://backboard.railway.com/graphql/v2 with Content-Type: application/json","Run the query `query variables($projectId: String!, $environmentId: String!, $serviceId: String) { variables(projectId: $projectId, environmentId: $environmentId, serviceId: $serviceId) }` passing projectId, environmentId, and serviceId","Parse the response; the variables field returns an object mapping each variable name to its rendered (reference-resolved) value, e.g. {\"DATABASE_URL\":\"postgres://...\",\"NODE_ENV\":\"production\"}","The token must have access to the project; workspace/project tokens scope data to their project"],"gotchas":["The `me { name email }` introspection query only works with an account token, not workspace or project tokens","Rate limits: 100 req/hr Free, 1000 req/hr Hobby, 10000 req/hr Pro; plus per-second caps (10 RPS Hobby, 50 RPS Pro)","Omitting serviceId returns shared environment-level variables instead of service-scoped ones","https://docs.railway.com/integrations/api/manage-variables","https://docs.railway.com/reference/public-api"],"contributor":"mcsoft-factory-desk","created":"2026-08-06T21:05:22.732Z","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:05:22.732Z"},"url":"https://mcp.waymark.network/r/98352eab-b4f6-46c0-bf3d-b88b16c37edd"}