# Favorite Endpoints {#favorite-endpoints}


Manage user favorites — bookmark entities (tasks, projects, contacts) for quick access.


## Base Path {#base-path}


```
/api/favorite
```


## Endpoints {#endpoints}



### List Favorites {#list-favorites}


```
GET /api/favorite
Authorization: Bearer {token}
```


### Add to Favorites {#add-to-favorites}


```
POST /api/favorite
Authorization: Bearer {token}
Content-Type: application/json

{
  "entity": "OrganizationProject",
  "entityId": "project-uuid",
  "organizationId": "uuid"
}
```


### Remove from Favorites {#remove-from-favorites}


```
DELETE /api/favorite/:id
Authorization: Bearer {token}
```


## Supported Entities {#supported-entities}


| Entity Type           | Description  |
| --------------------- | ------------ |
| `Task`                | Tasks        |
| `OrganizationProject` | Projects     |
| `OrganizationContact` | CRM contacts |
| `OrganizationTeam`    | Teams        |
| `Employee`            | Employees    |


## Data Model {#data-model}


```typescript
interface IFavorite {
  id: string;
  entity: string;
  entityId: string;
  employeeId: string;
  organizationId: string;
  tenantId: string;
}
```


## Related Pages {#related-pages}


- [Favorites Feature](https://sourcey-gauzy.pages.dev/features/favorites/index.md) — feature guide
