curl
curl -X POST "https://api.linkvite.io/v1/bookmarks/file" \
-H "x-api-key: $LINKVITE_API_KEY" \
-F "[email protected]"
import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
await linkvite.bookmarks.createFile({
file: new File([bytes], 'file.pdf')
});client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
err := client.Bookmarks.CreateFile(ctx, &linkvite.BookmarksCreateFileRequest{
File: linkvite.File{Name: "file.pdf", Reader: f},
}){
"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>"
}Bookmarks
Create file bookmark
Scope: bookmarks:write · Rate limit: 250 requests per 5 minutes
POST
/
v1
/
bookmarks
/
file
curl
curl -X POST "https://api.linkvite.io/v1/bookmarks/file" \
-H "x-api-key: $LINKVITE_API_KEY" \
-F "[email protected]"
import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
await linkvite.bookmarks.createFile({
file: new File([bytes], 'file.pdf')
});client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
err := client.Bookmarks.CreateFile(ctx, &linkvite.BookmarksCreateFileRequest{
File: linkvite.File{Name: "file.pdf", Reader: f},
}){
"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
multipart/form-data
Was this page helpful?