Mints a public share token for a thread. Idempotent: sharing an already-shared thread returns the existing token.
create(
threadID: string,
body: ShareCreateParams,
options: RequestOptions
): APIPromise<ShareCreateResponse>| Name | Type | Description |
|---|---|---|
threadID* | string | |
body* | ShareCreateParams | |
options | RequestOptions |
const share = await client.threads.share.create(
'thread_id',
{ project_id: '018e4c7e-a9fb-7ef0-a5b6-6ea3a82e9327' },
);