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

Conversations Resource

get
Authorizations
SessionIdstringRequired

SessionId

Path parameters
conversationIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
200

OK

*/*

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/company/conversations/{conversationId}
GET /api/v1/company/conversations/{conversationId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
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
Authorizations
SessionIdstringRequired

SessionId

Path parameters
conversationIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
200

OK

*/*

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/company/conversations/{conversationId}
PUT /api/v1/company/conversations/{conversationId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
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
    }
  ]
}

Close a conversation

put

Marks the conversation as closed, recording who closed it, when, and why. A closed conversation blocks new messages and is excluded from pending counts and reminders. The reason is required and must be allowed for the caller's role; reason OTHER also requires a note. Idempotent: closing an already-closed conversation has no effect. A manager/admin owner can later reopen it by posting a message with reopen=true, which clears the close reason.

Authorizations
SessionIdstringRequired

SessionId

Path parameters
conversationIdstringRequired

Id of the conversation to close

Example: 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

Conversation closed; returns the updated conversation

*/*

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/company/conversations/{conversationId}/close
PUT /api/v1/company/conversations/{conversationId}/close HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 35

{
  "reason": "RESOLVED",
  "note": "text"
}
{
  "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

Get's conversation starters for a given context

Authorizations
SessionIdstringRequired

SessionId

Query parameters
numSuggestionsinteger · int32OptionalDefault: 3
Body
personKeystringOptional
commentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
statusDatestring · dateOptional
originTypestring · enumOptionalPossible values:
Responses
200

OK

*/*
starterstringOptional
reasonstringOptional
post/api/v1/company/conversations/starters
POST /api/v1/company/conversations/starters HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 108

{
  "personKey": "text",
  "commentId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "statusDate": "2026-01-01",
  "originType": "COMMENT"
}
200

OK

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

Post a message to a conversation

post

Appends a message to an existing conversation. Posting to a closed conversation is rejected unless reopen=true, in which case the conversation is reopened and the message is posted in the same operation.

Authorizations
SessionIdstringRequired

SessionId

Path parameters
conversationIdstringRequired

Id of the conversation to post to

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Query parameters
reopenbooleanOptional

When true, reopen the conversation if it is closed before posting. Only a manager/admin owner may reopen.

Default: false
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

Message posted; returns the updated conversation

*/*

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/company/conversations/message/{conversationId}
POST /api/v1/company/conversations/message/{conversationId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Content-Type: */*
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
}
{
  "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
Authorizations
SessionIdstringRequired

SessionId

Body
personKeystringOptional
commentIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
originTypestring · enumOptionalPossible values:
statusDatestring · date-timeOptional
messagestringOptional
Responses
200

OK

*/*

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/company/conversations/init
POST /api/v1/company/conversations/init HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 139

{
  "personKey": "text",
  "commentId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "originType": "COMMENT",
  "statusDate": "2026-01-01T00:00:00.000Z",
  "message": "text"
}
{
  "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
    }
  ]
}

Export conversations to Excel

post

Requests an Excel export of the conversations matching the given filters. The report is generated asynchronously and delivered to the requesting user as an emailed download link, so this endpoint returns immediately. The filters accepted here mirror those of the conversation list endpoint, so the export reflects whatever the dashboard is currently filtering. The export never reveals more than the dashboard: anonymous conversations do not expose the participant identity, and message bodies are omitted for conversations the caller cannot view.

Authorizations
SessionIdstringRequired

SessionId

Query parameters
lastMessageFromstring · enumOptional

Type of user in the system, either an employee or a company user (admin, manager, etc).

Possible values:
fromstring · date-timeOptional

Inclusive lower bound for the conversation's last activity, format ddMMyyyy.

tostring · date-timeOptional

Inclusive upper bound for the conversation's last activity, format ddMMyyyy.

ownerIdstringOptional

Restrict to conversations owned by these assignees (admins only; ignored for managers).

personEncryptedIdstringOptional

Restrict to conversations of a single participant, given as the person's encrypted id.

statestring · enumOptional

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

Possible values:
readStatestring · enumOptional

Filter by read state from the requesting dashboard user's point of view: READ, UNREAD, or omitted for both.

Possible values:
Responses
200

Export accepted; the download link will be emailed to the caller

No content

post/api/v1/company/conversations/export
POST /api/v1/company/conversations/export HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*

No content

get
Authorizations
SessionIdstringRequired

SessionId

Query parameters
lastMessageFromstring · enumOptional

Type of user in the system, either an employee or a company user (admin, manager, etc).

Possible values:
fromConversationinteger · int32OptionalDefault: 0
toConversationinteger · int32OptionalDefault: 10
fromstring · date-timeOptional
tostring · date-timeOptional
sortOrderstring · enumOptionalDefault: RECENTPossible values:
ownerIdstring[]OptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
personEncryptedIdstringOptional
statestring · enumOptional

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

Possible values:
readStatestring · enumOptional

Filter by read state from the requesting dashboard user's point of view: READ, UNREAD, or omitted for both.

Possible values:
Responses
200

OK

*/*
frominteger · int32Optional
tointeger · int32Optional
totalinteger · int32Optional
noContentbooleanOptional
get/api/v1/company/conversations
GET /api/v1/company/conversations HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
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
Authorizations
SessionIdstringRequired

SessionId

Query parameters
fromConversationinteger · int32OptionalDefault: 0
toConversationinteger · int32OptionalDefault: 10
fromstring · date-timeOptional
tostring · date-timeOptional
sortOrderstring · enumOptionalDefault: RECENTPossible values:
personEncryptedIdstringRequired
Responses
200

OK

*/*
frominteger · int32Optional
tointeger · int32Optional
totalinteger · int32Optional
noContentbooleanOptional
get/api/v1/company/conversations/preview
GET /api/v1/company/conversations/preview?personEncryptedId=text HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
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
Authorizations
SessionIdstringRequired

SessionId

Responses
200

OK

*/*
pendinginteger · int32Optional
get/api/v1/company/conversations/pending
GET /api/v1/company/conversations/pending HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
200

OK

{
  "pending": 1
}

Last updated