Help: "Problem processing request" when using serviceCreate mutation via Railway GraphQL API

a year ago

I'm trying to create a new service in my Railway project using the GraphQL API via Postman, but I keep getting the error:

{
  "errors": [
    {
      "message": "Problem processing request",
      "traceId": "someID"
    }
  ]
}

▶️ What I’m Doing:

  • Mutation: serviceCreate($input: ServiceCreateInput!)
  • Tool: Postman (GraphQL support)
  • API URL: https://backboard.railway.app/graphql/v2
  • Auth: Bearer token in headers

🔧 Variables:

{
  "input": {
    "projectId": "d1909034-17dd-4603-9f3d-10b4496ad718",
    "name": "my-service",
    "source": {
      "type": "GITHUB",
      "github": {
        "repo": "ru-dr/yatrazen",
        "branch": "main",
        "rootDirectory": "/"
      }
    }
  }
}

✅ Confirmed:

  • Project ID exists and is correct.
  • Token is valid and working for other queries (me, teams, etc.).
  • GitHub repo ru-dr/yatrazen exists, is public, and branch main is available.

❓ Any idea what might be going wrong?

Context — What I’m Building

I’m working on a platform where users can:

  • Upload or connect their GitHub projects
  • Deploy them to Railway via my custom API
  • Automatically get a deployment link (preview/production)

The goal is to abstract Railway for end-users and let them use it via my system. For this, I’m integrating the Railway GraphQL API to:

  1. Create projects
  2. Create services from user GitHub repos
  3. Retrieve deployment URLs

But right now, I’m blocked at the service creation step using the GraphQL API — it returns Problem processing request.

If anyone from the Railway team or community has experience with automated service deployments via the API, I’d appreciate help figuring out what I’m missing.

Attachments

$10 Bounty

1 Replies

Hey,

Not 100%, but I'm pretty sure you need to add the Railway app on your Github repo if not already done


Welcome!

Sign in to your Railway account to join the conversation.

Loading...