curl
curl -X POST "https://api.linkvite.io/v1/invites/<id>/revoke" \
-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.invites.revoke('<id>');client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Invites.Revoke(ctx, "<id>"){
"data": {
"collection_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"recipient_id": "<string>",
"role": "admin",
"status": "accepted",
"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>"
}Invites
Withdraws a pending invite the caller sent
Scope: invites:edit · Rate limit: 250 requests per 5 minutes
POST
/
v1
/
invites
/
{id}
/
revoke
curl
curl -X POST "https://api.linkvite.io/v1/invites/<id>/revoke" \
-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.invites.revoke('<id>');client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Invites.Revoke(ctx, "<id>"){
"data": {
"collection_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"recipient_id": "<string>",
"role": "admin",
"status": "accepted",
"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>"
}Was this page helpful?