curl
curl -X GET "https://api.linkvite.io/v1/collections/<id>/invite-links" \
-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.collections.getInviteLinks('<id>');client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Collections.GetInviteLinks(ctx, "<id>"){
"data": [
{
"collection_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"max_usage_count": 123,
"role": "admin",
"status": "active",
"updated_at": "2023-11-07T05:31:56Z",
"usable": true,
"usage_count": 123,
"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>"
}Collections
Get collection invite links
(collection admins) — every link made for the collection, newest first, so admins can copy or revoke old ones
Scope: collections:read · Rate limit: 250 requests per 5 minutes
GET
/
v1
/
collections
/
{id}
/
invite-links
curl
curl -X GET "https://api.linkvite.io/v1/collections/<id>/invite-links" \
-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.collections.getInviteLinks('<id>');client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Collections.GetInviteLinks(ctx, "<id>"){
"data": [
{
"collection_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"max_usage_count": 123,
"role": "admin",
"status": "active",
"updated_at": "2023-11-07T05:31:56Z",
"usable": true,
"usage_count": 123,
"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>"
}Was this page helpful?