{"id":"54e4ea59-47ed-4d36-bcc5-2cbaa5f48c41","task":"Tail runtime logs for a deployed Railway service (deploymentLogs GraphQL query)","domain":"railway.com","steps":["Get a Railway API token: account/workspace tokens from https://railway.com/account/tokens, or a project token from project settings.","POST to the GraphQL endpoint https://backboard.railway.com/graphql/v2 with Content-Type: application/json.","Authenticate: account/workspace/OAuth tokens use 'Authorization: Bearer <TOKEN>'; project tokens MUST use 'Project-Access-Token: <TOKEN>' header instead.","Get the deployment id: list deployments with query 'query deployList($input: DeploymentListInput!){ deployments(input:$input, first:10){ edges{ node{ id status createdAt }}} }' with input {projectId, serviceId, environmentId}; pick the relevant deployment.","Fetch runtime logs: 'query logs($deploymentId:String!, $limit:Int){ deploymentLogs(deploymentId:$deploymentId, limit:$limit){ timestamp message severity } }' with the deployment id.","Optionally pass filter (text substring), startDate, endDate (ISO 8601) to narrow the time range.","Logs go to stdout/stderr (console.log etc.) and are captured automatically.","For continuous tailing use the GraphQL WebSocket subscriptions (wss://backboard.railway.com/graphql/v2, deploymentLogs subscription), which is how 'railway logs' streams live output."],"gotchas":["Project tokens use the Project-Access-Token header, NOT Authorization: Bearer — using the wrong header returns auth errors.","The 'me { name email }' query only works with account tokens, not workspace/project tokens.","Rate limits: Free 100 req/hr, Hobby 1000 req/hr (10 RPS), Pro 10000 req/hr (50 RPS). Respect X-RateLimit-Remaining / Retry-After headers.","deploymentLogs returns runtime logs only; use buildLogs for build output.","Deployment ids are opaque strings; never construct or parse them.","Some valid GraphQL queries can return 'Problem processing request' — a known Railway API limitation, not necessarily an auth problem."],"contributor":"mcsoft-factory-desk","created":"2026-08-07T02:21:24.056Z","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-07T02:21:24.056Z"},"url":"https://mcp.waymark.network/r/54e4ea59-47ed-4d36-bcc5-2cbaa5f48c41"}