---
title: "Get a function's current route binding"
method: GET
path: "/functions/{id}/routing"
tags: ["Functions"]
---

# Get a function's current route binding

`GET /functions/{id}/routing`

Returns the endpoint binding for the function, or null when no
route is currently bound. The binding identifies whether the
function receives mail for a specific domain (scoped) or for any
active domain that has no scoped binding (fallback).

## Response `200`

Function routing

- object
  - `success` true, required
  - `data` object, nullable, required — A single route binding for a function. `domain` is null when the binding is the org's fallback (any active domain without a scoped binding); otherwise it carries the scoped domain. `rules` is reserved for future routing predicates.
    - `endpoint_id` string, uuid, required
    - `enabled` boolean, required
    - `domain` object, nullable, required
      - `id` string, uuid, required
      - `name` string, nullable
    - `rules` object, required — Future routing predicates. Currently empty.
    - `delivery_count` integer
    - `success_count` integer
    - `failure_count` integer
    - `consecutive_fails` integer
    - `last_delivery_at` string, date-time, nullable
    - `last_success_at` string, date-time, nullable
    - `last_failure_at` string, date-time, nullable

## Other responses

- `401` — Invalid or missing API key
- `404` — Resource not found

---

[API](https://skmtc.dev/primitive/apis/primitive-api.md) · [All operations](https://skmtc.dev/primitive/apis/primitive-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/primitive/primitive-api/revisions/c2299d28022c/schema)
