Set Conversation's Status

PATCH
PATCHhttps://api.hyperleapai.com/conversations/{conversationId}/set-conversation-status

Set the status for a specified Conversation.

Authenticated with your API key in the x-hl-api-key request header.

Path parameters

conversationIdstring · uuidrequired

Request body

application/json
conversationIdstring · uuid
conversationStatusstringnullable

Responses

200OKapplication/json
conversationIdstring · uuid
aiSystemstringnullable
modelstringnullable
personaIdstring · uuidnullable
personaVersionIdstring · uuidnullable
conversationStatusstringnullable
conversationNamestringnullable
HyperleapChatMessageResponse[]nullable
rolestringnullable
contentstringnullable
toolCallIdstringnullable
namestringnullable
messageIdstring · uuid
timestampstring · date-time
RunFeedback[]nullable
promptTokensinteger · int32
completionTokensinteger · int32
totalTokensinteger · int32read-only
conversationRunIdstring · uuidread-only
chatMessagesCountinteger · int32nullable
chatStartedbooleannullable
areChatMessagesInBlobbooleannullable
chatMessagesBlobUristringnullable
objectnullable
[key]anynullable
objectnullable
JsonNode
externalUserIdstringnullable
isActiveboolean
isDeletedboolean
promptTokensinteger · int32nullable
completionTokensinteger · int32nullable
totalTokensinteger · int32nullable
Example payload
{
  "conversationId": "string",
  "aiSystem": "string",
  "model": "string",
  "personaId": "string",
  "personaVersionId": "string",
  "conversationStatus": "string",
  "conversationName": "string",
  "chatMessages": [
    {
      "role": "string",
      "content": "string",
      "toolCallId": "string",
      "name": "string",
      "messageId": "string",
      "timestamp": "string",
      "feedbacks": [
        {
          "comments": null,
          "tags": null,
          "scoreConfidence": null
        }
      ],
      "promptTokens": 0,
      "completionTokens": 0,
      "totalTokens": 0,
      "conversationRunId": "string"
    }
  ],
  "chatMessagesCount": 0,
  "chatStarted": true,
  "areChatMessagesInBlob": true,
  "chatMessagesBlobUri": "string",
  "configuration": {
    "key": "string"
  },
  "metadata": {
    "key": {
      "options": {
        "propertyNameCaseInsensitive": true
      }
    }
  },
  "externalUserId": "string",
  "isActive": true,
  "isDeleted": true,
  "promptTokens": 0,
  "completionTokens": 0,
  "totalTokens": 0
}
400Bad Requestapplication/json

Array of ModelError

Exception
MethodBase
messageanytruncated
dataanytruncated
innerExceptionanytruncated
helpLinkanytruncated
sourceanytruncated
hResultanytruncated
stackTraceanytruncated
errorMessageanytruncated
Example payload
[
  {
    "exception": {
      "targetSite": {
        "memberType": 1,
        "name": "string",
        "declaringType": {
          "name": null,
          "customAttributes": null,
          "namespace": null,
          "assemblyQualifiedName": null,
          "fullName": null
        }
      }
    }
  }
]
500Internal Server Error

No response body.

curl -X PATCH "https://api.hyperleapai.com/conversations/{conversationId}/set-conversation-status" \
  -H "x-hl-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "conversationId": "string",
  "conversationStatus": "string"
}'
Example response · 200
{
  "conversationId": "string",
  "aiSystem": "string",
  "model": "string",
  "personaId": "string",
  "personaVersionId": "string",
  "conversationStatus": "string",
  "conversationName": "string",
  "chatMessages": [
    {
      "role": "string",
      "content": "string",
      "toolCallId": "string",
      "name": "string",
      "messageId": "string",
      "timestamp": "string",
      "feedbacks": [
        {
          "comments": null,
          "tags": null,
          "scoreConfidence": null
        }
      ],
      "promptTokens": 0,
      "completionTokens": 0,
      "totalTokens": 0,
      "conversationRunId": "string"
    }
  ],
  "chatMessagesCount": 0,
  "chatStarted": true,
  "areChatMessagesInBlob": true,
  "chatMessagesBlobUri": "string",
  "configuration": {
    "key": "string"
  },
  "metadata": {
    "key": {
      "options": {
        "propertyNameCaseInsensitive": true
      }
    }
  },
  "externalUserId": "string",
  "isActive": true,
  "isDeleted": true,
  "promptTokens": 0,
  "completionTokens": 0,
  "totalTokens": 0
}

Explore Hyperleap AI

AI customer service agents that answer FAQs, capture leads, and book appointments across Website, WhatsApp, Instagram, and Facebook Messenger.