---
title: "Reload Routes"
method: POST
path: "/v1/internal/reload-routes"
---

# Reload Routes

`POST /v1/internal/reload-routes`

## Request

- Base URL: `https://api.empiriolabs.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.empiriolabs.ai/v1/internal/reload-routes`
- Auth: none declared
- TypeScript: <https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway/docs/v1/internal/reload-routes/post.ts> (a function with typed inputs; its response is checked against the schema)

Force-refresh the in-memory route map. Called by the Supabase
trigger ``gateway_routes_reload_on_change`` whenever
``public.gateway_service_routes`` is INSERTed / UPDATEd / DELETEd.

The gateway does not talk to Supabase directly — it pulls from
marketing-catalog over the Railway internal mesh, passing
``?force=1`` so marketing-catalog re-queries Supabase rather than
serving its 2s coalesce cache.

Auth: shared INTERNAL_SECRET via the X-Internal-Secret header — same
secret the gateway uses to call workers. Not exposed to customers.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway.md) - [All operations](https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway/revisions/94bb966b0560?raw)
