Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Conversations

get

Get's a conversation

Authorizations
Path parameters
conversationIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
200

OK

application/json

Conversation header: id, type, name, comment id, updated, dates, owner, closed state, signature, and messages.

idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
typestring · enumOptionalPossible values:
namestringOptional
commentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
updatedbooleanOptional
updatedOnstring · date-timeOptional
titlestringOptionalDeprecated
hierarchyNamestringOptionalDeprecated
imagePathstringOptional
ownedbooleanOptional
closedbooleanOptional

Whether the conversation is closed. Posting a message while closed reopens the conversation, so the composer should stay enabled.

closedOnstring · date-timeOptional

Date the conversation was closed, when closed is true

closeReasonstring · enumOptional

Reason the conversation was closed, when closed is true. Clients translate the enum to a localized label.

Possible values:
closeReasonNotestringOptional

Free-text note accompanying the close reason, when provided

get/api/v1/employee/conversations/{employeeId}/{conversationId}
GET /api/v1/employee/conversations/{employeeId}/{conversationId} HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

{
  "id": "64f8a0e2d5b7c9a1e3f4a5b6",
  "type": "COMMENT",
  "name": "text",
  "commentId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "updated": true,
  "updatedOn": "2026-01-01T00:00:00.000Z",
  "imagePath": "text",
  "owned": true,
  "closed": true,
  "closedOn": "2026-01-01T00:00:00.000Z",
  "closeReason": "RESOLVED",
  "closeReasonNote": "text",
  "stateHistory": [
    {
      "date": "2026-01-01T00:00:00.000Z",
      "state": "OPEN",
      "actor": "64f8a0e2d5b7c9a1e3f4a5b6",
      "userType": "EMPLOYEE",
      "reason": "RESOLVED",
      "note": "text"
    }
  ],
  "allowedCloseReasons": [
    "RESOLVED"
  ],
  "signature": {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "name": "text",
    "description": "text",
    "profileImagePath": "text"
  },
  "messages": [
    {
      "date": "2026-01-01T00:00:00.000Z",
      "message": "text",
      "userType": "EMPLOYEE",
      "seen": true,
      "owned": true,
      "signature": {
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "name": "text",
        "description": "text",
        "profileImagePath": "text"
      },
      "anonymous": true
    }
  ]
}
put

Set's the conversation as seen

Authorizations
Path parameters
conversationIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
200

OK

application/json

Conversation header: id, type, name, comment id, updated, dates, owner, closed state, signature, and messages.

idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
typestring · enumOptionalPossible values:
namestringOptional
commentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
updatedbooleanOptional
updatedOnstring · date-timeOptional
titlestringOptionalDeprecated
hierarchyNamestringOptionalDeprecated
imagePathstringOptional
ownedbooleanOptional
closedbooleanOptional

Whether the conversation is closed. Posting a message while closed reopens the conversation, so the composer should stay enabled.

closedOnstring · date-timeOptional

Date the conversation was closed, when closed is true

closeReasonstring · enumOptional

Reason the conversation was closed, when closed is true. Clients translate the enum to a localized label.

Possible values:
closeReasonNotestringOptional

Free-text note accompanying the close reason, when provided

put/api/v1/employee/conversations/{employeeId}/{conversationId}
PUT /api/v1/employee/conversations/{employeeId}/{conversationId} HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

{
  "id": "64f8a0e2d5b7c9a1e3f4a5b6",
  "type": "COMMENT",
  "name": "text",
  "commentId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "updated": true,
  "updatedOn": "2026-01-01T00:00:00.000Z",
  "imagePath": "text",
  "owned": true,
  "closed": true,
  "closedOn": "2026-01-01T00:00:00.000Z",
  "closeReason": "RESOLVED",
  "closeReasonNote": "text",
  "stateHistory": [
    {
      "date": "2026-01-01T00:00:00.000Z",
      "state": "OPEN",
      "actor": "64f8a0e2d5b7c9a1e3f4a5b6",
      "userType": "EMPLOYEE",
      "reason": "RESOLVED",
      "note": "text"
    }
  ],
  "allowedCloseReasons": [
    "RESOLVED"
  ],
  "signature": {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "name": "text",
    "description": "text",
    "profileImagePath": "text"
  },
  "messages": [
    {
      "date": "2026-01-01T00:00:00.000Z",
      "message": "text",
      "userType": "EMPLOYEE",
      "seen": true,
      "owned": true,
      "signature": {
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "name": "text",
        "description": "text",
        "profileImagePath": "text"
      },
      "anonymous": true
    }
  ]
}
put

