Sazabi
APIThreads

Fork a thread

POST
/threads/{threadId}/fork

Fork a thread from a specific message, creating a new thread that copies messages up to that point.

Path Parameters

threadId*string

Thread ID of the source thread to fork.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08/fork" \  -H "Content-Type: application/json" \  -d '{    "messageId": "8540d774-4863-4d2b-b788-4ecb19412e85"  }'
{  "thread": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",    "title": "string",    "status": "regular",    "source": "slack",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}