# Create an activity

`POST https://testing-backend.estactics.com/api/activities/create`

Adds a note or event to the timeline of a client.

Authentication: `Authorization: Bearer YOUR_API_KEY`. Required permission: `clients.MANAGE`.

## Body parameters

- `clientId` (integer, required): ID of the client this activity belongs to.
- `type` (string, required): Kind of activity. See List activity types.
- `message` (string): The note text.
- `favorite` (boolean): True when the activity is pinned.

## Example request body

```json
{
  "clientId": 1042,
  "type": "NOTE",
  "message": "Called and left a message."
}
```

## Example response

```json
{
  "success": true,
  "data": {
    "id": 588
  }
}
```
