Skip to main content

Cancel Invitation

DELETE/users/invitations/{id}
Revoke a pending invitation. The invitation code will stop working immediately. Use this if you sent an invitation to the wrong person or changed your mind. You can always send a new invitation later if needed.

When to use this

  • Revoking an invitation sent to the wrong email
  • Cancelling access before someone joins
  • Cleaning up expired invitations

Parameters

idpathrequired
string

Response

Invitation cancelled successfully

Notes

ℹ️Cancelling an invitation is immediate-the code stops working right away.
💡If someone's already accepted, you'll need to remove their roles instead.
Code Samples

Cancel User Invitation using the TypeScript SDK:

import { BackstageClient } from '@ticketlayer/backstage';

const client = new BackstageClient({
organisationSlug: 'your-org',
});
client.setAccessToken('YOUR_ACCESS_TOKEN');

// Cancel User Invitation
const result = await client.userinvitation.cancelUserInvitation('{{ID}}');

console.log('Operation completed:', result);

Try It

Path Parameters

Related