Returns the share token for a thread. The token is omitted when the thread is not shared. Gated on runs:share so the control's state matches the control's permission.
retrieve(
threadID: string,
query: ShareRetrieveParams,
options: RequestOptions
): APIPromise<ShareRetrieveResponse>| Name | Type | Description |
|---|---|---|
threadID* | string | |
query* | ShareRetrieveParams | |
options | RequestOptions |
const share = await client.threads.share.retrieve(
'thread_id',
{ project_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
);