Creates a permanent public access token for thread sharing, which can be used to generate a shareable link or send via email.
curl --request POST \
--url https://production-storytell-ai-platfor-cds2.encr.app/v1/threads/{threadID}/share \
--header 'Content-Type: application/json' \
--data '{
"messageId": [
127
],
"shareMethod": "<string>",
"shareTo": [
"<string>"
],
"threadId": [
127
]
}'
{
"code": "<string>",
"data": {
"address": "<string>",
"publicToken": "<string>",
"tokenId": [
127
]
},
"details": {
"consumption": {
"units": 123
},
"operation": {
"duration": 123,
"operationId": "<string>"
}
},
"done": true,
"eventKey": "<string>",
"message": "<string>"
}
Success response
The response is of type object
.
curl --request POST \
--url https://production-storytell-ai-platfor-cds2.encr.app/v1/threads/{threadID}/share \
--header 'Content-Type: application/json' \
--data '{
"messageId": [
127
],
"shareMethod": "<string>",
"shareTo": [
"<string>"
],
"threadId": [
127
]
}'
{
"code": "<string>",
"data": {
"address": "<string>",
"publicToken": "<string>",
"tokenId": [
127
]
},
"details": {
"consumption": {
"units": 123
},
"operation": {
"duration": 123,
"operationId": "<string>"
}
},
"done": true,
"eventKey": "<string>",
"message": "<string>"
}