Skip to main content
POST
Upload conversations

Authorizations

Authorization
string
header
required

Access token issued by gs.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Body

application/json

Request body of upload_agent_conversations.

threads
object[]
required

The conversations, each with its messages. The app uploads a CSV or a JSON file instead (multipart file, 5 MB at most): the same record comes back.

Required array length: 1 - 2000 elements
agent_sid
string

The AI SDR it is kept for (ub_ag_…, block 10, 2026-10-30); left out, the team's default agent.

Required string length: 18
Pattern: ^ub_ag_

Response

create success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
create
item
object
required
already_exists
boolean
required
meta
object
required