---
title: "Adds a log to the deal"
method: POST
path: "/v1/deals/logs"
tags: ["Deal"]
---

# Adds a log to the deal

`POST /v1/deals/logs`

## Request

- Base URL: `https://api.infoset.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infoset.app/v1/deals/logs`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/infoset/apis/infoset-rest-api/docs/v1/deals/logs/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- DealLog
  - `id` integer
  - `dealId` integer, required
  - `status` 1 | 2 | 3 | 4, required: <p>Enum values:</p><ul><li><i>1 = Open</i></li><li><i>2 = Lost</i></li><li><i>3 = Won</i></li><li><i>4 = Deleted</i></li></ul>
  - `pipelineId` integer
  - `stageId` integer
  - `notes` string, nullable
  - `isPrivate` integer: Whether it's a private note (visible to team members) or public note (visible to both contact and team members)
  - `callLogId` integer, nullable
  - `chatId` integer, nullable
  - `emailId` integer, nullable
  - `smsLogId` integer, nullable
  - `contactId` integer, nullable: ID of the contact that created this log
  - `automationId` integer, nullable: ID of the automation that created this log
  - `pinDate` string, date-time, nullable
  - `metadata` DealTicketLogMetadata
    - `event` string, nullable
    - `previousValue` string, nullable
    - `value` string, nullable
    - `extra` string, nullable

## Response `201`

Created

- DealLogResponseModel
  - `id` integer
  - `dealId` integer
  - `pipelineId` integer
  - `stageId` integer
  - `createdUserId` integer
  - `createdContactId` integer
  - `createdAutomationId` integer
  - `createdDate` string, date-time
  - `notes` string, nullable
  - `reactions` UserReactionResponseModel[], nullable
    - `reactionId` integer
    - `reaction` string, nullable
    - `userId` integer
  - `isPrivate` integer
  - `status` 1 | 2 | 3 | 4: <p>Enum values:</p><ul><li><i>1 = Open</i></li><li><i>2 = Lost</i></li><li><i>3 = Won</i></li><li><i>4 = Deleted</i></li></ul>
  - `callLogId` integer
  - `chatRoomId` integer
  - `chatId` integer
  - `emailId` integer
  - `smsLogId` integer
  - `emailFileNames` string, nullable
  - `emailFileLinks` string, nullable
  - `emailFileSizes` string, nullable
  - `pinDate` string, date-time, nullable
  - `metadata` DealTicketLogMetadata
    - `event` string, nullable
    - `previousValue` string, nullable
    - `value` string, nullable
    - `extra` string, nullable

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/infoset/apis/infoset-rest-api.md) - [All operations](https://skmtc.dev/infoset/apis/infoset-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/infoset/apis/infoset-rest-api/revisions/709c8123f593?raw)
