---
title: "Agents, customers and teams with traffic this month"
method: GET
path: "/api/budgets/scopes"
tags: ["budgets"]
---

# Agents, customers and teams with traffic this month

`GET /api/budgets/scopes`

## Request

- Base URL: `https://www.spendline.ai`
- URL: `https://www.spendline.ai/api/budgets/scopes`
- Auth: API key in header `x-spendline-key`

The correct way to discover scope_ids worth budgeting, instead of guessing identifiers. Also the fastest attribution check: if `customers` holds one entry after calls for several customers, x-customer-id is pinned in default headers instead of per request.

## Response `200`

Discovered scope identifiers.

- object
  - `agents` string[]
  - `customers` string[]
  - `teams` string[]

## Other responses

- `401`: Unauthorized.

---

[API](https://skmtc.dev/spendline/apis/spendline-api.md) · [All operations](https://skmtc.dev/spendline/apis/spendline-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spendline/apis/spendline-api/revisions/eb22b9415a28?raw)
