> ## 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 strategy results

> Get the calls one version of a routing strategy routed over a period.

Calls are split by rule and by route. A route is a model at one reasoning effort, whichever provider served it. A call counts once, under the route that answered it.

## Parameters

**slug** `string` *required*

The strategy's slug.

**date\_from** `string` *required*

Start of the period, inclusive. YYYY-MM-DD.

**date\_to** `string`

End of the period, inclusive. YYYY-MM-DD. Defaults to today.

**version** `integer`

The version to read. Defaults to the live one.

The response also carries `blockers` (what prevents the usual next step), in plain words. It is empty when the usual workflow applies.

```python Python theme={null}
import datetime

import weflayr

client = weflayr.client()  # reads WEFLAYR_API_KEY

client.get_routing_strategy_results(slug="summarize-profile-router", date_from=datetime.date(2026, 9, 24), date_to=datetime.date(2026, 10, 23))
```

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

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

await weflayr.api.getRoutingStrategyResults({
  client,
  throwOnError: true,
  query: {
    slug: 'summarize-profile-router',
    dateFrom: '2026-09-24',
    dateTo: '2026-10-23',
  },
});
```

```bash cURL theme={null}
curl "https://app.weflayr.com/api/routing-strategy-results/?slug=summarize-profile-router&date_from=2026-09-24&date_to=2026-10-23" \
  -H "Authorization: Bearer $WEFLAYR_API_KEY"
```

```json 200 theme={null}
{
  "available": true,
  "as_of": "2026-10-23T10:00:00+00:00",
  "version": 1,
  "period": {
    "starts_at": "2026-09-24T00:00:00+00:00",
    "ends_at": "2026-10-23T10:00:00+00:00"
  },
  "totals": {
    "calls": 120,
    "spend": 0.84,
    "cost_per_call": 0.007
  },
  "rules": [
    {
      "id": 0,
      "kind": "global",
      "position": null,
      "calls": 120,
      "spend": 0.84,
      "cost_per_call": 0.007,
      "share": 100.0,
      "routes": [
        {
          "route_id": "gpt-6-luna:default",
          "calls": 120,
          "spend": 0.84,
          "cost_per_call": 0.007,
          "share": 100.0
        }
      ]
    }
  ],
  "routes": [
    {
      "id": "gpt-6-luna:default",
      "model": "gpt-6-luna",
      "model_maker": "openai",
      "reasoning_effort": null,
      "calls": 120,
      "spend": 0.84,
      "cost_per_call": 0.007,
      "share": 100.0,
      "rules": [
        {
          "rule_id": 0,
          "calls": 120,
          "spend": 0.84,
          "cost_per_call": 0.007,
          "share": 100.0
        }
      ]
    }
  ],
  "blockers": []
}
```

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

```json 404 theme={null}
{"error": "The strategy 'summarize-profile-router' has no version 9. List its versions with get_routing_strategy (previous_versions=true)."}
```

```json 422 theme={null}
{"error": "Invalid request payload.", "detail": [{"field": "slug", "error": "Field required"}]}
```


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