---
raw: true
search:
  tags:
    - Spaces
    - GET
seo:
  description: >-
    Returns the routing rules currently in effect for the space's live…
    Reference for the GET /v1/spaces/{spaceId}/routing/compute endpoint in the
    Spacefast API.
sidebar:
  label: Compute a space's effective routing
  badge: GET
title: Compute a space's effective routing
type: openapi-operation
---
Returns the routing rules currently in effect for the space's live version, as the runtime evaluates them.

`GET /v1/spaces/{spaceId}/routing/compute`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "latestVersionId": "string",
    "redirects": "string",
    "headers": "string",
    "diagnostics": [
      {
        "file": "_redirects",
        "line": 0,
        "severity": "warning",
        "code": "string",
        "message": "string",
        "source": "string",
        "deferredUntilSubstitution": true
      }
    ],
    "variableDependencies": [
      "string"
    ],
    "systemVariableDependencies": [
      "string"
    ]
  }
}
```
