veil

Read organisation members by page

Read the members whose position starts with a prefix, with the proof to the members root.

GET/v1/organizations/{n}/members
Access
Public; API key optional
Client
Browser fetch supported

Parameters#

NameLocationMeaning
nRequiredPathPermanent positive card number.
prefixQueryStandard base64 of the prefix bytes; empty for the first page.
bitsQueryPrefix length in bits, 0 to 24. Default: the server’s page depth.

Request examples#

cURL
curl -fsS 'https://veil.rip/v1/organizations/2/members'
javascript
const response = await fetch("https://veil.rip/v1/organizations/2/members");
const result = await response.json();

Response#

HTTP 200application/json

items are the members of the page; proof leads from the page’s subtree to root, the members root of the current version.

FieldTypeMeaning
nintegerPermanent card number.
versionintegerThe current version the page belongs to.
rootstringThe members root in standard base64.
prefixstringThe prefix bytes in standard base64.
bitsintegerThe prefix length in bits.
itemsarray<object>member, role and since of each member of the page.
proofobjectbitmap and siblings from height 256 minus bits to the root.
pagesintegerHow many pages the server’s depth makes.

Response headers#

HeaderValueMeaning
Content-Typeapplication/jsonUse the declared media type before choosing a parser.
DateHTTP dateServer time. Compare it with your clock when signing requests.
Retry-Afterinteger seconds, on rate_limited or busyWait at least this long before retrying. Other 429/503 codes do not necessarily include it.

What to verify#

Compute the page’s subtree root from items and fold proof to root, which the card’s state.roots.members must equal.

Usage notes#

  • Only on a log in format 2 (GET /v1/log says format 2). A log in format 1 answers 400 wrong_format.

Errors#

API errors return an error object. Use error.code for program logic; error.message is English text for people and can change. Response and error guide

HTTPCodeMeaning and next step
400invalid_parameter

A path, query or body field is missing, malformed or outside its accepted range.

Correct the field named in error.message before sending again.

400wrong_format

The request or the read belongs to the other log format than this server’s: a v1 record on a format 2 log, or a format 2 read on a format 1 log.

Read format in GET /v1/log (absent means 1) and send the shape of that format.

404not_found

The requested card, key, alias, code or resource was not found.

Check the identifier. Temporary codes and previews may already have expired or been used.

410erased

The card existed and was erased or removed. The response also carries its public erasure receipt.

Stop using this card as current authority. Retain only the public receipt if needed.

422not_an_organization

The card is a person where an organisation is required.

Use the person endpoint or an organisation card.

When using an optional API key
HTTPCodeMeaning and next step
401invalid_api_key

The bearer credential is malformed, unknown, expired or revoked.

Use an active key. To use anonymous public access, remove Authorization entirely. Invalid credentials never fall back automatically.

403api_key_scope

The API key lacks read or verify scope, or the endpoint does not accept bearer keys.

Use the correct scope. Identity writes and key management still require a device signature.

403api_key_suspended

This API key is suspended.

Ask staff to restore it; another key cannot lift an account suspension.

403developer_suspended

The owner’s API account is suspended or the owner card is unavailable.

Check the owner account and any staff restriction. Creating another key does not bypass suspension.

Shared request errors
HTTPCodeMeaning and next step
429rate_limited

An anonymous, signed-request or API-key allowance was exceeded.

Wait at least Retry-After seconds. Share a queue and retry budget across your workers.

500internal_error

An unexpected server error occurred. Internal details are not returned.

Retry reads with bounded backoff. Check write results before sending a new signed operation.

503busy

The application has reached a temporary concurrency or database limit.

Wait Retry-After seconds and retry with bounded backoff.