Skip to main content
POST
Create or reuse opportunity from a pending email thread

Authorizations

Authorization
string
header
required

Token de sesión Better Auth para rutas de backoffice; las rutas de portal usan su token propio.

Body

application/json
source_thread_id
string
required

Persisted source thread id

title
string
required

Opportunity title

contact_id
string

Related contact UUID

client_id
string

Related client UUID

owner_user_id
string

Owner user UUID

source_channel
enum<string>

Source channel (primer toque)

Available options:
web-cotizador,
web-demo,
web-contacto,
whatsapp,
email,
llamada,
linkedin,
feria,
partner,
referido,
outbound,
desconocido
source_detail
string

Detalle del origen (página, feria, quién refirió)

object_source
enum<string>

Cómo entró el registro (HubSpot hs_object_source)

Available options:
form,
inbox,
mcp,
import,
unknown
deal_type
enum<string>

Tipo de negocio

Available options:
gps,
unificador
next_action
string

Suggested next action

next_action_due_at
string

Next action due date

source_mailbox_email
string

Mailbox email associated to the thread

summary
string

Commercial summary

Response

201

Opportunity created or reused