# Login

> **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).

`POST https://api.casafari.com/login`

REST API · Authentication. No token needed: this is how you get one. See [the REST API overview](/docs/rest#get-a-token).

## Request body

Content type `application/json`. Required. Type: `object`.

- `email` (string, required)
- `password` (string, required) at least 1 character.

## Example request

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

```bash
curl -X POST "https://api.casafari.com/login" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "<email>",
  "password": "<password>"
}'
```

## Responses

### 200 Successful Response

Type: `object`.

- `access_token` (string, required)
- `refresh_token` (string, required)

### 422 Validation Error

Type: `object`.

- `detail` (object[], optional)
  - `loc` ((string | integer)[], required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any, optional)
  - `ctx` (object, optional)

## Questions about this

- [What is the difference between Casafari MCP and the Casafari REST API?](/docs/faq/mcp-vs-rest-api)
- [Do I need an API key for Casafari MCP?](/docs/faq/api-key)
- [How do I authenticate with the Casafari REST API?](/docs/faq/rest-authentication)
- [How do I build on the Casafari REST API?](/docs/faq/build-on-rest)
