pbs-library

GET /v1/pbs-library/account

This site's library plan, quota and usage.

All pbs-library endpoints

All developer docs →

Authentication

Send an API key as a bearer token. This endpoint does not state a specific permission in the specification, so give your key the least it needs and check the response rather than assuming.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/pbs-library/account \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

What the plugin shows as the quota meter. can_save is false when the licence has lapsed (reads keep working; saving resumes automatically after renewal, §2.46).

Response

NameTypeRequiredWhat it is
planstring<personal, business, agency>Yes—
licence_statestring<active, lapsed>No—
can_savebooleanYes—
quota_bytesintegerYes—
used_bytesintegerYes—
item_countintegerYes—
max_itemsintegerYes—
max_item_bytesintegerYes—
max_image_bytesintegerYes—
max_image_edgeintegerYes—
image_typesstring[]Yes—
teams_allowedbooleanYes—
sessionobjectNo—

Errors this endpoint can return

401 · 429