Skip to main content
Identities

Ensure an Admin Identity

Get the current account's Admin Identity, creating it if it does not exist.

POST /api/v1/forward/identities/admin/ensure This endpoint does not require a request body. Repeated calls return the same Admin Identity.

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or SAT>

Example request

curl -s -X POST 'https://api.qoder.com/api/v1/forward/identities/admin/ensure' \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

Example response

HTTP 200 OK
{
  "id": "idn_admin",
  "external_id": "__qca_admin_identity__",
  "name": "QCA Console Admin",
  "identity_type": "admin",
  "enabled": true,
  "metadata": {},
  "created_at": "2026-07-14T10:00:00Z",
  "updated_at": "2026-07-14T10:00:00Z"
}

Errors

HTTPTypeCodeTrigger
401authentication_errorauthentication_requiredThe PAT or SAT is invalid, expired, or missing.
500api_error-The Identity could not be created or queried.

Notes

The Admin Identity is managed by the system and cannot be modified through the standard Identity update, delete, enable, or disable endpoints.