Closes the conversation with a reason (required; OTHER requires a note). A closed conversation blocks new messages until it is reopened; an employee reopens it simply by posting a new message.

Authorizations
Path parameters
conversationIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Body

Request body to close a conversation: the reason (required) and an optional note (required when reason is OTHER).

reasonstring · enumRequired

Why the conversation is being closed. Must be a reason allowed for an employee.

Possible values:
notestringOptional

Free-text detail. Required when reason is OTHER, otherwise optional.

Responses
200

OK

application/json

Conversation header: id, type, name, comment id, updated, dates, owner, closed state, signature, and messages.

idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
typestring · enumOptionalPossible values:
namestringOptional
commentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
updatedbooleanOptional
updatedOnstring · date-timeOptional
titlestringOptionalDeprecated
hierarchyNamestringOptionalDeprecated
imagePathstringOptional
ownedbooleanOptional
closedbooleanOptional

Whether the conversation is closed. Posting a message while closed reopens the conversation, so the composer should stay enabled.

closedOnstring · date-timeOptional

Date the conversation was closed, when closed is true

closeReasonstring · enumOptional

Reason the conversation was closed, when closed is true. Clients translate the enum to a localized label.

Possible values:
closeReasonNotestringOptional

Free-text note accompanying the close reason, when provided

put/api/v1/employee/conversations/{employeeId}/{conversationId}/close
PUT /api/v1/employee/conversations/{employeeId}/{conversationId}/close HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "reason": "RESOLVED",
  "note": "text"
}
200

OK

{
  "id": "64f8a0e2d5b7c9a1e3f4a5b6",
  "type": "COMMENT",
  "name": "text",
  "commentId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "updated": true,
  "updatedOn": "2026-01-01T00:00:00.000Z",
  "imagePath": "text",
  "owned": true,
  "closed": true,
  "closedOn": "2026-01-01T00:00:00.000Z",
  "closeReason": "RESOLVED",
  "closeReasonNote": "text",
  "stateHistory": [
    {
      "date": "2026-01-01T00:00:00.000Z",
      "state": "OPEN",
      "actor": "64f8a0e2d5b7c9a1e3f4a5b6",
      "userType": "EMPLOYEE",
      "reason": "RESOLVED",
      "note": "text"
    }
  ],
  "allowedCloseReasons": [
    "RESOLVED"
  ],
  "signature": {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "name": "text",
    "description": "text",
    "profileImagePath": "text"
  },
  "messages": [
    {
      "date": "2026-01-01T00:00:00.000Z",
      "message": "text",
      "userType": "EMPLOYEE",
      "seen": true,
      "owned": true,
      "signature": {
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "name": "text",
        "description": "text",
        "profileImagePath": "text"
      },
      "anonymous": true
    }
  ]
}
post

Posts a message to a conversation. If the conversation is closed, sending a message reopens it: the act of posting is the employee's reopen intent, so no flag is required.

Authorizations
Path parameters
contextIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Body

Single message in a conversation: date, text, user type, seen, owned, anonymous, signature.

datestring · date-timeOptional

Message date and time

messagestringOptional

Message text

userTypestring · enumOptional

Type of user who sent the message

Possible values:
seenbooleanOptional

Whether the message has been seen

ownedbooleanOptional

Whether the message is from the current user

anonymousbooleanOptional
Responses
200

OK

application/json

Conversation header: id, type, name, comment id, updated, dates, owner, closed state, signature, and messages.

idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
typestring · enumOptionalPossible values:
namestringOptional
commentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
updatedbooleanOptional
updatedOnstring · date-timeOptional
titlestringOptionalDeprecated
hierarchyNamestringOptionalDeprecated
imagePathstringOptional
ownedbooleanOptional
closedbooleanOptional

Whether the conversation is closed. Posting a message while closed reopens the conversation, so the composer should stay enabled.

closedOnstring · date-timeOptional

Date the conversation was closed, when closed is true

closeReasonstring · enumOptional

Reason the conversation was closed, when closed is true. Clients translate the enum to a localized label.

Possible values:
closeReasonNotestringOptional

Free-text note accompanying the close reason, when provided

post/api/v1/employee/conversations/{employeeId}/message/{contextId}
POST /api/v1/employee/conversations/{employeeId}/message/{contextId} HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 223

{
  "date": "2026-01-01T00:00:00.000Z",
  "message": "text",
  "userType": "EMPLOYEE",
  "seen": true,
  "owned": true,
  "signature": {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "name": "text",
    "description": "text",
    "profileImagePath": "text"
  },
  "anonymous": true
}
200

OK

{
  "id": "64f8a0e2d5b7c9a1e3f4a5b6",
  "type": "COMMENT",
  "name": "text",
  "commentId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "updated": true,
  "updatedOn": "2026-01-01T00:00:00.000Z",
  "imagePath": "text",
  "owned": true,
  "closed": true,
  "closedOn": "2026-01-01T00:00:00.000Z",
  "closeReason": "RESOLVED",
  "closeReasonNote": "text",
  "stateHistory": [
    {
      "date": "2026-01-01T00:00:00.000Z",
      "state": "OPEN",
      "actor": "64f8a0e2d5b7c9a1e3f4a5b6",
      "userType": "EMPLOYEE",
      "reason": "RESOLVED",
      "note": "text"
    }
  ],
  "allowedCloseReasons": [
    "RESOLVED"
  ],
  "signature": {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "name": "text",
    "description": "text",
    "profileImagePath": "text"
  },
  "messages": [
    {
      "date": "2026-01-01T00:00:00.000Z",
      "message": "text",
      "userType": "EMPLOYEE",
      "seen": true,
      "owned": true,
      "signature": {
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "name": "text",
        "description": "text",
        "profileImagePath": "text"
      },
      "anonymous": true
    }
  ]
}
get

Get all the conversations. Optionally filter by lifecycle state with the 'state' query param (OPEN / CLOSED) and by read state with the 'readState' query param (READ / UNREAD); omit either to not filter on that axis (default returns all).

Authorizations
Query parameters
frominteger · int32OptionalDefault: 0
tointeger · int32OptionalDefault: 9
statestring · enumOptional

Filter by lifecycle state: OPEN, CLOSED, or omitted for both.

Possible values:
readStatestring · enumOptional

Filter by read state: READ, UNREAD, or omitted for both.

Possible values:
Responses
200

OK

application/json
frominteger · int32Optional
tointeger · int32Optional
totalinteger · int32Optional
noContentbooleanOptional
get/api/v1/employee/conversations/{employeeId}
GET /api/v1/employee/conversations/{employeeId} HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

{
  "from": 1,
  "to": 1,
  "total": 1,
  "noContent": true,
  "results": [
    {
      "id": "64f8a0e2d5b7c9a1e3f4a5b6",
      "type": "COMMENT",
      "name": "text",
      "commentId": "64f8a0e2d5b7c9a1e3f4a5b6",
      "updated": true,
      "updatedOn": "2026-01-01T00:00:00.000Z",
      "imagePath": "text",
      "owned": true,
      "closed": true,
      "closedOn": "2026-01-01T00:00:00.000Z",
      "closeReason": "RESOLVED",
      "closeReasonNote": "text",
      "stateHistory": [
        {
          "date": "2026-01-01T00:00:00.000Z",
          "state": "OPEN",
          "actor": "64f8a0e2d5b7c9a1e3f4a5b6",
          "userType": "EMPLOYEE",
          "reason": "RESOLVED",
          "note": "text"
        }
      ],
      "allowedCloseReasons": [
        "RESOLVED"
      ],
      "signature": {
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "name": "text",
        "description": "text",
        "profileImagePath": "text"
      },
      "messages": [
        {
          "date": "2026-01-01T00:00:00.000Z",
          "message": "text",
          "userType": "EMPLOYEE",
          "seen": true,
          "owned": true,
          "signature": {
            "id": "64f8a0e2d5b7c9a1e3f4a5b6",
            "name": "text",
            "description": "text",
            "profileImagePath": "text"
          },
          "anonymous": true
        }
      ]
    }
  ]
}
get

