API

ProjectMessagingConversation

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id}/mark_read create Success
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id}/retire create Retired conversation
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id}/typing create Success
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations create Conversation created
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id} load Manual messages and send eligibility
PATCH /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id} patch Updated conversation
PUT /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id} update Updated conversation

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

project_messaging_conversation, err := client.ProjectMessagingConversation(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(project_messaging_conversation)
created, err := client.ProjectMessagingConversation(nil).Create(map[string]any{"organization_id": "example", "project_id": "example", "assistant_number": "example", "tester_number": "example", "verify_environment_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.ProjectMessagingConversation(nil).Update(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.ProjectMessagingConversation(nil).Patch(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)

Lua

Construct client as shown in the Lua setup, then call the operations:

local project_messaging_conversation, err = client:ProjectMessagingConversation():load({ id = "example_id", organization_id = "example", project_id = "example" })
local created, err = client:ProjectMessagingConversation():create({ organization_id = "example", project_id = "example", assistant_number = "example", tester_number = "example", verify_environment_id = "example" })
local updated, err = client:ProjectMessagingConversation():update({ id = "example_id", organization_id = "example", project_id = "example" })
local patched, err = client:ProjectMessagingConversation():patch({ id = "example_id", organization_id = "example", project_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$project_messaging_conversation = $client->ProjectMessagingConversation()->load(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$created = $client->ProjectMessagingConversation()->create(["organization_id" => "example", "project_id" => "example", "assistant_number" => "example", "tester_number" => "example", "verify_environment_id" => "example"]);
$updated = $client->ProjectMessagingConversation()->update(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$patched = $client->ProjectMessagingConversation()->patch(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

project_messaging_conversation = client.ProjectMessagingConversation().load({"id": "example_id", "organization_id": "example", "project_id": "example"})
created = client.ProjectMessagingConversation().create({ "organization_id": "example", "project_id": "example", "assistant_number": "example", "tester_number": "example", "verify_environment_id": "example" })
updated = client.ProjectMessagingConversation().update({"id": "example_id", "organization_id": "example", "project_id": "example"})
patched = client.ProjectMessagingConversation().patch({"id": "example_id", "organization_id": "example", "project_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

project_messaging_conversation = client.ProjectMessagingConversation.load({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
created = client.ProjectMessagingConversation.create({ "organization_id" => "example", "project_id" => "example", "assistant_number" => "example", "tester_number" => "example", "verify_environment_id" => "example" })
updated = client.ProjectMessagingConversation.update({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
patched = client.ProjectMessagingConversation.patch({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const project_messaging_conversation = await client.ProjectMessagingConversation().load({ id: "example_id", organization_id: "example", project_id: "example" })
const created = await client.ProjectMessagingConversation().create({ organization_id: "example", project_id: "example", assistant_number: "example", tester_number: "example", verify_environment_id: "example" })
const updated = await client.ProjectMessagingConversation().update({ id: "example_id", organization_id: "example", project_id: "example" })
const patched = await client.ProjectMessagingConversation().patch({ id: "example_id", organization_id: "example", project_id: "example" })

Fields

Field Type Required Description
assistant_number string Yes Assistant Number
attachment_limit integer Yes Attachment Limit
attachment_max_bytes integer Yes Attachment Max Bytes
environment_name string Yes Environment Name
id string Yes Id
leased boolean Yes Leased
messages array Yes Messages
reconciled_at one,string,null Yes Reconciled At
retirable boolean Yes Retirable
seeded boolean Yes Seeded
send_blocked_reason one,string,null Yes Send Blocked Reason
send_disposition string No Send Disposition
send_error one,string,null No Send Error
tester_number string Yes Tester Number
unknown_send boolean Yes Unknown Send
verify_environment_id string Yes Verify Environment Id

create

POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id}/mark_read

Operation ID: mark_read_api_v1_verification_project_messaging_conversation.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

204: Read request accepted
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id}/retire

Operation ID: retire_api_v1_verification_project_messaging_conversation.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Retired conversation

application/json

Property Type Required Description
assistant_number string Yes
environment_name string Yes
id string Yes
leased boolean Yes
reconciled_at string,null (date-time) Yes
retirable boolean Yes
seeded boolean Yes
send_blocked_reason string,null Yes
tester_number string Yes
unknown_send boolean Yes
verify_environment_id string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id}/typing

Operation ID: typing_api_v1_verification_project_messaging_conversation.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
typing boolean Yes

Responses

200: Success

application/json

The response is object.

204: Typing state accepted
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations

Operation ID: api_v1_verification_project_messaging_conversations.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes

Request body

application/json

The request body is object and object.

Responses

201: Conversation created

application/json

Property Type Required Description
assistant_number string Yes
environment_name string Yes
id string Yes
leased boolean Yes
reconciled_at string,null (date-time) Yes
retirable boolean Yes
seeded boolean Yes
send_blocked_reason string,null Yes
tester_number string Yes
unknown_send boolean Yes
verify_environment_id string Yes

load

GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id}

Operation ID: api_v1_verification_project_messaging_conversation.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes

Responses

200: Manual messages and send eligibility

application/json

Property Type Required Description
attachment_limit integer Yes
attachment_max_bytes integer Yes
messages array of object Yes
messages[].attachments array of object Yes
messages[].attachments[].byte_size integer Yes
messages[].attachments[].content_type string Yes
messages[].attachments[].download_url string No Original file; url may be a JPEG preview for HEIC
messages[].attachments[].id string Yes
messages[].attachments[].kind enum: image, video, audio, file Yes
messages[].attachments[].name string Yes
messages[].attachments[].url string Yes
messages[].can_react boolean Yes
messages[].can_reply boolean Yes
messages[].content string Yes Plain text with any account link removed
messages[].date_sent string (date-time) Yes
messages[].direction enum: incoming, outgoing Yes
messages[].display_content string Yes Message text with card links removed
messages[].id string Yes
messages[].link string,null Yes A link into the app under test; other links stay in content as text.
messages[].links array of object Yes
messages[].links[].account_link boolean Yes
messages[].links[].preview object or null Yes
messages[].links[].url string Yes
messages[].reactions array of object Yes
messages[].reactions[].count integer Yes
messages[].reactions[].reacted boolean Yes
messages[].reactions[].reaction string Yes
messages[].read_at string,null (date-time) Yes
messages[].receipt_status enum: sending, sent, delivered, read, failed, unknown, ... Yes
messages[].reply_to string,null Yes Public ID of the visible quoted parent
messages[].send_style enum: celebration, shooting_star, fireworks, lasers, love, confetti, ... Yes
messages[].service string,null Yes
messages[].unsupported_attachment boolean Yes
send_blocked_reason string,null Yes
send_disposition enum: retry, not_sent, sent No
send_error string,null No
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id}

Operation ID: patch_api_v1_organizations_organization_id_verification_projects_project_id_messaging_conversations_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
assistant_number string Yes
tester_number string Yes

Responses

200: Updated conversation

application/json

Property Type Required Description
assistant_number string Yes
environment_name string Yes
id string Yes
leased boolean Yes
reconciled_at string,null (date-time) Yes
retirable boolean Yes
seeded boolean Yes
send_blocked_reason string,null Yes
tester_number string Yes
unknown_send boolean Yes
verify_environment_id string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/organizations/{organization_id}/verification/projects/{project_id}/messaging_conversations/{id}

Operation ID: put_api_v1_organizations_organization_id_verification_projects_project_id_messaging_conversations_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
assistant_number string Yes
tester_number string Yes

Responses

200: Updated conversation

application/json

Property Type Required Description
assistant_number string Yes
environment_name string Yes
id string Yes
leased boolean Yes
reconciled_at string,null (date-time) Yes
retirable boolean Yes
seeded boolean Yes
send_blocked_reason string,null Yes
tester_number string Yes
unknown_send boolean Yes
verify_environment_id string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway