Get thread
This endpoint enables you to find an annotation by its ID.
How to use
You can use the following cURL to obtain a response from this endpoint:
curl --location --request GET https://api.superviz.com/annotations/{id} \
--header "client_id: ${YOUR CLIENT_ID}" \
--header "secret: ${YOUR SECRET}"
In the request, you will need to send in the path following field:
Name | Description |
---|---|
id | Required. The ID of the annotation. |
Headers
When using this endpoint, you need to provide the Client ID and Secret Key. The following headers are required:
Name | Description |
---|---|
client_id | Required. You need to use the Client ID to authenticate in this repository. You can retrieve your Client ID under the Dashboard > Developer > Keys. |
secret | Required. You need to use the Secret Key to authenticate in this repository. You can create a new API Secret under our Dashboard > Developer > Keys. |
Response
Status code 200 will indicate a successful result in getting the annotation. The response will be in JSON format and include the following fields:
Name | Type | Description |
---|---|---|
uuid | string | The unique identifier of the annotation. |
userId | string | The ID of the user who created the annotation. |
position | string | The position of the annotation on the screen. |
createdAt | string | The date and time when the annotation was created. |
resolved | boolean | Indicates whether the annotation has been resolved. |
comments | array | An array of comments associated with this annotation. |
Each comment in the comments
array contains the following fields:
Name | Type | Description |
---|---|---|
uuid | string | The unique identifier of the comment. |
threadId | string | The ID of the thread this comment belongs to. |
participantId | string | The ID of the participant who made the comment. |
text | string | The content of the comment. |
createdAt | string | The date and time when the comment was created. |
mentions | array | An array of user mentions in the comment. |
participant | object | Information about the participant who made the comment. |
The participant
object contains:
Name | Type | Description |
---|---|---|
name | string | The name of the participant. |
createdAt | string | The date and time when the participant was created. |
avatar | string | The URL of the participant's avatar image. |
email | string | The email address of the participant. |
The mentions
array contains:
Name | Type | Description |
---|---|---|
participantId | string | The ID of the participant who was mentioned. |
name | string | The name of the participant who was mentioned. |
Example Response:
{
"uuid": "5ad641d5-c5bf-4003-9169-566f889ed102",
"participantId": "8972652",
"position": "{ x: 100, y: 100, type: \"text\" }",
"resolved": false,
"comments": [
{
"uuid": "8b2eee64-99ca-499e-b736-de9c1782224b",
"participantId": "8972652",
"threadId": "5ad641d5-c5bf-4003-9169-566f889ed102",
"text": "Hi, nice to meet you @robson!",
"participant": {
"name": "steve",
"email": "steve@yourcompany.com",
"avatar": null,
"createdAt": "2024-09-12T23:06:30.299Z"
},
"mentions": [
{
"participantId": "9962632",
"name": "robson"
}
],
"createdAt": "2024-09-12T23:07:10.817Z"
}
],
"createdAt": "2024-09-12T23:06:46.654Z"
}