Claude Platform Docs

Eliminar invitación

client.organization.invites.delete(inviteID, options?): InviteDeleteResponse
DELETE/v1/organizations/invites/{invite_id}

Elimina una invitación pendiente.

Parameters
inviteID: string⁠Path parameter

ID of the Invite.

Returns
interface InviteDeleteResponse { type: "invite_deleted"; id }
type: "invite_deleted"

Deleted object type.

For Invites, this is always "invite_deleted".

defaultinvite_deleted
id: string

ID of the Invite.

Eliminar invitación
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});

const invite = await client.organization.invites.delete("invite_id");

console.log(invite.id);
Returns Examples
Response 200
{
  "id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
  "type": "invite_deleted"
}