Ga naar inhoud

Prudai Developer API: leden

Members of the organisation (list, switch off or on, file a removal request). Personal tokens of an owner only; never issuable to a service key; writes wait for a different owner.

Basis-URL https://api.prudai.com/v1. Inloggen staat in Inloggen, scopes in Scopes en rechten, fouten in Fouten. Overzicht.

MethodePadWat het doetStand
GET/v1/organizations/{id}/membersMembers of the organisationBinnenkort
DELETE/v1/organizations/{id}/members/{user_id}Remove a member (a different owner approves; files a removal request)Binnenkort
POST/v1/organizations/{id}/members/{user_id}/disabledSwitch a member off or on (a different owner approves)Binnenkort

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.

  • Stand: binnenkort, nog niet op productie.
  • Scope: account:members:read
  • Goedkeuring: none, geen extra stap.

Parameters

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

Antwoorden

StatusBetekenis
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 (binnenkort)
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.

  • Stand: binnenkort, nog niet op productie.
  • Scope: account:members:delete
  • Goedkeuring: review, een tweede persoon of rol keurt goed.
  • Verwijderen is zacht; zie Conventies.

Parameters

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

Antwoorden

StatusBetekenis
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 (binnenkort)
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.

  • Stand: binnenkort, nog niet op productie.
  • Scope: account:members:write
  • Goedkeuring: review, een tweede persoon of rol keurt goed.

Parameters

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

Body

JSON, verplicht.

  • disabled boolean verplicht
  • reason string verplicht
    max. lengte 500

Antwoorden

StatusBetekenis
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 (binnenkort)
prudai leo organizations-members disabled