> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Railway

> Integrate your application with the Railway API

## 🚀 Quickstart

Connect to Railway with Nango and see data flow in 2 minutes.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to the **Integrations** tab -> *Configure New Integration* -> *Railway*. Enter the Client ID and Client Secret of your Railway OAuth app (see the setup guide below), and add the `email` and `profile` scopes.

**2. Authorize Railway**

Go to the **Connections** tab -> *Add Test Connection* -> *Authorize*, then log in to Railway and approve access. Later, you'll let your users do the same directly from your app.

**3. Call the Railway API**

Let's make your first request to the Railway GraphQL API (fetch the authenticated user). Replace the placeholders below with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), integration ID (from the **Integrations** tab), and connection ID (from the **Connections** tab):

> [tab] cURL
>
> ```bash theme={null}
> curl -X POST "https://api.nango.dev/proxy/graphql/v2" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>" \
>   -H "Content-Type: application/json" \
>   -d '{"query": "query { me { name email } }"}'
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.post({
>     endpoint: '/graphql/v2',
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>',
>     data: {
>         query: 'query { me { name email } }'
>     }
> });
> console.log(JSON.stringify(res.data, null, 2));
> ```

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

✅ You're connected! Check the **Logs** tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/auth/overview.md) to integrate Nango in your app.

To obtain your own credentials, follow the setup guide linked below.

## 📚 Railway integration guides

Nango maintained guides for common use cases.

* [How to register your own Railway OAuth app](https://nango.dev/docs/api-integrations/railway/how-to-register-your-own-railway-api-oauth-app.md)\
  Register an OAuth app with Railway and obtain credentials to connect it to Nango

Official docs: [Railway API documentation](https://docs.railway.com/integrations/api)

## 🧩 Pre-built syncs & tools for Railway

Explore Nango-provided tools in your dashboard. Extend and customize them to fit your needs.

*No pre-built syncs or tools available yet.*

> [!TIP]
>
> Not seeing the integration you need? [Build your own](https://nango.dev/docs/guides/platform/functions/functions-guide.md) independently.

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.