Prudai Developer API: members
The operations of this part (Members).
Base URL https://api.prudai.com/v1. Logging in is in Login, scopes in Scopes and permissions, errors in Errors. Overview.
| Method | Path | What it does | State |
|---|---|---|---|
GET | /v1/organizations/{id}/members | Members of the organisation | Coming soon |
DELETE | /v1/organizations/{id}/members/{user_id} | Remove a member (a different owner approves; files a removal request) | Coming soon |
POST | /v1/organizations/{id}/members/{user_id}/disabled | Switch a member off or on (a different owner approves) | Coming soon |
Members of the organisation
GET /v1/organizations/{id}/members
Personal tokens of an organisation owner only. Name, e-mail, role, switched off, and whether a removal request is open.
- State: coming soon, not in production yet.
- Scope:
account:members:read - Approval:
none, no extra step.
Parameters
idrequired
The organisation id of the caller.offset
default:0· min 0 · max 100000limit
default:50· min 1 · max 100
Responses
| Status | Meaning |
|---|---|
200 | The members. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution). |
404 | Unknown model, source or document. |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
curl -s "https://api.prudai.com/v1/organizations/<id>/members" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo organizations-members listRemove a member (a different owner approves; files a removal request)
DELETE /v1/organizations/{id}/members/{user_id}
Personal tokens of an owner only. The member is switched off in every product at once and a removal request is filed; Prudai decides on the erasure. Nothing is erased by this call.
- State: coming soon, not in production yet.
- Scope:
account:members:delete - Approval:
review, a second person or role approves. - Deleting is soft; see Conventions.
Parameters
idrequired
The organisation id of the caller.user_idrequired
The member’s account id.
Responses
| Status | Meaning |
|---|---|
200 | The removal request. |
202 | Approval request; a different owner decides in the Console, then replay the exact request with X-Prudai-Approval. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution). |
404 | Unknown model, source or document. |
409 | A request with the same Idempotency-Key is still running. |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
curl -s -X DELETE "https://api.prudai.com/v1/organizations/<id>/members/<user_id>" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo organizations-members deleteSwitch a member off or on (a different owner approves)
POST /v1/organizations/{id}/members/{user_id}/disabled
Personal tokens of an owner only. Off closes sign-in in every product, frees the seat and keeps all data.
- State: coming soon, not in production yet.
- Scope:
account:members:write - Approval:
review, a second person or role approves.
Parameters
idrequired
The organisation id of the caller.user_idrequired
The member’s account id.
Body
JSON, required.
disabledrequiredreasonrequired
max length 500
Responses
| Status | Meaning |
|---|---|
200 | The new state. |
202 | Approval request; a different owner decides in the Console, then replay the exact request with X-Prudai-Approval. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution). |
404 | Unknown model, source or document. |
409 | A request with the same Idempotency-Key is still running. |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
curl -s -X POST "https://api.prudai.com/v1/organizations/<id>/members/<user_id>/disabled" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "disabled": false, "reason": "string" }'prudai leo organizations-members disabled