# Get agencies (v1)

> **Casafari is the AI agent-native real estate data intelligence platform.** The most complete property index in Europe: a deduplicated, cleaned property graph of residential and commercial property, for sale and for rent, in 16 countries. Every property is one record with its full price and market history. [How the property graph is built](/docs/property-graph).

`GET https://api.casafari.com/api/v1/references/agencies`

[References](/docs/references) · [REST API](/docs/rest/references). Send `Authorization: Bearer $CASAFARI_TOKEN`; see [how to get a token](/docs/rest#get-a-token).

Over MCP: no tool does this. See [MCP and REST compared](/docs/parity#references).

## Description

Returns a list of all possible agencies with user restrictions.

## Query parameters

- `name` (string, required): A name of the agency to search.

## Example request

Placeholders only: replace the token and the values with your own.

```bash
curl "https://api.casafari.com/api/v1/references/agencies?name=<name>" \
  -H "Authorization: Bearer $CASAFARI_TOKEN"
```

## Responses

### 200 OK

Type: `object[]`.

- `name` (string, required): Name of the agency.
- `agency_type` (string, required): Type of the agency.
- `source_ids` (integer[], required): List of source IDs that belongs to the agency.

Example from the API description:

```json
{
  "agencies": [
    {
      "name": "ComprarCasa Guimarães & Guimarães Centro",
      "agency_type": "company",
      "source_ids": [
        1616,
        2492
      ]
    },
    {
      "name": "ComprarCasa Setúbal Estádio",
      "agency_type": "company",
      "source_ids": [
        1616
      ]
    }
  ]
}
```

### 401 Unauthorized

Type: `object`.

- `detail` (string, optional): Description of the error encountered.

### 403 Forbidden

Type: `object`.

- `detail` (string, optional): Description of the error encountered.

## Questions about this

- [What are the References operations for?](/docs/faq/what-is-references)
