Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/users/archive-usersUsersPermission: users.delete

Archive Users

Soft-archives one or more user accounts (`isArchived: true`, up to 100 IDs per request) within the active tenant. Archived users lose all session access immediately.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body application/json
idsarray<string (uuid)>required

ids parameter.

Responses

Select a status code to inspect schema.

OK — Users archived successfully.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/users/archive-users
curl -X POST "https://api.invoger.com/api/users/archive-users" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "ids": [ "c7d8e9f0-1234-5678-9abc-def012345678" ] }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Users archived successfully",
  "data": {
    "count": 1
  }
}