Conversations Resource
SessionId
64f8a0e2d5b7c9a1e3f4a5b6OK
Conversation header: id, type, name, comment id, updated, dates, owner, closed state, signature, and messages.
64f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b6Whether the conversation is closed. Posting a message while closed reopens the conversation, so the composer should stay enabled.
Date the conversation was closed, when closed is true
Reason the conversation was closed, when closed is true. Clients translate the enum to a localized label.
Free-text note accompanying the close reason, when provided
GET /api/v1/company/conversations/{conversationId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
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
}
]
}SessionId
64f8a0e2d5b7c9a1e3f4a5b6OK
Conversation header: id, type, name, comment id, updated, dates, owner, closed state, signature, and messages.
64f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b6Whether the conversation is closed. Posting a message while closed reopens the conversation, so the composer should stay enabled.
Date the conversation was closed, when closed is true
Reason the conversation was closed, when closed is true. Clients translate the enum to a localized label.
Free-text note accompanying the close reason, when provided
PUT /api/v1/company/conversations/{conversationId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
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
}
]
}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.
SessionId
Id of the conversation to close
64f8a0e2d5b7c9a1e3f4a5b6Request body to close a conversation: the reason (required) and an optional note (required when reason is OTHER).
Why the conversation is being closed. Must be a reason allowed for an employee.
Free-text detail. Required when reason is OTHER, otherwise optional.
Conversation closed; returns the updated conversation
Conversation header: id, type, name, comment id, updated, dates, owner, closed state, signature, and messages.
64f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b6Whether the conversation is closed. Posting a message while closed reopens the conversation, so the composer should stay enabled.
Date the conversation was closed, when closed is true
Reason the conversation was closed, when closed is true. Clients translate the enum to a localized label.
Free-text note accompanying the close reason, when provided
Reason is missing, or reason is OTHER without a note
The caller does not own the conversation, or the reason is not allowed for the caller's role
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
}
]
}Get's conversation starters for a given context
SessionId
364f8a0e2d5b7c9a1e3f4a5b6OK
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"
}OK
[
{
"starter": "text",
"reason": "text"
}
]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.
SessionId
Id of the conversation to post to
64f8a0e2d5b7c9a1e3f4a5b6When true, reopen the conversation if it is closed before posting. Only a manager/admin owner may reopen.
falseSingle message in a conversation: date, text, user type, seen, owned, anonymous, signature.
Message date and time
Message text
Type of user who sent the message
Whether the message has been seen
Whether the message is from the current user
Message posted; returns the updated conversation
Conversation header: id, type, name, comment id, updated, dates, owner, closed state, signature, and messages.
64f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b6Whether the conversation is closed. Posting a message while closed reopens the conversation, so the composer should stay enabled.
Date the conversation was closed, when closed is true
Reason the conversation was closed, when closed is true. Clients translate the enum to a localized label.
Free-text note accompanying the close reason, when provided
Conversation is closed and reopen was not requested, message is empty, or the conversation is not owned by the caller
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
}
]
}SessionId
64f8a0e2d5b7c9a1e3f4a5b6OK
Conversation header: id, type, name, comment id, updated, dates, owner, closed state, signature, and messages.
64f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b6Whether the conversation is closed. Posting a message while closed reopens the conversation, so the composer should stay enabled.
Date the conversation was closed, when closed is true
Reason the conversation was closed, when closed is true. Clients translate the enum to a localized label.
Free-text note accompanying the close reason, when provided
Bad Request
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
}
]
}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.
SessionId
Type of user in the system, either an employee or a company user (admin, manager, etc).
Inclusive lower bound for the conversation's last activity, format ddMMyyyy.
Inclusive upper bound for the conversation's last activity, format ddMMyyyy.
Restrict to conversations owned by these assignees (admins only; ignored for managers).
Restrict to conversations of a single participant, given as the person's encrypted id.
Filter by lifecycle state: OPEN, CLOSED, or omitted for both.
Filter by read state from the requesting dashboard user's point of view: READ, UNREAD, or omitted for both.
Export accepted; the download link will be emailed to the caller
No content
The caller does not have a role allowed to export conversations
POST /api/v1/company/conversations/export HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
No content
SessionId
Type of user in the system, either an employee or a company user (admin, manager, etc).
010RECENTPossible values: 64f8a0e2d5b7c9a1e3f4a5b6Filter by lifecycle state: OPEN, CLOSED, or omitted for both.
Filter by read state from the requesting dashboard user's point of view: READ, UNREAD, or omitted for both.
OK
GET /api/v1/company/conversations HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
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
}
]
}
]
}SessionId
010RECENTPossible values: OK
GET /api/v1/company/conversations/preview?personEncryptedId=text HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
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
}
]
}
]
}SessionId
OK
GET /api/v1/company/conversations/pending HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
OK
{
"pending": 1
}Last updated