> ## Documentation Index
> Fetch the complete documentation index at: https://docs.weflayr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get routing strategies

> Get each routing strategy of the project by its live version.

Ordered by slug, without their document: read one with [Get routing strategy](https://docs.weflayr.com/api/management/get-routing-strategy.md) for it.

## Parameters

**status** `string` (default: active)

"active" lists the ones not archived, "archived" the archived ones, "all" both.

**cursor** `string`

The route is paginated: pass the previous page's `next_cursor`, as is, to get the next page. `has_more` says whether another page exists.

**limit** `integer` (default: 100)

Number of items per page. Max `1000`.

```python Python theme={null}
import weflayr
from weflayr.openapi.models import GetRoutingStrategiesStatus

client = weflayr.client()  # reads WEFLAYR_API_KEY

client.get_routing_strategies(status=GetRoutingStrategiesStatus.ACTIVE, limit=20)
```

```js Node.js theme={null}
const weflayr = require('weflayr');

const client = weflayr.client(); // reads WEFLAYR_API_KEY

await weflayr.api.getRoutingStrategies({
  client,
  throwOnError: true,
  query: {
    status: 'active',
    limit: 20,
  },
});
```

```bash cURL theme={null}
curl "https://app.weflayr.com/api/routing-strategies/?status=active&limit=20" \
  -H "Authorization: Bearer $WEFLAYR_API_KEY"
```

```json 200 theme={null}
{
  "strategies": [
    {
      "slug": "summarize-profile-router",
      "name": "Summarize profile router",
      "version": 1,
      "global_rule": "same_quality_lowest_cost",
      "archived_at": null,
      "updated_at": "2026-10-20T09:30:00+00:00",
      "url": "https://app.weflayr.com/dashboard/routing-strategies/?strategy=summarize-profile-router"
    }
  ],
  "next_cursor": null,
  "has_more": false
}
```

```json 401 theme={null}
{"error": "Invalid or missing API key. Send it as \"Authorization: Bearer <your key>\"."}
```

```json 422 theme={null}
{"error": "Invalid request payload.", "detail": [{"field": "limit", "error": "Input should be less than or equal to 1000"}]}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.