Skip to content

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.

MethodPathWhat it doesState
GET/v1/organizations/{id}/membersMembers of the organisationComing 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}/disabledSwitch 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

  • id path · string (uuid) required
    The organisation id of the caller.
  • offset query · integer
    default: 0 · min 0 · max 100000
  • limit query · integer
    default: 50 · min 1 · max 100

Responses

StatusMeaning
200The members.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
429Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded.
curl
curl -s "https://api.prudai.com/v1/organizations/<id>/members" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (coming soon)
prudai leo organizations-members list

Remove 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

  • id path · string (uuid) required
    The organisation id of the caller.
  • user_id path · string (uuid) required
    The member’s account id.

Responses

StatusMeaning
200The removal request.
202Approval request; a different owner decides in the Console, then replay the exact request with X-Prudai-Approval.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
409A request with the same Idempotency-Key is still running.
429Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded.
curl
curl -s -X DELETE "https://api.prudai.com/v1/organizations/<id>/members/<user_id>" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (coming soon)
prudai leo organizations-members delete

Switch 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

  • id path · string (uuid) required
    The organisation id of the caller.
  • user_id path · string (uuid) required
    The member’s account id.

Body

JSON, required.

  • disabled boolean required
  • reason string required
    max length 500

Responses

StatusMeaning
200The new state.
202Approval request; a different owner decides in the Console, then replay the exact request with X-Prudai-Approval.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
409A request with the same Idempotency-Key is still running.
429Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded.
curl
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"
}'
CLI (coming soon)
prudai leo organizations-members disabled