Source: https://support.atomicwork.com/api-reference/requests/postapi-v1-requests-requestid-notes

# Create request notes

POST `https://{tenant}.atomicwork.com/api/v1/requests/{requestId}/notes`

Creates a note on the request. The note body may mention individual users
(`mentions`) and agent groups (`agent_group_mentions`). Public notes notify the
requester, assignee and all followers, where the follower set is the union of
direct user followers and members of any agent groups following the request,
de-duplicated. Agent groups listed in `agent_group_mentions` are added as
request followers. Private/internal notes are excluded from follower notifications.

## Authorization

#### X-Api-Key (header, string, required)

API key authentication.

## Headers

#### X-Workspace-Id (header, string)

## Path Parameters

#### requestId (path, string, required)

## Body

#### user\_id (body, integer)

#### conversation\_id (body, integer)

When set, the reply is mirrored into this conversation's thread (UAG).

#### description (body, string)

#### mentions (body, array of integer)

User IDs mentioned in the note. Mentioned users are notified and added as direct followers.

#### agent\_group\_mentions (body, array of integer)

Agent group IDs mentioned in the note. Members of these groups are notified
and the groups are added as request followers.

#### is\_private (body, boolean)

#### source (body, enum (string)) — allowed: EMAIL, SLACK, TEAMS, PORTAL, WORKFLOW, JOURNEY, API, UNIVERSAL\_AGENT

#### type (body, enum (string)) — allowed: ESD\_NOTE, SLACK\_NOTE, EMAIL\_NOTE, RATING, TEMPLATE, WORKFLOW\_NOTE

#### attachments (body, array of integer)

#### cc\_emails (body, array of string)

#### bcc\_emails (body, array of string)

#### is\_broadcast (body, boolean)

#### external\_id (body, string)

#### external\_source\_type (body, enum (string)) — allowed: SAAS\_GENIE, SNOW, JSM\_BRIDGE

#### email\_content (body, string)

#### event\_created\_at (body, string)

Event creation timestamp. When provided via public API, also backdates the note's created time, SLA metrics, and activity timestamps. Must not be in the future or before the request's creation time.

#### transition (body, object)

Applied in the same transaction as the note: both commit, or neither does. Takes the same body PATCH /requests/{requestId} accepts

## Response

#### 200

Successful response

#### Request

```bash cURL
curl -X POST 'https://{tenant}.atomicwork.com/api/v1/requests/{requestId}/notes' \
  -H 'X-Api-Key: <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{"user_id": 0, "conversation_id": 0, "description": "string", "mentions": [0], "agent_group_mentions": [0], "is_private": true, "source": "EMAIL", "type": "ESD_NOTE", "attachments": [0], "cc_emails": ["string"], "bcc_emails": ["string"], "is_broadcast": true, "external_id": "string", "external_source_type": "SAAS_GENIE", "email_content": "string", "event_created_at": "date-time", "transition": {}}'
```

```javascript JavaScript
const res = await fetch('https://{tenant}.atomicwork.com/api/v1/requests/{requestId}/notes', {
  method: 'POST',
  headers: {
    'X-Api-Key': '<api-key>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"user_id": 0, "conversation_id": 0, "description": "string", "mentions": [0], "agent_group_mentions": [0], "is_private": true, "source": "EMAIL", "type": "ESD_NOTE", "attachments": [0], "cc_emails": ["string"], "bcc_emails": ["string"], "is_broadcast": true, "external_id": "string", "external_source_type": "SAAS_GENIE", "email_content": "string", "event_created_at": "date-time", "transition": {}}),
});
const data = await res.json();
```

```python Python
import requests

res = requests.post(
    'https://{tenant}.atomicwork.com/api/v1/requests/{requestId}/notes',
    headers={'X-Api-Key': '<api-key>'},
    json={"user_id": 0, "conversation_id": 0, "description": "string", "mentions": [0], "agent_group_mentions": [0], "is_private": true, "source": "EMAIL", "type": "ESD_NOTE", "attachments": [0], "cc_emails": ["string"], "bcc_emails": ["string"], "is_broadcast": true, "external_id": "string", "external_source_type": "SAAS_GENIE", "email_content": "string", "event_created_at": "date-time", "transition": {}}
)
data = res.json()
```
