Claude Platform Docs

Delete Invite

$client->beta->organization->invites->delete(string inviteID): InviteDeleteResponse
DELETE/v1/organizations/invites/{invite_id}

Delete a pending invite.

Parameters
inviteID: string⁠Path parameter

ID of the Invite.

Returns
class InviteDeleteResponse { $type = 'invite_deleted'; $id; }
"invite_deleted" type

Deleted object type.

For Invites, this is always "invite_deleted".

string id

ID of the Invite.

Errors

Any method can also return the general HTTP errors.

SandboxEgressRestrictedExceptionHTTP status 403error code sandbox_egress_restricted

The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.

Delete Invite
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Anthropic\Client;

$client = new Client(apiKey: 'my-anthropic-api-key');

$invite = $client->beta->organization->invites->delete('invite_id');

var_dump($invite);
Returns Examples
Response 200
{
  "id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
  "type": "invite_deleted"
}