Captivo IDAdmin APIAutomationMember Management

Scripting Member Management: The Captivo ID Admin API

API
ON THIS PAGE
IN SHORTThe organisation owner creates an Admin API key; an HR system or a script manages members and groups and reads the activity log. A read key only does GET, and every change is written to the activity log under the key's name.

When someone starts, when someone changes role, when someone leaves, correcting membership by hand is slow and error-prone. These jobs belong in your HR system or a script. The Captivo ID Admin API is built for exactly that.

Creating a key

You create a key in the Admin API keys section of the organisation page; only owners can, and the key is shown once. Send it on every request as Authorization: Bearer cid_…. A read key only does GET; a write key works with the owner's authority.

What you can do

  • Organisation and members: list the organisation and its members, read one member.
  • Adding a member: invite a member with an e-mail and a role. The response is 201 and carries inviteLink and mailed.
  • Updating a member: change the role, pause the member, or set (or clear) an end date.
  • Removing a member and resetting their two-step.
  • Groups: create and delete groups, add and remove members.
  • Activity log: without since you get the last 7 days; limit defaults to 500, at most 1000; the newest event comes first.
CAPTIVO IDOne account and two-step verification everywhereRADIUS MFA for VPN and firewall sign-ins, SSO to your apps with SAML and OIDC.Explore ID Start free

The invite link is valid for 7 days. If mailed comes back false, the e-mail did not go; pass the link to the person yourself. Your script should check this field, or the invitation is silently lost.

Rules and limits

  • The last owner cannot be removed or demoted.
  • A key is limited to 300 requests per minute; beyond that you get 429 and Retry-After.
  • Errors are JSON ({"error": "code", "message": …}): 401 invalid key, 403 not permitted, 404 not found, 409 a rule refused it.
It leaves a trail: every change is written to the activity log as api:<key name> and Captivo Portal and Access are told straight away. Give each script its own key; which one did what can then be read from the log.

When the Admin API, when SCIM

If Entra ID or Okta already manages your members, SCIM fits better; people and groups arrive in the organisation by themselves. The Admin API is for when you have no such directory, or want to feed membership from another source such as your HR system. See enterprise sign-in and SCIM.

With Captivo ID

All the endpoints and example requests are in the developer documentation. To stream events to your own system, read the event stream post.