curl
curl -X POST "https://api.linkvite.io/v1/comments" \
-H "x-api-key: $LINKVITE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"bookmark":"string","content":"Great read"}'import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
const data = await linkvite.comments.create({
bookmark: "string",
content: "Great read"
});client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Comments.Create(ctx, &linkvite.CreateCommentRequest{
Bookmark: "string",
Content: "Great read",
}){
"data": {
"bookmark_id": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"liked": true,
"likes_count": 123,
"owner_avatar": "<string>",
"owner_id": "<string>",
"owner_name": "<string>",
"owner_username": "<string>",
"parent_id": "<string>",
"replies_count": 123,
"status": "active",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>"
},
"ok": true,
"message": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}Comments
Create comment
Scope: comments:write · Rate limit: 250 requests per 5 minutes
POST
/
v1
/
comments
curl
curl -X POST "https://api.linkvite.io/v1/comments" \
-H "x-api-key: $LINKVITE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"bookmark":"string","content":"Great read"}'import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
const data = await linkvite.comments.create({
bookmark: "string",
content: "Great read"
});client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Comments.Create(ctx, &linkvite.CreateCommentRequest{
Bookmark: "string",
Content: "Great read",
}){
"data": {
"bookmark_id": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"liked": true,
"likes_count": 123,
"owner_avatar": "<string>",
"owner_id": "<string>",
"owner_name": "<string>",
"owner_username": "<string>",
"parent_id": "<string>",
"replies_count": 123,
"status": "active",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>"
},
"ok": true,
"message": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}Body
application/json
Was this page helpful?