Skip to main content

Create a thread

This endpoint enables you to create a thread within a specific room. A thread is essentially a collection of comments that can be associated with a specific point or area on the screen. It serves as a way to pin comments to particular locations, facilitating more precise and context-specific discussions.

How to use

You can use the following cURL to obtain a response on the endpoint:

curl --location --request POST https://api.superviz.com/threads \
--header 'Content-Type: application/json' \
--header "client_id: ${YOUR CLIENT_ID}" \
--header "secret: ${YOUR SECRET}" \
--data '{
"participantId": "3337829",
"position": "{ x: 100, y: 100, type: \"text\" }",
"roomId": "yshanzy"
}'

Headers

When using this endpoint, you need to provide the Client ID and Secret Key. The following headers are required:

NameDescription
client_idRequired. You need to use the Client ID to authenticate in this repository. You can retrieve your Client ID under the Dashboard > Developer > Keys.
secretRequired. You need to use the Secret Key to authenticate in this repository. You can create a new API Secret under our Dashboard > Developer > Keys.

Request Body

NameTypeDescription
participantIdstringThe ID of the participant.
positionobjectThe position of the annotation.
roomIdstringThe ID of the room.

Response

Status code 201 will indicate that the annotation was created successfully.

NameTypeDescription
uuidstringThe UUID of the annotation.
participantIdstringThe ID of the participant.
positionobjectThe position of the annotation.
resolvedbooleanThe status of the annotation.
createdAtstringThe date and time of the annotation.

Example:

{
"uuid": "08fb673d-3b82-4847-9367-4bae347b352f",
"participantId": "3337829",
"position": "{ x: 100, y: 100, type: \"text\" }",
"resolved": false,
"createdAt": "2024-09-12T21:53:54.838Z"
}