curl
curl -X POST "https://api.linkvite.io/v1/files/<id>/share" \
-H "x-api-key: $LINKVITE_API_KEY"import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
const data = await linkvite.files.share('<id>');client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Files.Share(ctx, "<id>", nil){
"data": {
"expires": 123,
"link": "<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>"
}Files
Share bookmark file link
Scope: files:read · Rate limit: 250 requests per 5 minutes
POST
/
v1
/
files
/
{id}
/
share
curl
curl -X POST "https://api.linkvite.io/v1/files/<id>/share" \
-H "x-api-key: $LINKVITE_API_KEY"import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
const data = await linkvite.files.share('<id>');client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Files.Share(ctx, "<id>", nil){
"data": {
"expires": 123,
"link": "<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>"
}Was this page helpful?