Inference Providers

Get the Auto Router

Changed on

Returns whether the organization's Auto Router is enabled, whether the AI Gateway can route (routing: ready, missing_key when it has no TypeSafe key, or unknown when it could not be reached), and its routes in order: each AI Gateway model, when to use it, and the one thinking level it runs at. The first route is the default model, used when no other route matches, with a fixed prompt. Requires the View Gateway providers permission and the Auto Router feature.

get/v1/org/auto-router

Request

  • Base URL
    https://api.openworklabs.com
  • URL
    https://api.openworklabs.com/v1/org/auto-router
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Response

Auto Router returned.

enabledboolean required
routing'ready' | 'missing_key' | 'unknown' required
canEditboolean required

Changes

    • breaking

      removed the required property // from the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property to the response with the status