intentic
Create your workspace
Ship and share

Sharing

Conversations published as read-only pages

On this page(4 sections)

What is currently shared, publishing a conversation, re-rendering one from how it stands now, and taking it down. As with the outbox, the page itself is the read.

GET/shareConversations published as pages

Every conversation that has been turned into a read-only page, with its link. There is no call to read one back: the page itself is the read, and it answers to anyone who has the link.

What you send

Nothing. Call it as it is.

What comes back

FieldType
sharesEvery conversation currently published as a…object[]
idThe share's own id, minted fresh…string
conversationIdWhich conversation it was taken fromstring
titleThe title on the page, which…string
detailHow much travels: the two speakers'…"messages" | "everything"
sharedAtWhen the snapshot was taken, in…number
messagesHow many messages are behind the…number
urlThe page's addressstring
Try itanswered in this tab
curl
curl "$SANDBOX/share" \
  -H "x-intentic-control: $INTENTIC_TOKEN"
TypeScript
import { sandbox } from "@intentic/sandbox-client";

const result = await sandbox.share.list();
POST/sharePublish a conversation

Renders a conversation into a page anybody with the link can read, without signing in. Answers with the link, so nothing has to be listed again to find it.

What you send

FieldTypeWhere
conversationIdrequiredWhich conversation to publishstringbody
titlerequiredThe title for the pagestringbody
detailrequiredHow much to publish"messages" | "everything"body

What comes back

FieldType
idThe share's own id, minted fresh…string
conversationIdWhich conversation it was taken fromstring
titleThe title on the page, which…string
detailHow much travels: the two speakers'…"messages" | "everything"
sharedAtWhen the snapshot was taken, in…number
messagesHow many messages are behind the…number
urlThe page's addressstring
Try itanswered in this tab
curl
curl -X POST "$SANDBOX/share" \
  -H "x-intentic-control: $INTENTIC_TOKEN" \
  -H "content-type: application/json" \
  -d '{"conversationId":"nightly-changelog","title":"Update the changelog","detail":"messages"}'
TypeScript
import { sandbox } from "@intentic/sandbox-client";

const result = await sandbox.share.create({
  "conversationId": "nightly-changelog",
  "title": "Update the changelog",
  "detail": "messages"
});
POST/share/updateRefresh a published page

Re-renders an existing page from the conversation as it stands now. Same link, newer contents.

What you send

FieldTypeWhere
idrequiredWhich share to re-takestringbody

What comes back

FieldType
idThe share's own id, minted fresh…string
conversationIdWhich conversation it was taken fromstring
titleThe title on the page, which…string
detailHow much travels: the two speakers'…"messages" | "everything"
sharedAtWhen the snapshot was taken, in…number
messagesHow many messages are behind the…number
urlThe page's addressstring
Try itanswered in this tab
curl
curl -X POST "$SANDBOX/share/update" \
  -H "x-intentic-control: $INTENTIC_TOKEN" \
  -H "content-type: application/json" \
  -d '{"id":"a1b2c3d4"}'
TypeScript
import { sandbox } from "@intentic/sandbox-client";

const result = await sandbox.share.update({
  "id": "a1b2c3d4"
});
POST/share/removeUnpublish a conversation

Takes the page down, so the link stops answering.

What you send

FieldTypeWhere
idrequiredWhich share to take downstringbody

What comes back

FieldType
okAlways truetrue
Try itanswered in this tab
curl
curl -X POST "$SANDBOX/share/remove" \
  -H "x-intentic-control: $INTENTIC_TOKEN" \
  -H "content-type: application/json" \
  -d '{"id":"a1b2c3d4"}'
TypeScript
import { sandbox } from "@intentic/sandbox-client";

const result = await sandbox.share.remove({
  "id": "a1b2c3d4"
});

Type to search every page, in the docs and the API reference.