curl
curl -X POST "https://api.linkvite.io/v1/highlights" \
-H "x-api-key: $LINKVITE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"bookmark_id":"bmk_123","color":"lv-highlighter-1","end":1,"exact":"string","id":"string","start":1}'import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
const data = await linkvite.highlights.create({
bookmark_id: "bmk_123",
color: "lv-highlighter-1",
end: 1,
exact: "string",
id: "string",
start: 1
});client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Highlights.Create(ctx, &linkvite.CreateHighlightRequest{
BookmarkID: "bmk_123",
Color: "lv-highlighter-1",
End: 1,
Exact: "string",
ID: "string",
Start: 1,
}){
"data": {
"highlight": {
"body": [
{
"purpose": "<string>",
"type": "<string>",
"value": "lv-highlighter-1"
}
],
"bookmark_id": "<string>",
"id": "<string>",
"note": "<string>",
"target": {
"selector": [
{
"end": 123,
"exact": "<string>",
"start": 123,
"type": "<string>"
}
]
},
"type": "<string>",
"user_id": "<string>"
},
"previous_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>"
}Highlights
Create highlight
Scope: highlights:write · Rate limit: 250 requests per 5 minutes
POST
/
v1
/
highlights
curl
curl -X POST "https://api.linkvite.io/v1/highlights" \
-H "x-api-key: $LINKVITE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"bookmark_id":"bmk_123","color":"lv-highlighter-1","end":1,"exact":"string","id":"string","start":1}'import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
const data = await linkvite.highlights.create({
bookmark_id: "bmk_123",
color: "lv-highlighter-1",
end: 1,
exact: "string",
id: "string",
start: 1
});client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Highlights.Create(ctx, &linkvite.CreateHighlightRequest{
BookmarkID: "bmk_123",
Color: "lv-highlighter-1",
End: 1,
Exact: "string",
ID: "string",
Start: 1,
}){
"data": {
"highlight": {
"body": [
{
"purpose": "<string>",
"type": "<string>",
"value": "lv-highlighter-1"
}
],
"bookmark_id": "<string>",
"id": "<string>",
"note": "<string>",
"target": {
"selector": [
{
"end": 123,
"exact": "<string>",
"start": 123,
"type": "<string>"
}
]
},
"type": "<string>",
"user_id": "<string>"
},
"previous_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>"
}Body
application/json
Was this page helpful?