# Retrieve a Routing

Returns the routing's current live configuration.

### Path Parameters

<ParamField path="routing_id" type="string" required>
  The id returned by [Create a Routing](/reference/organizations/routing/create-routing). Must belong to the account your API key is scoped to.
</ParamField>

### Response

<ResponseField name="id" type="string">
  Unique identifier for the routing.
</ResponseField>
<ResponseField name="account_id" type="string">
  Unique identifier for the account.
</ResponseField>
<ResponseField name="payment_method" type="enum">
  The payment method this routing applies to (e.g., `CARD`).
</ResponseField>
<ResponseField name="name" type="string">
  Label for the routing.
</ResponseField>
<ResponseField name="default_route" type="object">
  The default routing logic.
</ResponseField>
<ResponseField name="condition_sets" type="object[]">
  Optional conditional logic.
</ResponseField>
<ResponseField name="created_at" type="string">
  ISO 8601 timestamp.
</ResponseField>
<ResponseField name="updated_at" type="string">
  ISO 8601 timestamp.
</ResponseField>
<ResponseField name="warnings" type="string[]">
  Optional list of non-blocking orchestration warnings (e.g., `MONITOR_REDISTRIBUTION_DEFERRED`).
</ResponseField>

<CodeGroup>
```bash cURL
curl -X GET 'https://api.whitelabel.com/v1/routing/r_8f2c1d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f' \
  -H 'public-api-key: <YOUR_PUBLIC_KEY>' \
  -H 'private-secret-key: <YOUR_SECRET_KEY>'
```

```json 200 OK
{
  "id": "r_8f2c1d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
  "account_id": "acc-uuid",
  "payment_method": "CARD",
  "name": "Card routing — Stripe primary, Adyen fallback",
  "default_route": {
    "steps": [
      {
        "index": 1,
        "provider_id": "STRIPE",
        "connection_id": "f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e",
        "output": [
          { "status": "DECLINE_GROUP", "next": 2 },
          { "status": "TIMEOUT",        "next": 2 }
        ]
      },
      { "index": 2, "provider_id": "ADYEN", "connection_id": "b2c4d5e6-..." }
    ]
  },
  "created_at": "2026-05-12T14:30:00Z",
  "updated_at": "2026-05-12T14:30:00Z"
}
```

```json 404 Not Found
{
  "code": "ROUTING_NOT_FOUND",
  "messages": ["Routing '...' was not found"]
}
```
</CodeGroup>

### Errors

<div className="code-nowrap-table dense-table">

| HTTP | `code` | When |
|---|---|---|
| `404` | `ROUTING_NOT_FOUND` | Unknown `routing_id`, or id belongs to a different account. |
| `401` | `NOT_AUTHENTICATED` | Missing `public-api-key` or `private-secret-key` header. |
| `401` | `INVALID_CREDENTIALS` | Wrong key pair, or a Dashboard **Customized API key** was used. Use an account key or organization key instead. |

</div>

**GET** `/routing/{routing_id}`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Returns the routing's current live configuration.

## Authorization

- PUBLIC-API-KEY (apiKey in header)
- PRIVATE-SECRET-KEY (apiKey in header)

## Path parameters

- `routing_id` (string, required)

## Responses

### 200

OK

- `id` (string)
- `account_id` (string)
- `payment_method` (string)
- `name` (string)
- `default_route` (object)
  - `steps` (object[])
    - `index` (integer)
    - `provider_id` (string)
    - `connection_id` (string)
- `condition_sets` (object[])
  - `sort_number` (integer)
  - `name` (string)
  - `conditions` (object[])
  - `route` (object)
- `created_at` (string<date-time>)
- `updated_at` (string<date-time>)

Example:

```json
{
  "id": "r_8f2c1d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
  "account_id": "acc-uuid",
  "payment_method": "CARD",
  "name": "Card routing — Stripe primary, Adyen fallback",
  "default_route": {
    "steps": [
      {
        "index": 1,
        "provider_id": "STRIPE",
        "connection_id": "f1a3c4d5-..."
      }
    ]
  },
  "condition_sets": [
    {
      "sort_number": 1,
      "name": "High Value US",
      "conditions": [
        {}
      ],
      "route": {}
    }
  ],
  "created_at": "2026-05-12T14:30:00Z",
  "updated_at": "2026-05-12T14:30:00Z"
}
```

### 401

Unauthorized

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "NOT_AUTHENTICATED",
  "messages": [
    "Not authenticated"
  ]
}
```

### 404

Not Found

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "ROUTING_NOT_FOUND",
  "messages": [
    "Routing '...' was not found"
  ]
}
```