Saltar al contenido principal
POST
/
v1
/
lang-graph
/
threads
Create conversation thread
curl --request POST \
  --url https://{your-prod-endpoint}/v1/lang-graph/threads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-doctor: <x-doctor>' \
  --data '{}'
{
  "thread_id": "thread-abc123",
  "created_at": "2023-10-09T10:00:00.000Z",
  "status": "active"
}

Autorizaciones

Authorization
string
header
requerido

Bearer token for API authentication

Encabezados

x-doctor
string
requerido

Doctor identifier for tracking and auditing

x-patient
string

Patient identifier for tracking and auditing

Cuerpo

application/json

The body is of type object.

Respuesta

Thread created successfully

thread_id
string
requerido

Unique thread identifier

Ejemplo:

"thread-abc123"

created_at
string<date-time>
requerido

Timestamp when thread was created

Ejemplo:

"2023-10-09T10:00:00.000Z"

status
enum<string>
requerido

Current status of the thread

Opciones disponibles:
active,
closed
Ejemplo:

"active"