{
  "slug": "railway-api-adds-railway-graphql-schema-discovery-and-operation-execution-64e178482347",
  "title": "railway api adds Railway GraphQL schema discovery and operation execution",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-22T20:45:41.000Z",
  "announced_at": "2026-07-22T20:45:41.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When exploring Railway’s public GraphQL API from the CLI, search and inspect the live schema, then run an authenticated operation with `railway api`.",
    "examples": [
      "railway api search <term> --limit <N>",
      "railway api describe <name>",
      "railway api 'query { me { id name } }'"
    ],
    "gotchas": [
      "Version: v5.28.0",
      "<term> (required): Search term for matching GraphQL types and fields.",
      "--limit <N>: Maximum search results to print; defaults to 25.",
      "<name> (required): GraphQL type, root field, or field in Parent.field notation to describe.",
      "<QUERY> (required): GraphQL document to execute; may be passed inline, by file, or on stdin. Pass inline query or --file, not both.",
      "--file <PATH>: Read the GraphQL document from a file; `-` reads stdin.",
      "--variables <JSON|@PATH>: Provide a JSON variables object inline or from a file; `@-` reads stdin.",
      "Prerequisite: CLI version 5.28 or later; authenticate with `railway login` or set a token.",
      "Schema discovery uses live introspection fetched from the Railway API; nothing is bundled with the CLI.",
      "Schema fetches fail with a clear error when the API returns a non-2xx status or GraphQL errors."
    ]
  },
  "why_it_matters": "When exploring Railway's public GraphQL API from the CLI, discover its schema and execute an authenticated operation.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v5.28.0",
    "https://github.com/railwayapp/cli/pull/1008",
    "https://docs.railway.com/cli/api"
  ],
  "rank": 0.9805,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-25444dbdda631705-0:gate",
    "evidence_hash": "4eb4eedbd6a259c05260b545a09b5ffe48fc4f0ef4f012d4e850edf809894f3c"
  },
  "review": {
    "draft_hash": "4e0171b76feee73f21c195c4fb3d7353d56430cead4e22ad2af47f4709461393",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.78 (>= 0.6 needed)."
  }
}
