---
title: "Compute a space's effective routing"
method: GET
path: "/v1/spaces/{spaceId}/routing/compute"
tags: ["Spaces"]
---

# Compute a space's effective routing

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

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/spaces/{spaceId}/routing/compute`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Returns the routing rules currently in effect for the space's live version, as the runtime evaluates them.

## Path parameters

- `spaceId` string, required

## Response `200`

Response for status 200

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object, required
    - `latestVersionId` string, nullable, required
    - `redirects` string, nullable, required
    - `headers` string, nullable, required
    - `diagnostics` object[], required
      - `file` '_redirects' | '_headers' | 'sf.overlay' | 'sf.jsonc' | 'spacefast.jsonc' | 'spacefast.json' | 'sf.json' | '.sf/sf.json' | '.sf/config.jsonc' | '.sf/config.json', required
      - `line` integer, required
      - `severity` 'warning' | 'error', required
      - `code` string, required
      - `message` string, required
      - `source` string, required
      - `deferredUntilSubstitution` true
    - `variableDependencies` string[], required
    - `systemVariableDependencies` string[], required

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

[API](https://skmtc.dev/spacefast/apis/spacefast-api.md) · [All operations](https://skmtc.dev/spacefast/apis/spacefast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spacefast/apis/spacefast-api/revisions/bd165bc7c983?raw)
