Skip to main content
POST
/
problems
Create problem
curl --request POST \
  --url https://app2.freyavoice.ai/api/v2/problems \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "problem": "<string>",
  "callId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agentId": "<string>",
  "description": "<string>",
  "type": "system",
  "severity": 0.5,
  "status": "open",
  "assignedTo": "<string>",
  "messageId": "<string>",
  "resolved": false
}
'
{
  "success": true,
  "data": {
    "message": "<string>",
    "result": {
      "success": true,
      "problem": {
        "problem": "<string>",
        "id": "<string>",
        "workspaceId": "<string>",
        "callId": "<string>",
        "agentId": "<string>",
        "description": "<string>",
        "type": "system",
        "severity": 0.5,
        "status": "open",
        "assignedTo": "<string>",
        "createdBy": "ai",
        "messageId": "<string>",
        "resolved": false,
        "resolvedAt": "<string>",
        "resolvedBy": "<string>",
        "solutionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdAt": "<string>",
        "updatedAt": "<string>",
        "callStartedAt": "<string>",
        "customerNumber": "<string>",
        "agentName": "<string>",
        "resolvedByName": "<string>",
        "assignees": [
          {
            "userId": "<string>",
            "assignedAt": "<string>",
            "userName": "<string>"
          }
        ],
        "commentsCount": 123,
        "isArchived": false
      },
      "message": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspaceId
string<uuid>
required
Minimum string length: 1
problem
string
required
Minimum string length: 1
callId
string<uuid>
agentId
string
description
string
type
enum<string>
Available options:
system,
audio,
transcription,
decision,
general
severity
number
default:0.5
Required range: 0 <= x <= 1
status
string
default:open
assignedTo
string
messageId
string | null
resolved
boolean
default:false

Response

Problem created

success
enum<boolean>
required
Available options:
true,
false
data
object
required