Pular para o conteúdo principal
POST
Core - Create session

Autorizações

Authorization
string
header
obrigatório

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

Corpo

application/json
external_id
string
obrigatório
duration
number<double>
obrigatório
contact_ids
string[]
obrigatório
billing
object
obrigatório
usage
object
obrigatório
traces_count
integer<int32>
obrigatório
tags
string[]
obrigatório
project_id
string
started_at
string<date-time>
updated_at
string<date-time>
title
string
client
string
repo
string
kind
enum<string>
Opções disponíveis:
THREAD_KIND_CONVERSATION,
THREAD_KIND_CODING_AGENT

Resposta

OK

_id
string
obrigatório

Internal thread record ID.

external_id
string
obrigatório

Client-provided thread identifier used to group related traces.

duration
number<double>
obrigatório

Total thread duration in milliseconds.

contact_ids
string[]
obrigatório

Contact IDs associated with the thread.

billing
object
obrigatório
usage
object
obrigatório
traces_count
integer<int32>
obrigatório

Number of traces associated with the thread.

tags
string[]
obrigatório

Tags used to categorize the thread.

project_id
string
started_at
string<date-time>
updated_at
string<date-time>
title
string

Display title. Does not replace external_id and is not used to group traces.

client
string

Originating coding assistant or client, such as claude-code, cursor, or codex.

repo
string

Canonical git repository for a coding-agent thread, such as github.com/org/repo.

kind
enum<string>

Whether this thread is a conversation or a coding-agent chat.

Opções disponíveis:
THREAD_KIND_CONVERSATION,
THREAD_KIND_CODING_AGENT