Get's conversation status for that employee

Authorizations
Responses
200

OK

application/json

Conversations status: unread count and total count.

unreadinteger · int32Optional

Number of unread conversations

totalinteger · int32Optional

Total number of conversations

get/api/v1/employee/conversations/{employeeId}/status
GET /api/v1/employee/conversations/{employeeId}/status HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

{
  "unread": 1,
  "total": 1
}
get

Get's conversation starters for a given context

Authorizations
Path parameters
contextIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Query parameters
numSuggestionsinteger · int32OptionalDefault: 3
Responses
200

OK

application/json

Suggested conversation starter for a context (e.g. a comment): starter text and reason.

starterstringOptional

Suggested text to start the conversation

reasonstringOptional

Reason or context for suggesting this starter

get/api/v1/employee/conversations/{employeeId}/starters/{contextId}
GET /api/v1/employee/conversations/{employeeId}/starters/{contextId} HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

[
  {
    "starter": "text",
    "reason": "text"
  }
]
get

Lists the employee's most recent pending conversations to show on login: open conversations unread by the employee (the company side replied and the employee has not read it yet) whose last activity is older than 3 days. A maximum of 3 is returned, most recent first. Gated by the conversationsOnLoginEnabled feature flag and only available to employees and advisors.

Authorizations
Responses
200

OK

application/json

Conversation header: id, type, name, comment id, updated, dates, owner, closed state, signature, and messages.

idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
typestring · enumOptionalPossible values:
namestringOptional
commentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
updatedbooleanOptional
updatedOnstring · date-timeOptional
titlestringOptionalDeprecated
hierarchyNamestringOptionalDeprecated
imagePathstringOptional
ownedbooleanOptional
closedbooleanOptional

Whether the conversation is closed. Posting a message while closed reopens the conversation, so the composer should stay enabled.

closedOnstring · date-timeOptional

Date the conversation was closed, when closed is true

closeReasonstring · enumOptional

Reason the conversation was closed, when closed is true. Clients translate the enum to a localized label.

Possible values:
closeReasonNotestringOptional

Free-text note accompanying the close reason, when provided

get/api/v1/employee/conversations/{employeeId}/pending
GET /api/v1/employee/conversations/{employeeId}/pending HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

[
  {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "type": "COMMENT",
    "name": "text",
    "commentId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "updated": true,
    "updatedOn": "2026-01-01T00:00:00.000Z",
    "imagePath": "text",
    "owned": true,
    "closed": true,
    "closedOn": "2026-01-01T00:00:00.000Z",
    "closeReason": "RESOLVED",
    "closeReasonNote": "text",
    "stateHistory": [
      {
        "date": "2026-01-01T00:00:00.000Z",
        "state": "OPEN",
        "actor": "64f8a0e2d5b7c9a1e3f4a5b6",
        "userType": "EMPLOYEE",
        "reason": "RESOLVED",
        "note": "text"
      }
    ],
    "allowedCloseReasons": [
      "RESOLVED"
    ],
    "signature": {
      "id": "64f8a0e2d5b7c9a1e3f4a5b6",
      "name": "text",
      "description": "text",
      "profileImagePath": "text"
    },
    "messages": [
      {
        "date": "2026-01-01T00:00:00.000Z",
        "message": "text",
        "userType": "EMPLOYEE",
        "seen": true,
        "owned": true,
        "signature": {
          "id": "64f8a0e2d5b7c9a1e3f4a5b6",
          "name": "text",
          "description": "text",
          "profileImagePath": "text"
        },
        "anonymous": true
      }
    ]
  }
]

Last updated