POST
/
spaces
/
{owner}
/
{space}
/
verifications
/
message
curl --request POST \
  --url https://api.loccus.ai/v1/spaces/{owner}/{space}/verifications/message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "handle": "verification-a",
  "alias": "Verification A",
  "model": "model-a",
  "audio": "audio-a",
  "message": "The blue rhino traveled to distant lands",
  "language": "en"
}'
{
  "id": "00000000-0000-0000-0000-000000000000",
  "handle": "verification-a",
  "alias": "Verification A",
  "state": "performed",
  "model": {
    "handle": "model-a",
    "version": "v1"
  },
  "audio": {
    "handle": "audio-a",
    "alias": "Audio A",
    "state": "available"
  },
  "message": "The blue rhino traveled to distant lands",
  "language": "en",
  "score": 0.85,
  "createdAt": "2023-01-01T00:00:00.000000Z",
  "performedAt": "2023-01-01T00:00:00.000000Z"
}

Review the message verification models to select which one to use.

Score: Confidence in a positive result is represented by the score.

Authorizations

Authorization
string
headerrequired

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

Path Parameters

owner
string
required

The handle of the owner.

space
string
required

The handle of the space.

Body

application/json
handle
string | null

The handle of the new message verification. Must be unique.

alias
string | null

The alias of the new message verification.

model
string
required

The handle of the model used to perform the new message verification.

audio
string
required

The handle of the audio of the new message verification.

message
string
required

The message of the new message verification.

language
string
required

The language of the new message verification.

Response

201 - application/json
id
string
required

The UUID of the message verification. Is unique.

handle
string
required

The handle of the message verification. Is unique.

alias
string | null
required

The alias of the message verification.

state
enum<string>
required

The state of the message verification.

Available options:
performing,
performed,
error
model
object
required

The model of the message verification.

audio
object
required

The audio of the message verification.

message
string
required

The message of the message verification.

language
string
required

The language of the message verification.

score
number
required

The score of the message verification.

createdAt
string
required

The date and time when the message verification was created.

performedAt
string
required

The date and time when the message verification was performed.