Scripting Member Management: The Captivo ID Admin API
ON THIS PAGE
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.
The invite link
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.
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.