API

MessagingConversationUpload

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}/uploads create Attachment staged

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:

created, err := client.MessagingConversationUpload(nil).Create(map[string]any{"messaging_conversation_id": "example", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

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

local created, err = client:MessagingConversationUpload():create({ messaging_conversation_id = "example", organization_id = "example", project_id = "example" })

PHP

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

$created = $client->MessagingConversationUpload()->create(["messaging_conversation_id" => "example", "organization_id" => "example", "project_id" => "example"]);

Python

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

created = client.MessagingConversationUpload().create({ "messaging_conversation_id": "example", "organization_id": "example", "project_id": "example" })

Ruby

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

created = client.MessagingConversationUpload.create({ "messaging_conversation_id" => "example", "organization_id" => "example", "project_id" => "example" })

TypeScript

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

const created = await client.MessagingConversationUpload().create({ messaging_conversation_id: "example", organization_id: "example", project_id: "example" })

Fields

Field Type Required Description
attachment object Yes Attachment
upload_id string Yes Upload Id

create

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

Operation ID: uploads_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.

multipart/form-data

Property Type Required Description
file string (binary) Yes

Responses

200: Attachment staged

application/json

Property Type Required Description
attachment object Yes
attachment.byte_size integer Yes
attachment.content_type string Yes
attachment.download_url string No Original file; url may be a JPEG preview for HEIC
attachment.id string Yes
attachment.kind enum: image, video, audio, file Yes
attachment.name string Yes
attachment.url string Yes
upload_id string Yes
201: Attachment staged for this actor and conversation for one day

application/json

Property Type Required Description
attachment object Yes
attachment.byte_size integer Yes
attachment.content_type string Yes
attachment.download_url string No Original file; url may be a JPEG preview for HEIC
attachment.id string Yes
attachment.kind enum: image, video, audio, file Yes
attachment.name string Yes
attachment.url string Yes
upload_id string Yes
401: Session required
403: Origin, CSRF or permission refused
404: Not found
422: Invalid attachment or conversation unavailable

application/json

Property Type Required Description
details array of string No
error string Yes
field_errors object No
502: Bad gateway