API and MCP
240 operations
Guides and areas22
Overview
Zegazone has no AI of its own. Your AI reads and writes your collections through an MCP server, or your code does it over HTTPS. This page lists every operation of this environment’s API, made from its live OpenAPI document.
240 operations in 22 areas. 122 take an agent token, and 106 of those are also MCP tools. The rest are the web app’s own calls and the OAuth endpoints.
- App
- https://zegazone.app
- Studio, where a person signs in and allows a client
- https://studio.zegazone.app
- API
- https://api.zegazone.app
- MCP server and OAuth issuer
- https://mcp.zegazone.app
- Media bytes
- https://zegazone.net
There are two ways in. An AI client signs in with OAuth (next). A script can use a personal agent token: a signed-in person makes one with POST /tokens, and it is sent as Authorization: Bearer <token>.
Every state-changing request (POST, PUT, PATCH, DELETE) carries the X-Zegazone-Client header, a short client name; without it the answer is 403 missing_client_header.
Every error is {error, detail?, field?} with a code from the error model (x-error-model: code to HTTP status).
Lists take limit (clamped to 1–500, default 100) and offset, and answer pagination.total exactly.
Sign in with OAuth
AI clients connect with OAuth 2.1. The person signs in on Studio and chooses Allow, and your client gets a token that acts as them, with the scopes they allowed and nothing more. PKCE with S256 is required of every client.
Register your client once with POST https://mcp.zegazone.app/oauth/register (RFC 7591); everything else is found from https://mcp.zegazone.app/.well-known/oauth-authorization-server. A redirect address is a loopback address (http://localhost, http://127.0.0.1 or http://[::1], any port) or one of the known clients’ own; any other is refused with invalid_redirect_uri.
Send the person to
https://mcp.zegazone.app/oauth/authorizewith your client id, a PKCE challenge and the scopes you need.GET https://mcp.zegazone.app/oauth/authorize ?response_type=code &client_id=<your client id> &redirect_uri=<your redirect address> &code_challenge=<the S256 hash of your verifier> &code_challenge_method=S256 &scope=profile:read collections:read &state=<a random value>
They sign in on Studio, read what you will be able to do, and choose Allow. Their browser goes back to your redirect address with
code,stateandiss.Exchange the code and your verifier for a token at
https://mcp.zegazone.app/oauth/token.POST https://mcp.zegazone.app/oauth/token Content-Type: application/x-www-form-urlencoded grant_type=authorization_code&code=<the code>&redirect_uri=<the same address>&code_verifier=<your verifier>&client_id=<your client id>
The answer holds
access_token(good for an hour),refresh_token(90 days, renewed each time it is used, for a client registered with that grant) and the grantedscope. Renew withgrant_type=refresh_token; end a connection withPOST https://mcp.zegazone.app/oauth/revoke.
A call needs exactly the scope on its row; no scope implies another. The scopes in use: profile:read, collections:read, collections:write, collections:delete, items:read, items:write, items:delete, sharing:write, profile:write, settings:read, settings:write, player:control. settings:read and settings:write are granted only to a client that asks for them by name.
Use it over MCP
The server’s address:
https://mcp.zegazone.app/mcp
Add the address in your client’s MCP settings. The client finds the sign-in itself, opens Studio for the person to allow it, and keeps its own tokens; there is no token to paste. In Claude, open Settings, Connectors, Add custom connector and paste the address.
claude mcp add --transport http zegazone https://mcp.zegazone.app/mcp
{
"mcpServers": {
"zegazone": {
"url": "https://mcp.zegazone.app/mcp"
}
}
}A tool is named like its operation, with underscores: items.add is items_add. 106 tools are listed, appearing as profile_*, collections_*, items_*, tags_*, libraries_*, bookmarks_*, queue_*, sharing_*, photos_*, activity_*, publishing_*, aliases_*, ui_*, player_*, settings_*, bug_*, skills_*. A file can be added with only this connection: items_upload with transfer set to inline, then items_upload_chunk and items_finalise.
People queue requests for their agent in Studio (the AI symbol, then Add to queue). When the person says “process my Zegazone queue”, call queue_list: it gives one numbered prompt. Do each request, then call queue_complete with its entry id. profile_ping answers queue_waiting, how many wait. An entry of kind custom is one of the person’s own saved prompts, in their words with ids put in; no tool reads or writes those prompts themselves.
Errors and limits
Every error is a JSON body {error, detail?, field?}. error is one of the codes below, with the status shown; detail says why and field names the argument at fault.
invalid_json400The body is not JSON.invalid_request400A missing, invalid or unknown field;fieldnames it anddetailsays why.invalid_skill400A skill is refused;reasonnames why: skill_md_missing, frontmatter_missing, name_missing, name_invalid, name_mismatch, description_missing, description_too_long, markdown_missing, markdown_too_long, not_a_zip, zip_unsupported, unsafe_path, too_many_files, skill_too_large, not_single_folder, bundle_not_editable, binary_file (a file handed over MCP as text holds bytes that are not text) or path_conflict (a file where the bundle has a folder, or inside one of its files).not_a_text_note400A text-note operation on an item that is not a note.collection_not_empty400Delete refused for a non-empty collection without cascade.integrity_mismatch400The declared length or SHA-256 does not match the bytes received.secret_material_detected400The text contains token-shaped material; nothing was stored.webhook_url_not_https400A webhook URL must use https.webhook_url_has_credentials400A webhook URL must not carry credentials.webhook_url_zegazone_host400A webhook URL must not point at Zegazone.webhook_url_blocked_host400A webhook URL points at a blocked host.unauthorized401Missing, invalid or expired agent token.wrong_token_type401The wrong kind of credential: a session cookie sent to an agent route, or a bearer token to a session route.session_required401This route needs a signed-in session.session_ended401The session was ended; sign in again (the only answer that signs a client out).insufficient_scope403The token lacks a scope;neednames it.forbidden403No access, not the owner, or admin only.insufficient_permission403A collaborator lacks a permission;permissionnames it.account_suspended403The account is suspended.email_verification_required403Confirm the account's email first: publishing and sharing wait for it, and past the 48-hour deadline so does adding;remedysays how.alias_limit_reached403The plan's alias cap is reached.publish_limit_reached403The plan's published-collection cap is reached.missing_client_header403A state-changing request without the X-Zegazone-Client header.not_found404Absent or not visible; also hides that a private thing exists.duplicate_collection_name409A collection beside it (the same parent, or the owner's top level) already has this name;conflictnames it.duplicate_library_name409The person already has a library with this name (case ignored).library_follows_collection409The library follows a collection, so it takes no collections by hand and has no order of its own; stop following first, or use another library.library_not_empty409The library holds collections, so it cannot follow one; remove them first, or make a new library.cycle_detected409A collection cannot move into its own subtree.nesting_too_deep409Collections nest at most 64 levels deep; this would put one deeper.publish_handle_locked409The handle of a published collection cannot change.alias_frozen409The alias is frozen (over the plan's channels): what is published under it stays, nothing new publishes under it.alias_has_subscribers409People subscribe to the alias: stop the subscription before it is retired.slug_taken409The slug is reserved (deleted collections included).publish_held409The secret check found a possible secret: fix the item or mark the finding not a secret, then publish.handle_taken409The handle is taken.name_reserved409The name is reserved.name_screen_rejected409The name was refused by the name screen.skill_changed409The skill changed since the version this edit was based on; nothing was written. Read it again (current_version) and redo the edit.note_changed409The note's text changed since the version this write was based on; nothing was written. Read it again (current_version) and redo the change, or sendforce: trueto write over it.ambiguous_reference409The name given is held by more than one item you may read; nothing was done.candidateslists each (id, title, collection); ask the person which one and call again with its id.word_name_taken409Another item in this account already has that name; nothing was written.holdernames it (id, title, collection).idempotency_conflict409The idempotency key was used for another operation.idempotency_done_unreplayable409This request already went through, but its answer was not kept; read the result instead.idempotency_in_flight409A request with this idempotency key is still running; ask again shortly. The server may hold a same-key request up to about 15 s before answering this (a key held after a 503server_busy, at most 12 s, then one 2 s wait for the request that took it over).webhook_secret_unreadable409The stored webhook secret cannot be decrypted; the webhook is disabled.export_in_progress409An export of the account is already queued, being made, or ready for its 7 days;exportis that one.restore_window_expired410The restore window has passed.upload_expired410The upload window has passed.download_expired410The download window has passed.file_too_large413The file is over the plan's per-file size.storage_quota_exceeded413The owner's storage is full.rate_limited429A burst limit was hit;retry_after_secondssays when to try again.quota_exceeded429A resource cap (collections, items, bookmarks, live agent tokens).mcp_quota_exceeded429The plan's monthly agent-operation allowance.decision_budget_exceeded429The account's daily decision budget is spent.suggestion_allowance_exceeded429The month's suggestion allowance is spent.server_error500An unhandled failure; no detail is given. Safe to retry with backoff.server_busy503The database did not answer within its budget; retry afterretry_afterseconds.invalid_token401The bearer token is not an agent token this API issued (unknown or malformed).token_expired401The agent token has passed its expiry; mint a new one.token_revoked401The agent token was revoked; mint a new one.live_updates_unavailable503No live-update token could be minted (the identity provider did not answer); the session is kept. Retry afterretry_afterseconds.payouts_unavailable503Stripe is not configured here (no test-mode key), refused our key (401 or 403), or did not answer;detailsays which. Nothing was changed at Stripe.payouts_refused502Stripe refused the payouts request, so it made nothing. Asking again gets the same answer until the cause is fixed at Stripe; the reason is logged for the operator.charging_not_allowed403Setting a price needs a paid plan, payouts set up and the creator terms accepted;reasonnames the first missing andmissinglists them all.payouts_not_set_up409The Stripe dashboard opens only once payouts onboarding is done.push_unavailable503Push is not configured here (its signing keys are absent or do not make a pair); nothing was stored or sent.photo_search_unavailable503Free-photo search is not available: no provider key is set here, or the provider is down or out of quota (reason). Upload your own image instead, or try again in a minute.billing_unavailable503Billing is not switched on here, or the payment provider did not answer; nothing was opened or charged (reason).no_billing_account404The account has no billing customer: it has never paid for a plan.selling_unavailable503Selling is not switched on here, or Stripe could not be reached: no price was set and no checkout opened.seller_not_ready403Setting a price needs a paid plan, payouts set up and the creator terms accepted;missingnames what is left.not_for_sale409Nothing is for sale there: no live price, or the seller cannot take payments now.already_entitled409You already receive this clear (the owner, a member, a buyer or a subscriber): there is nothing to buy.not_refundable409A refund is available only while unopened and within 14 days;reasonsays why not:opened,window,refundedorended.has_buyers409People bought this collection, so it can't be deleted: stop selling instead;buyerssays how many.has_subscribers409People subscribe to this handle, so it can't be deleted yet: stop the subscription first;subscriberssays how many.upload_not_found409Finalise found no uploaded bytes for this item yet; PUT them, then finalise again.render_failed502The image could not be rendered (undecodable, or the renderer failed); nothing changed. Retry, or use another image.third_party_url_unavailable503No single-object URL for a third-party viewer could be issued; show the viewer's error, never a broader URL.reset_link_expired410The reset link is expired, already used, or was not opened in the browser that asked for it;statesaysexpiredorused. Ask for a new link.reauthentication_required403A sensitive action wants a recent sign-in. Changing the password on a session over 24 hours old: the identity provider wants the code it emails;addressshows where it goes. Send it withPOST /auth/password/code, then repeat the change withcode. Minting a personal agent token (POST /tokens) wants proof within 10 minutes:reasonpassword_required, repeat it withcurrent_password;sign_in_again, sign in again, then repeat it.invalid_client401OAuth: client authentication failed (an unknown client, or a wrong or missing secret).invalid_grant400OAuth: the code or refresh token is unknown, expired, used, revoked or issued to another client, or the PKCE verifier or redirect URI does not match.unauthorized_client400OAuth: this client is not registered for the grant type it asked for.unsupported_grant_type400OAuth: the token endpoint serves authorization_code and refresh_token only.invalid_scope400OAuth: the requested scope names nothing this client may be granted.invalid_target400OAuth (RFC 8707): the resource is not one this server issues tokens for.invalid_redirect_uri400OAuth registration: a redirect URI is outside the allowlist (docs/ops/OAUTH.md).invalid_client_metadata400OAuth registration: a metadata field is missing, malformed or not supported.
A burst over a limit is rate_limited, and the answer says in seconds when to try again. Each plan has a monthly allowance of agent operations; once it is spent the answer is mcp_quota_exceeded with ops_used, limit, resets_at and plan, and a Retry-After header. A refused call does not use the allowance, and GET /usage reads it.
Send idempotency_key in the body, or an Idempotency-Key header, on a write: repeating it replays the first answer instead of doing the work twice, and reusing it for another operation is idempotency_conflict.
Collections26 operations
Collections hold items and other collections. A new collection is private. Deleting one moves it to Trash, where it can be restored.
collections.listList your collections and those shared with youcollections:read
Needs
collections:read.Your live collections and those shared with you (direct or inherited memberships), each with
viewer_permissionsandcapabilities. Withtab,q,tags,sortorincludeit is Studio's library view (–134, 148, 158): a tab's collections, searched, filtered and sorted on the server, hidden sub-collections and archived ones only when included, and on the first page the foot rows'counts. Otherwise the agent listing: archived, deleted and sub-collections left out unless asked for, manual order, then newest first.Arguments
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact. - parent_idstring · query
- Only this parent's live children.
- include_subcollectionstrue · false · query
- Also list sub-collections (left out by default). Not with parent_id.
- include_archivedtrue · false · query
- Also list your own archived collections (the archived view).
- scopeall · owned · shared · query
- owned: yours; shared: others' you are a member of; all: both. The agent listing: not with tab, q, tags, sort or include.
- tabstring · query
- A library tab: private (yours), workspaces (others' you are a member of), public (yours, published), or library:{id}, a library you created (: its collections you can still read). Without it, with q, tags, sort or include: private and workspaces together.
- qstring · query
- Search: a substring of the name or description, ignoring case; an exact number (#48213) or id pins that collection first.
- tagsstring · query
- Comma-separated: collections carrying any of these tags (their own tags, never their items').
- sortrecent · liked · viewed · az · manual · query
- recent (the default with the library view: latest activity first), liked (most likes first), viewed (most views first) or az (by name, ignoring case). liked and viewed order by the all-time counts and break ties by latest activity. manual, on a created library's tab only (tab=library:{id}): its own order, the order you put its collections in, or for a tab that follows a collection that collection's tile order; unstated there, a tab's default is manual when it follows a collection or you have ordered it, else recent.
- includestring · query
- Comma-separated: hidden_subcollections (sub-collections without Show in my library), archived.
Example
GET https://api.zegazone.app/collections Authorization: Bearer <token>
Over MCP, the tool
collections_listtakes the same arguments.Returns
200One page of collections with the exact total. Fields:items,pagination,counts.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.createCreate a collectioncollections:write
Needs
collections:write.Live, unpublished and private unless a level is stated, owned by the caller; under a parent of theirs when
parent_idis given. At most 1,000 live collections per account; a name is unique among its siblings (the same parent, or the owner's top level) by address, and a clash isduplicate_collection_namenaming the sibling asconflict.Arguments
- namestring · body · required
- Required; trimmed.
- descriptionstring or null · body
- At most 4000 characters; empty is null.
- description_formatplain · markdown · body
- Defaults to plain.
- share_levelprivate · restricted · registered · public · body
- Defaults to private.
- tagsarray of string · body
- At most 10, stored lower-case and trimmed.
- parent_idstring or null · body
- Create it as a sub-collection of this collection of yours.
- show_in_libraryboolean · body
- Off when absent: a sub-collection is listed in the library tabs only with this on. Kept as stated, but it matters only while the collection has a parent.
Example
POST https://api.zegazone.app/collections Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "name": "Field notes" }Over MCP, the tool
collections_createtakes the same arguments.Returns
201The new collection. Fields:number,id,owner_id,parent_id,former_parent_id,name,description,share_level,published,first_published_at,epoch,position,tags,item_count,sub_collection_count,playback_settings,answer_to_enter,adult,gates,archived_at,deleted_at,restorable_until,created_at,updated_at,viewer_permissions,cover,publication,social,workspace,description_format,show_in_library,owner_handle,last_activity_at,channel_seq,channel_epoch,cover_urls,capabilities,shared.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_scope403missing_client_header403not_found404duplicate_collection_name409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409nesting_too_deep409mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
collections.getGet a collectioncollections:read
Needs
collections:read.Any collection the caller may read: their own (archived or in Trash included), one they are a member of, or a published one by its level. Signed out, only published public collections, rate-limited per address. A published Registered or Restricted collection the caller may not read is refused with its
gate. Anything else isnot_found. Someone outside the collection is shown only what its publication says.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
Example
GET https://api.zegazone.app/collections/b4kq7xz2m9np Authorization: Bearer <token>
Over MCP, the tool
collections_gettakes the same arguments.Returns
200The collection. Fields:number,id,owner_id,parent_id,former_parent_id,name,description,share_level,published,first_published_at,epoch,position,tags,item_count,sub_collection_count,playback_settings,answer_to_enter,adult,gates,archived_at,deleted_at,restorable_until,created_at,updated_at,viewer_permissions,cover,publication,social,workspace,description_format,show_in_library,owner_handle,last_activity_at,channel_seq,channel_epoch,cover_urls,capabilities,shared.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.updateChange a collection's name, description, share level, tags, playback settings or Show in my librarycollections:write
Needs
collections:write.Owner only, the playback settings included: a member's change to how it plays lasts for their visit and is never stored.
description_format(plain or markdown) andshow_in_libraryare stored as stated. A published collection's name is locked (publish_handle_locked). A share level that narrows a published collection's audience bumps its epoch.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- namestring · body
- Locked while published.
- descriptionstring or null · body
- description_formatplain · markdown · body
- Changes how the description is written, with or without a new one.
- share_levelprivate · restricted · registered · public · body
- Who may view it once published.
- tagsarray of string · body
- Replaces every tag.
- show_in_libraryboolean · body
- Show in my library: a sub-collection is listed in the library tabs only with this on. Owner only.
- answer_to_enterobject · body
- Answer to enter (: owner only): the question, the accepted answers (write-only), what a correct answer grants and whether the card asks for a name and email. This shares your collection with people who know the answer. It does not secure it.
- members_may_publishboolean · body
- A workspace's switch, off by default: members holding can_edit may publish what is inside it under its handle. Only on a collection that carries a handle (profile.aliases.create with collection_id); turning it off also turns members_may_publish_publicly off, and unpublishes nothing. Owner only.
- members_may_publish_publiclyboolean · body
- A workspace's second switch, off by default: members' publications may be public. Off, a member publishes for the workspace's members only (restricted). Needs members_may_publish. Owner only.
- playback_settingsobject · body
- How it plays; name only what changes. image, video, audio, embed and other are each {on, seconds 1–20}, video and audio also to_end; loop, shuffle, start_fullscreen and pin_first_item are switches; fullscreen_exit is {kind: "close"}, {kind: "button", label} (at most 30 characters, "Start Here" when omitted) or {kind: "none"}; after_start is nothing, first_media_item or collection. Owner only.
Example
PATCH https://api.zegazone.app/collections/b4kq7xz2m9np Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "name": "<string>", "description": "<string>" }Over MCP, the tool
collections_updatetakes the same arguments.Returns
200The collection as changed. Fields:number,id,owner_id,parent_id,former_parent_id,name,description,share_level,published,first_published_at,epoch,position,tags,item_count,sub_collection_count,playback_settings,answer_to_enter,adult,gates,archived_at,deleted_at,restorable_until,created_at,updated_at,viewer_permissions,cover,publication,social,workspace,description_format,show_in_library,owner_handle,last_activity_at,channel_seq,channel_epoch,cover_urls,capabilities,shared.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404duplicate_collection_name409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409publish_handle_locked409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.get_by_slugGet a published collection by its addresscollections:read
Needs
collections:read.The collection at
/{handle}/{slug}, in the one collection shape, for anyone it reaches: signed out, a published Public collection; signed in, a Registered one too; its owner and members, whatever its level, while it is published there. A published Registered or Restricted collection the caller may not read answerssession_required(signed out) orforbiddenwith itsgate: name, handle and the one action. Every other address (unpublished, private, in Trash, suspended, never published, malformed) is the samenot_foundwith the same bytes. Signed out, rate-limited per address. Someone outside the collection is shown only what its publication says (no owner account, no library place, counts of what they can see).Arguments
- handlestring · path · required
- slugstring · path · required
Example
GET https://api.zegazone.app/collections/by-address/charlie/field-notes Authorization: Bearer <token>
Over MCP, the tool
collections_get_by_slugtakes the same arguments.Returns
200The collection. Fields:number,id,owner_id,parent_id,former_parent_id,name,description,share_level,published,first_published_at,epoch,position,tags,item_count,sub_collection_count,playback_settings,answer_to_enter,adult,gates,archived_at,deleted_at,restorable_until,created_at,updated_at,viewer_permissions,cover,publication,social,workspace,description_format,show_in_library,owner_handle,last_activity_at,channel_seq,channel_epoch,cover_urls,capabilities,shared.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.moveSet or clear a collection's parentcollections:write
Needs
collections:write.Atomic:
cycle_detectedfor the collection itself or one inside it, 400 for an archived parent,forbiddenfor a collection that is not yours,noop: truefor the current parent.show_in_libraryis written with the move, or alone when the parent stays;noopis true only when nothing at all changed.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- parent_idstring or null · body · required
- The new parent (one of yours, not archived), or null for top level.
- show_in_libraryboolean · body
- Written with the move, or on its own when the parent stays; absent keeps it as it is.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/move Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "parent_id": "b4kq7xz2m9np" }Over MCP, the tool
collections_movetakes the same arguments.Returns
200Moved, ornoop. Fields:noop,collection.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404cycle_detected409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409nesting_too_deep409mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
collections.archiveArchive a collection and its sub-collectionscollections:write
Needs
collections:write.It leaves every list and live update; its owner still reads it by id; its publication and public address are unchanged.
Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/archive Authorization: Bearer <token> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Archived, ornoop. Fields:noop,cascaded,collection.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.unarchiveUnarchive a collectioncollections:write
Needs
collections:write.Brings it back with the sub-collections its archive took.
Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/unarchive Authorization: Bearer <token> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Unarchived, ornoop. Fields:noop,cascaded,collection.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.deleteSend a collection to Trashcollections:delete
Needs
collections:delete.Needs
confirm: trueunlessdry_run: true, which only reports. Refuses a collection with live items unlesscascade_media: true(collection_not_empty). Restorable for 14 days; bumps the epoch, so its URLs stop at once; its sub-collections become top level until it is restored.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- confirmboolean · body
- Required unless dry_run.
- dry_runboolean · body
- Report what would happen; change nothing.
- cascade_mediaboolean · body
- Send the collection's items to Trash with it.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/delete Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "confirm": true, "dry_run": true }Over MCP, the tool
collections_deletetakes the same arguments.Returns
200Deleted, or the dry run's report. Fields:dry_run,deleted,media_count,sub_collection_count,cascade_media,would_refuse,media_deleted,detached_children,renamed_children,restorable_until,collection.
Errors
collection_not_empty400invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404has_buyers409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.restoreRestore a collection from Trashcollections:write
Needs
collections:write.Owner only, within 14 days of the delete; after that
restore_window_expiredwithdeleted_atandrestorable_until. Brings back the items its delete took and re-attaches the sub-collections it made top level.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/restore Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
collections_restoretakes the same arguments.Returns
200Restored, ornoopwhen not in Trash. Fields:noop,media_restored,reattached_children,renamed_children,unpublished,collection.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404duplicate_collection_name409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409restore_window_expired410mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
collections.publishPublish a collectioncollections:write
Needs
collections:write.Kept as an alias of
publishing.publish: the same call without a handle, slug or dry run. Gives the collection its address,/{handle}/{slug}, under your default handle, and lets its share level reach people who are not members. A stated level is written, otherwise the stored one stays, except that a level never stated becomes public. It never lists the collection in Discovery; at most 3 published at once on Free (publish_limit_reached); an account that has not confirmed its email is refused (email_verification_required).Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- share_levelprivate · restricted · registered · public · body
- Written when stated; otherwise the stored level stays.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/publish Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "share_level": "private" }This operation is not an MCP tool.
Returns
200Published, ornoop. Fields:noop,dry_run,share_level_defaulted,share_level,address,url,address_changes,previous_address,would_refuse,cap,collection.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_permission403insufficient_scope403missing_client_header403publish_limit_reached403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409publish_held409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.unpublishUnpublish a collectioncollections:write
Needs
collections:write.Kept as an alias of
publishing.unpublish. Clears the published state and bumps the epoch in the same change, so every URL minted before stops; the share level stays for the next publish unless one is stated, and Discovery is switched off with the publication.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- share_levelprivate · restricted · registered · public · body
- Written when stated; otherwise the stored level stays.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/unpublish Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "share_level": "private" }This operation is not an MCP tool.
Returns
200Unpublished, ornoop. Fields:noop,collection.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.price.getA collection's price, its channel's subscription, and what you holdcollections:read
Needs
collections:read.For anyone who may read the collection, signed out included (rate-limited per address): its one-off price while it sells, the subscription of the channel it is published under, the one way to pay, how many items it has and how many are Paid, and whether you receive the Paid items clear (owner, member, buyer or subscriber). The owner also gets the fee read-back and
seller: what they still need before they can charge. Nothing here buys.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
Example
GET https://api.zegazone.app/collections/b4kq7xz2m9np/price Authorization: Bearer <token>
Over MCP, the tool
collections_price_gettakes the same arguments.Returns
200The price. Fields:collection_id,price,channel,way_to_pay,items,paid_items,viewer,seller.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.price.setSet or remove a collection's one-off pricecollections:write
Needs
collections:write.The owner's (an agent needs
collections:write). A price is one of the fixed points from $2 to $499 in US cents; one per collection: another amount replaces it. Setting one needs a paid plan, payouts set up and the creator terms accepted (403seller_not_readywithmissing); while selling is off here, 503selling_unavailable.nullmakes it free again while nothing has sold; once anything sold,forbidden: sendselling: falseto stop selling instead, which keeps every buyer's access. Which items need the purchase is each item's Paid gate (items.gate). Nothing here charges anyone.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- amount_centsinteger or null · body
- US cents, one of the fixed points: 200, 300, 500, 700, 900, 1200, 1500, 1900, 2500, 2900, 3900, 4900, 6900, 9900, 14900, 19900, 29900, 49900; null for Free. Any other amount is
invalid_requestonamount_cents. - sellingfalse · body
- :
falseis Stop selling: the price stays, nobody can buy or start a subscription, every buyer keeps access and subscribers run to the end of the month they paid. Send it withoutamount_cents; setting a price again sells again.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/price Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "amount_cents": 1, "selling": false }Over MCP, the tool
collections_price_settakes the same arguments.Returns
200The price as it now is. Fields:collection_id,price,channel,way_to_pay,items,paid_items,viewer,seller.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403seller_not_ready403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500selling_unavailable503server_busy503
collections.trash.listYour Trash: deleted collections and itemscollections:read
Needs
collections:read.Your deleted collections and the deleted items of your collections, newest deletion first, at most 200. Each row has its restore window; item rows name their collection and carry private byte URLs only. An item whose collection is in Trash comes back with it and is not a row of its own.
Example
GET https://api.zegazone.app/trash Authorization: Bearer <token>
This operation is not an MCP tool.
Returns
200The Trash. Fields:items,total,truncated.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.set_coverSet a collection's covercollections:write
Needs
collections:write.The owner chooses the collection's one square cover: an uploaded image, one of its items (rendered from that item's image or custom thumbnail, never its tile), or none (the first item's default thumbnail).
source: urlwithurlhas the server fetch an http(s) image for you and finishes in the one call;source: free_photowithproviderandphoto_id(a photophotos.searchfound) does the same from that provider's own image paths, and takes no URL. Every new image takes effect only once its renditions exist: the call renders it, then puts it in place, and a failed render answers 502render_failedwith nothing changed. Where the processing queue runs (staging, production), a new image is the exception: finishing its upload (or a cover from an item) records the choice and answersrenderingat once, the item, collection or profile showing the new image with no renditions yet (urlsempty or null); they are made behind the answer and announced as its event (items.set_thumbnail,collections.set_cover,profile.set_avatar). The image it replaces stays until then; a render that cannot be made puts it back, and a thumbnail's event then carriesthumbnail.render_failed: true. The image it replaces is disposed of after. An upload is two calls around a PUT:source: uploadwithfilenameandsize_bytes(at most 25 MB, never charged) answersupload_startedwith where to PUT; after the PUT,source: uploadwithupload_idrenders and sets it.focalalone moves the current image's crop: its square renditions are re-cut in the background (rendering), the current ones served until then.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- sourceupload · url · free_photo · item · none · body
- upload (an image you upload), url (an http(s) image the server fetches, url), free_photo (a photo photos.search found, provider and photo_id), item (one of the collection's images or thumbnails, item_id) or none (the first item's default thumbnail shows). Absent: only focal moves.
- item_idstring · body
- With source item: the item whose image becomes the cover.
- urlstring · body
- With source url: the http(s) address of the image. The server fetches it through the one outbound fetcher (: no private address, redirects checked, 20 seconds, at most 25 MB), renders it, and puts it in place as an upload would; only the owner may ask, and nothing is fetched for anyone else.
- providerpexels · pixabay · body
- With source free_photo: the provider photos.search answered, pexels or pixabay.
- photo_idstring · body
- With source free_photo: the photo's id as photos.search answered it. The server reads the photo from its provider by this id and fetches it from the provider's own image host; no URL is taken.
- focalobject or null · body
- The focal point every square rendition is cut around; null for the attention-aware crop. Alone, without source, it moves the current image's crop.
- filenamestring · body
- With source upload: the image's file name; starts the upload.
- size_bytesinteger · body
- With source upload: the image's size; at most 25 MB. Never charged to storage.
- content_typestring or null · body
- The declared type: only a hint; the bytes decide.
- upload_idstring · body
- With source upload: the upload to finish, after its PUT. Renders it and puts it in place.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/cover Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "source": "upload", "item_id": "q7rt2bx9kz4m" }Over MCP, the tool
collections_set_covertakes the same arguments.Returns
200The collection, its cover as it now stands. Fields:status,collection,upload.
Errors
integrity_mismatch400invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409upload_not_found409upload_expired410file_too_large413mcp_quota_exceeded429rate_limited429server_error500render_failed502photo_search_unavailable503server_busy503
collections.workspaceGet a workspace: its members, their roles and what is publishedcollections:read
Needs
collections:read.A workspace is a top-level Members collection carrying a handle of its own (
profile.aliases.createwithcollection_id). For its owner and accepted members: the workspace as a collection, its handle and page, the owner's two switches, its members with their roles, and what is published under its handle that the caller may read. Anyone else, and a collection with no handle, isnot_found. Needs collections:read.Arguments
- idstring · path · required
- The workspace collection's id.
Example
GET https://api.zegazone.app/collections/b4kq7xz2m9np/workspace Authorization: Bearer <token>
This operation is not an MCP tool.
Returns
200The workspace. Fields:collection,handle,address,url,members_may_publish,members_may_publish_publicly,members,member_count,publications.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403not_found404mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.browseBrowse the public catalogue by rowcollections:read
Needs
collections:read.The Public tab's rows:
trending,channels,browse, and for an accountfollowing,liked,mineandfor_you(: paid plans only, the empty row on Free; public collections ranked by the decision model from an embeddings shortlist, each item with itsrelevance; made on the first read of the day or withrefresh, never an error butrefreshpast the daily decision budget). The catalogue is exactly the collections that are published, Public, listed in Discovery, not in Trash, not archived, not suspended and top-level: a private, unlisted or suspended collection and a sub-collection are never in it, whoever asks. Open to a caller with no account fortrending,channelsandbrowse; the others aresession_required. The server's order is the only order. Adult collections are left out altogether for a viewer who hides them: Settings › Content's Hide adult content, on by default and for every caller with no account, your own included. Limited per address, 200 a minute.Arguments
- rowtrending · channels · browse · following · liked · mine · for_you · query · required
- Which row:
trending(by the trending score),channels(publishers by followers),browse(every collection in the public feed, in the chosen sort),following(the newest from channels you follow; needs an account),liked(what you liked that is still in Discovery; needs an account),mine(your own published collections; needs an account),for_you(paid plans: public collections ranked for you from your own tags, titles and likes, refreshed daily; on Free the empty row; needs an account). - sortrecent · liked · viewed · query
- For
browseandliked:recent(default; publication time),likedorviewed; ties newest first. The other rows have their own order. - tagstring · query
- Tags, comma-separated, at most 10; a collection with any of them.
- followingtrue · false · query
browseonly:truekeeps the collections of channels you follow (the Following chip). Withlikedboth is their union. Needs an account.- likedtrue · false · query
browseonly:truekeeps the collections you liked (the Liked chip).- refreshtrue · false · query
for_youonly:truemakes a new ranking now instead of the day's. It spends one decision of your daily budget; past it the answer is 429decision_budget_exceededwithretry_after_seconds.- limitinteger · query
- Page size. Clamped to 1–100; 50 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0.
Example
GET https://api.zegazone.app/discovery/browse?row=trending Authorization: Bearer <token>
Over MCP, the tool
collections_browsetakes the same arguments.Returns
200One page of a row. Fields:row,items,channels,pagination,hidden,tags.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403decision_budget_exceeded429mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.searchSearch the public cataloguecollections:read
Needs
collections:read.Words from 3 characters over names, descriptions, tags and publishers across the public catalogue, ranked by trending, then text rank, name similarity and id. An all-digit query is also looked up as a collection number: a readable hit is the first item with
id_matchtrue; a number that is not in the catalogue looks exactly like one that does not exist. Open to a caller with no account. The catalogue and the adult setting are ascollections.browse's;hiddensays how many the setting kept out. Limited per address, 200 a minute.Arguments
- qstring · query · required
- Words to find in names, descriptions, tags and publishers; 3 characters at least (shorter answers nothing). An all-digit query is also looked up as a collection number and a hit pinned first.
- limitinteger · query
- Page size. Clamped to 1–50; 20 when absent.
- offsetinteger · query
- Results to skip. Floored at 0.
Example
GET https://api.zegazone.app/discovery/search?q=field notes Authorization: Bearer <token>
Over MCP, the tool
collections_searchtakes the same arguments.Returns
200One page of results. Fields:query,items,pagination,hidden.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.importImport a collection and its sub-collections from an exportitems:write
Needs
items:write.Rebuilds what
collections.exportanswered (possibly on another Zegazone) as new collections and items of yours, private and unpublished whatever the source was: the collection, its sub-collections in their places, and every item that needs no file: notes with their text and display mode, single-file skills, links (without their page's preview), names, descriptions, tags, order, tile labels and chosen artwork, and each collection's playback settings. Needsitems:write, andcollections:writeascollections.createdoes for each collection made (the precedent ofitems.move_to_new_subcollection). At most 500 items (lowered from 2,000 until a timed run exists), 50 collections and 100 pages. Refused before anything is written: a page that is not an export, a stray page, a link url that is not http(s) or is longer than 2,048 characters, a collection whose pages hold fewer items than its export'stotal(unlesspartialis true), and a collection name that clashes with one of yours or with another in the import (duplicate_collection_name,names).parent_idfollowscollections.createrules. The answer maps each old id to the new one (collections,items) and lists inleft, with its old id, what was not made or not made whole:fileandskill_files(by the upload path),note_text(cut notes),link_url,link_snapshot(items.refresh_snapshot),cover,subcollection(its export not given, or a second tile to a collection already made, a tile back to the root included),playback_settings(not valid ones; the collection keeps its defaults),viewer(an unknown viewer; made with its kind's default) andartwork(an unknown chosen kind or platform; made without it),thumbnail(a custom thumbnail, foritems.set_thumbnailwith sourceurl), andreference(azz://item/{id}reference in a made note's or skill's text that still names an old id,target_from: one outside the import is left as written; one inside it,target_in_import, is pointed at its new id withitems.update: fromitemswhen the import made it, else the item is itself left and, if you make it, point the reference at the new id). References between items the import makes are rewritten to the new ids; references inside an uploaded file (an HTML page) are not: rename them by theitemsmap before uploading it. Each entry to make carries itsplacein the new order; afileorskill_filesentry carriesupload(items.upload's arguments) andfinalise(items.finalise'spositionandthumbnail_label), and acoverits item's new id (item_to). The tool's description gives the sequence. Limits:items.downloadreads at most 10 MB (file_too_largeabove), so a bigger file is made only by a client that fetches it fromitems.get's byte addresses and uploads it itself; a link's preview is fetched again only for a social post, any other link keeps none; a file whose name ends.md that the source kept as a file comes back as a note (converted_to_notetrue) unless your Markdown-as-note setting (uploads.markdown_as_notes) is off, and such a note cannot be turned back into a file; a custom thumbnail or an uploaded cover arrives as its 1280 rendition, not the original. A refusal part-way, of any kind, names the root already made inimported_collection_idand every collection made inimported_collection_ids(the last made first); a busy database or store is still 503server_busy. An import is not resumed: to discard the part-made copy, delete each ofimported_collection_idswithcollections.delete(confirmandcascade_mediatrue; deleting the root alone leaves its sub-collections at the top level, and their names refuse the next import), then import again: a collection in Trash does not block a name.Arguments
- exportsarray of object · body · required
- Every page collections.export answered, as it answered them: the root collection's pages first, then each sub-collection's (at most 50 collections and 500 items). A note's text must be whole: one cut by the export (text_truncated) is left for later unless its whole text (from items_get) is put in and text_truncated set to false.
- namestring · body
- The new root's name; the source's by default.
- parent_idstring or null · body
- Make the root a sub-collection of this collection. parent_id follows collections.create rules.
- partialboolean · body
- True to import a collection whose pages hold fewer items than its export's total; refused otherwise.
Example
POST https://api.zegazone.app/collections/import Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "exports": [ { "format": "zegazone-collection-export", "version": 1, "collection": { "id": "<string>", "name": "<string>" }, "items": [ {} ] } ] }Over MCP, the tool
collections_importtakes the same arguments.Returns
201What was made, and what is left. Fields:collection,collections,items,left.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409duplicate_collection_name409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409nesting_too_deep409mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
collections.batch_getGet several collections at oncecollections:read
Needs
collections:read.The collections of
ids(at most 50) that you may read, ascollections.getanswers each, in the order named; the ids that are not one you may read are innot_found. A page that would pass the result size is cut andnext_offsetis the first id left out: ask for those again.Arguments
- idsstring · query · required
- The collections' ids, comma-separated: at most 50, each once.
Example
GET https://api.zegazone.app/batch/collections?ids=b4kq7xz2m9np,q7rt2bx9kz4m Authorization: Bearer <token>
Over MCP, the tool
collections_batch_gettakes the same arguments.Returns
200The collections. Fields:items,pagination,next_offset,not_found.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.treeGet a collection and every sub-collection below itcollections:read
Needs
collections:read.The collection and all its sub-collections, at every depth, in one flat breadth-first list: each node's id, name, parent, depth, tile position, counts, cover, published, share level and archived. The root answers as
collections.getdoes (an unknown or unreadable one isnot_foundor its gate). A sub-collection you may not read is left out with everything below it; archived ones only withinclude=archived; Trash never. At most the platform settingtree_max_nodesnodes you may read, counted only over those (default 2000): past it the answer saystruncatedwith thecap, the deepest levels cut.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- max_depthinteger · query
- How many levels below the root to walk (0: the root alone). At most and by default 64.
- includearchived · query
- archived: archived sub-collections (and theirs) too. Sub-collections in Trash are never in the tree.
Example
GET https://api.zegazone.app/collections/b4kq7xz2m9np/tree Authorization: Bearer <token>
Over MCP, the tool
collections_treetakes the same arguments.Returns
200The tree. Fields:root_id,nodes,total,truncated,cap.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.exportExport a collection and its itemsitems:read
Needs
items:read.The collection and a page of its items in an exportable form: names, descriptions, tags, order, a link's address, a note's text (cut to 20000 characters), a file's size (items.download reads the bytes), in the collection's order. Needs
items:readand the right to read the collection's items. Pages withlimitandoffset; follownext_offsetto the end.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/collections/b4kq7xz2m9np/export Authorization: Bearer <token>
Over MCP, the tool
collections_exporttakes the same arguments.Returns
200One page of the export. Fields:format,version,exported_at,collection,items,total,pagination,next_offset.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.openOpen a collection: it and its first page of itemsitems:read
Needs
items:read.One read of a collection and the first page of its items in their order (50 unless
limitsays otherwise, at most 100;items.listcontinues fromnext_offset), what the Player inside Claude opens with. Exactly whatcollections.getanditems.listanswer for the same caller: an item gated against the caller is only its blurred rendition and label, and private byte URLs are the caller's own, for at most 15 minutes. An agent needs bothitems:readandcollections:read. Signed out, rate-limited per address.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- limitinteger · query
- Page size: 50 when absent, at most 100.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/collections/b4kq7xz2m9np/open Authorization: Bearer <token>
Over MCP, the tool
collections_opentakes the same arguments.Returns
200The collection and its first page of items. Fields:collection,items,pagination,next_offset.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.enterAnswer to entersession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Answers the question of a published Members collection that has answer to enter on. Open to anyone, signed in or not (never an agent's token). A correct answer makes a signed-in person a member; with the name and email the card asks for, it makes a lightweight unverified account and the member in one step, signed in; otherwise it gives this device a 30-day pass. 5 guesses a minute per device, then 429
rate_limitedwithretry_after. A wrong answer is 403forbiddenwithreason: "wrong_answer". Every collection that has no door, an unknown id included, is one identicalnot_found. A full collection isquota_exceeded; an email that already has an account isinvalid_requestonemail.Arguments
- idstring · path · required
- answerstring · body · required
- The answer, compared ignoring case and spaces. Never stored or logged.
- namestring · body
- Your name, when the card asks for it (with an email, it makes an account).
- emailstring · body
- Your email, when the card asks for it: a lightweight account and the membership in one step, signed in.
- turnstile_tokenstring · body
- The Cloudflare Turnstile widget's answer, when the card makes an account.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/enter Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "answer": "<string>" }This operation is not an MCP tool.
Returns
200Entered. Fields:entered,collection,via,grant,joined,signed_in,expires_at,account.
Errors
invalid_json400invalid_request400wrong_token_type401forbidden403missing_client_header403not_found404quota_exceeded429rate_limited429server_error500server_busy503
collections.enter_by_addressAnswer to enter, by addresssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
collections.enterfor the collection published at/{handle}/{slug}: the gate carries the address and never an id, so its card answers here. The same answers, limits and refusals; an address with no door is the one identicalnot_found.Arguments
- handlestring · path · required
- slugstring · path · required
- answerstring · body · required
- The answer, compared ignoring case and spaces. Never stored or logged.
- namestring · body
- Your name, when the card asks for it (with an email, it makes an account).
- emailstring · body
- Your email, when the card asks for it: a lightweight account and the membership in one step, signed in.
- turnstile_tokenstring · body
- The Cloudflare Turnstile widget's answer, when the card makes an account.
Example
POST https://api.zegazone.app/collections/by-address/<string>/<string>/enter Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "answer": "<string>" }This operation is not an MCP tool.
Returns
200Entered. Fields:entered,collection,via,grant,joined,signed_in,expires_at,account.
Errors
invalid_json400invalid_request400wrong_token_type401forbidden403missing_client_header403not_found404quota_exceeded429rate_limited429server_error500server_busy503
Items36 operations
The things in a collection: notes, links, files and agent skills. A file is added in steps: start an upload, send the bytes, then finalise. A skill (kind skill) is a folder of instructions an agent loads when a task fits it: a SKILL.md of YAML frontmatter (a name of lower-case letters, digits and hyphens, at most 64, and a description of what it does and when to use it, at most 1,024 characters) then markdown, alone or with scripts, references and assets. It holds at most 200 files, 10 MB a file and 20 MB in all; a script is stored and listed, never run. skills.add saves one from text, skills.get and skills.get_file read it, skills.put_file and skills.delete_file change one file at a time (pass base_version: a stale save is skill_changed), and a refusal is invalid_skill with a reason. Over MCP these are skills_add, skills_get, skills_get_file, skills_put_file and skills_delete_file, so a connection alone is enough.
items.listList a collection's items in orderitems:read
Needs
items:read.Its visible items in the one stored order, with the exact total. A page stops early so that no answer exceeds 150,000 characters: continue from
next_offset. Note bodies are not listed. Archived items are hidden. Someone outside the collection is not listed a sub-collection tile whose child has no public page or gate, nor who added an item; signed out, rate-limited per address.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/collections/b4kq7xz2m9np/items Authorization: Bearer <token>
Over MCP, the tool
items_listtakes the same arguments.Returns
200One page of items. Fields:items,pagination,next_offset,channel_seq,channel_epoch.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.addAdd a note or a link to a collectionitems:write
Needs
items:write.A skill (kind: skill) in its single form: its SKILL.md as markdown, checked (name, description) and stored as a note's text; named after the skill and described by its description unless named. A text note (kind: note): its display mode decides its stored type and viewer, detected once and stored; Markdown unless display_mode says plain or code; unless named, named from its first usable line (else "Text note"). A link (kind: link): the server fetches the URL once through its outbound fetcher (5 s, 512,000 bytes; private, loopback, link-local and metadata addresses refused in every encoding, redirects re-checked, at most 5). YouTube and Vimeo become links with viewer video and are never downloaded; a URL that answers with an image, video, audio, PDF or document is ingested as a file item through the upload path, charged and rendered as an upload is (100 MiB, 45 s; a failure answers 400 naming its cause); any other page becomes a website link with its metadata, or "Website preview unavailable" when it cannot be read, and its picture follows from the image ladder in the background (link.ladder_status). Either is appended at the end of the collection's order. Needs can_upload. A collection holding 5,000 live items refuses it (429
quota_exceeded).Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- include_textboolean or true · false · query
- Whether a note in the answer carries its whole text. false answers it with text_length, version and text_excerpt (its first 200 characters) instead: the text was just sent, so a writer rarely needs it back. Over REST the default is true; over MCP (the tools) the default is false.
- kindnote · link · skill · body · required
- note (a text note), link (a URL) or skill (an agent skill in its single form: give its SKILL.md as
markdown; a skill with scripts and references is a zip, added through an upload with kind skill). Files are added through an upload; a link whose URL answers with a file becomes a file item. - markdownstring · body
- A skill's SKILL.md: required for a skill, refused otherwise. YAML frontmatter with a name (lower-case letters, digits and hyphens, at most 64) and a description (at most 1,024 characters), then the instructions. The item is named after the skill and described by its description unless you say otherwise. Refused with
invalid_skilland areason(frontmatter_missing, name_missing, name_invalid, description_missing, description_too_long, markdown_too_long). - textstring · body
- A note's body: required for a note, not blank, at most 524,288 characters.
- urlstring · body
- A link's URL: required for a link, http or https, at most 2,048 characters. YouTube (youtu.be, /shorts/, /live/, nocookie) and Vimeo are stored with viewer video and never downloaded; a URL that answers with an image, video, audio, PDF or document is added as that file; any other page as a website link with its title, description and site.
- display_modeplain · markdown · code · body
- Defaults to markdown: give plain to keep every line break as typed, or code.
- viewerstring · body
- An override among the type's choices: a note offers markdown, text and code whatever its mode (a viewer given with no display_mode is the mode it names, text being plain); a website link website or web; a YouTube or Vimeo link video.
- namestring · body
- A note's defaults to its text's first usable line, Markdown markers stripped and cut to about 60 characters at a word, else "Text note"; a link's to its page's title, else the URL's last segment; at most 180 characters.
- descriptionstring or null · body
- At most 4000 characters. Absent: a note's is "{collection name}: Text note", a link's its page's description; null or empty: none.
- description_formatplain · markdown · body
- Defaults to plain.
- tagsarray of string · body
- At most 10 once exact repeats collapse; stored trimmed, lower-case, without a leading #.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/items Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "kind": "note" }Over MCP, the tool
items_addtakes the same arguments.Returns
201The new item: a note with its body, a link, or the file a link's URL answered with. Fields:number,id,word_name,word_name_generated,word_name_chosen,reference,collection_id,kind,status,name,description,description_format,tags,position,viewer,viewer_choices,mime_type,url,subcollection_id,added_by,text,version,variants_ready,variants,thumbnail_unavailable,playback,archived_at,deleted_at,restorable_until,created_at,updated_at,viewer_permissions,capabilities,urls,gate,link,placeholder_kind,thumbnail,thumbnail_label,skill,subcollection.
Errors
invalid_json400invalid_request400invalid_skill400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409file_too_large413storage_quota_exceeded413mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
items.getGet an itemitems:read
Needs
items:read.Any item the caller may read, a note with its body. The owner also reads one in Trash. Anything else is
not_found, a sub-collection tile an outsider is not listed included. Signed out, rate-limited per address.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
Example
GET https://api.zegazone.app/items/q7rt2bx9kz4m Authorization: Bearer <token>
Over MCP, the tool
items_gettakes the same arguments.Returns
200The item. Fields:number,id,word_name,word_name_generated,word_name_chosen,reference,collection_id,kind,status,name,description,description_format,tags,position,viewer,viewer_choices,mime_type,url,subcollection_id,added_by,text,version,variants_ready,variants,thumbnail_unavailable,playback,archived_at,deleted_at,restorable_until,created_at,updated_at,viewer_permissions,capabilities,urls,gate,link,placeholder_kind,thumbnail,thumbnail_label,skill,subcollection.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.updateChange an item's name, description, tags, viewer, thumbnail label or noteitems:write
Needs
items:write.Needs can_edit. The viewer only among the type's choices (
field: viewerotherwise); a note's body is required and at most 524,288 characters, and omitting its display mode leaves its type and viewer. A note's text changes whole (text) or in part (edits,prepend,append), in place: its id, number, position, thumbnail, tags and name stay unless the call changes them. Withbase_version, a text change based on a version that is no longer the stored one is 409note_changedwithcurrent_version, and nothing is written;forcewrites over it. The answer carries a note's whole text;include_text=falseanswers itstext_length,versionandtext_excerptinstead.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- include_textboolean or true · false · query
- Whether a note in the answer carries its whole text. false answers it with text_length, version and text_excerpt (its first 200 characters) instead: the text was just sent, so a writer rarely needs it back. Over REST the default is true; over MCP (the tools) the default is false.
- namestring · body
- Not empty; at most 180 characters.
- descriptionstring or null · body
- description_formatplain · markdown · body
- Changes how the description is written, with or without a new one.
- tagsarray of string · body
- Replaces every tag.
- viewerstring · body
- An override among the item's
viewer_choices; for a note, the viewer chosen alone sets its format: markdown, text (plain) or code, the text untouched. - textstring · body
- A note's new body, whole; for a single skill, its new SKILL.md, as
markdown. To change part of a note, preferedits,prependorappend, which do not resend it. - editsarray of object · body
- Changes part of a note's text without resending it: each edit, in order, replaces its
old_stringwithnew_stringin the text the one before it left. Eachold_stringmust be in the text exactly once, unlessreplace_allchanges every one. All or nothing: an edit that matches nowhere or more than once refuses the call (400invalid_request,fieldedits.<n>.old_string,reasonnot_found or found_more_than_once,matches) and nothing changes. The result is held to a note's limits (not blank, at most 524,288 characters). Not withtext. - prependstring · body
- Text put before the note's text (after any edits), without resending it. Not with
text. - appendstring · body
- Text put after the note's text (after any edits), without resending it. Not with
text. - base_versionstring · body
- The note's
versionas you last read it. When the text has changed since, a change of it (text,edits,prepend,append) is refused with 409note_changedandcurrent_version, and nothing is written: read the note again and redo the change. Omitted, nothing is checked. It guards the text only: sent with a change of the name, description, tags, viewer or label alone, it is not checked. - forceboolean · body
- With
base_version: write the text even though the note changed since that version, over the newer text. - markdownstring · body
- A single skill's new SKILL.md, validated as on create: an edit that would leave it without a valid name and description is refused (
invalid_skill) and nothing is saved. A skill that is a bundle is replaced, not edited (bundle_not_editable). - display_modeplain · markdown · code · body
- A note's display mode: resets its type and viewer; omitted, both stay. A note whose name came from its text (or is the default) is renamed from the new text when text changes and no name is given.
- thumbnail_labelstring or null · body
- The word or two drawn over the item's tile, on any item kind, a sub-collection's tile included: trimmed, at most 40 characters as people see them (a flag or an emoji is one) and 64 code points, no control, zero-width or direction-override characters (refused with field thumbnail_label otherwise). Null or empty clears it. The cap is 40 characters; the label sits on one line at the bottom of the tile, and about 16 characters show on the default 88 px tile (about 25 on a large one) before it ends in "…". Always give an item a short label of your own that fits, since a tile without one shows only its icon.
- word_namestring or null · body
- A name of your own for the item, shown and accepted in place of its generated word name (which keeps naming it too). At most 60 characters: letters, digits, spaces, hyphens and apostrophes, with at least one letter; not a number, not a 12-character id and not any generated name. Unique in the account that owns the collection (compared ignoring case, accents, spaces and punctuation): a name another item there holds is word_name_taken, naming it. Null or empty clears it, back to the generated name.
Example
PATCH https://api.zegazone.app/items/q7rt2bx9kz4m Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "name": "<string>", "description": "<string>" }Over MCP, the tool
items_updatetakes the same arguments.Returns
200The item as changed. Fields:number,id,word_name,word_name_generated,word_name_chosen,reference,collection_id,kind,status,name,description,description_format,tags,position,viewer,viewer_choices,mime_type,url,subcollection_id,added_by,text,version,variants_ready,variants,thumbnail_unavailable,playback,archived_at,deleted_at,restorable_until,created_at,updated_at,viewer_permissions,capabilities,urls,gate,link,placeholder_kind,thumbnail,thumbnail_label,skill,subcollection.
Errors
invalid_json400invalid_request400invalid_skill400not_a_text_note400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409note_changed409word_name_taken409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.reorderMove an item, or a group of items, within its collection's orderitems:write
Needs
items:write.To the start, one left, one right, to the end, or an explicit position, written as the collection's one stored order (positions 0..n−1) that every reader uses. With
ids, the item and those items move as one group that keeps its relative order, and the order is written once. Needs can_edit.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- include_textboolean or true · false · query
- Whether a note in the answer carries its whole text. false answers it with text_length, version and text_excerpt (its first 200 characters) instead: the text was just sent, so a writer rarely needs it back. Over REST the default is true; over MCP (the tools) the default is false.
- moveto_start · left · right · to_end · body
- To the start, one left, one right or to the end.
- positioninteger · body
- An explicit place from 0; past the end is the end. Give this or move. For a group, where its first item goes.
- idsarray of string · body
- The group form: more items (of the same collection) that move with this one as one group, keeping their relative order in the collection whatever order they are named in; at most 200 in all. left and right step every member one place past its nearest neighbour outside the group. The order is written once.
- namedboolean · body
- With ids: the group takes the order it is named in (this item first, then ids), not its order in the collection. Without move or position it starts where its first member stands now.
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/reorder Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "move": "to_start", "position": 0 }Over MCP, the tool
items_reordertakes the same arguments.Returns
200Moved, ornoop. Fields:noop,from,to,item,moved.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.deleteSend an item to Trashitems:delete
Needs
items:delete.To Trash for 14 days, notes included; the items after it close up. Needs can_delete. An item already in Trash is 400.
Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- include_textboolean or true · false · query
- Whether a note in the answer carries its whole text. false answers it with text_length, version and text_excerpt (its first 200 characters) instead: the text was just sent, so a writer rarely needs it back. Over REST the default is true; over MCP (the tools) the default is false.
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/delete Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json {}Over MCP, the tool
items_deletetakes the same arguments.Returns
200In Trash. Fields:deleted,restorable_until,item.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.restoreRestore an item from Trashitems:write
Needs
items:write.Within 14 days of the delete it returns to its place, or to the end when the order is now shorter; after that
restore_window_expiredwithdeleted_atandrestorable_until. The owner, or a member who may delete. An item whose collection is in Trash comes back with the collection.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/restore Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json {}This operation is not an MCP tool.
Returns
200Restored, ornoopwhen not in Trash. Fields:noop,item.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409restore_window_expired410mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
items.refresh_snapshotRead a social media post's snapshot againitems:write
Needs
items:write.For a link to a social media post (
link.socialset; whoever may edit the item): its platform's lookups are read again, and only when that read gives something does the new snapshot (author, caption, date, thumbnail) replace the old one. The item's name and description follow the snapshot only while they are still the snapshot's own: a name or description you typed is never overwritten. A read that gives nothing (the platform allows no lookup, a timeout, a refusal, a deleted or private post) changes nothing and answersrefreshed: false. Anything but a link to a recognised post is 400.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/snapshot/refresh Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
items_refresh_snapshottakes the same arguments.Returns
200The item, and whether its snapshot was replaced. Fields:refreshed,item.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.moveMove items to another collectionitems:write
Needs
items:write.Up to 200 items go to the end of the collection
to, each source's in the order it had; they keep their bytes. Needs the right to delete each item where it is and to add into. Each source closes up and its access epoch moves on, so the items' old URLs there stop at once; whentohas another owner, the storage charge moves to them and must fit their plan. All or nothing: an item in Trash, archived or a sub-collection's tile refuses the call.Arguments
- idsarray of string · body · required
- The items, by id: at least one, at most 200; a repeated id counts once.
- tostring · body · required
- The collection the items go to (its id). Moving to where an item is already leaves it.
Example
POST https://api.zegazone.app/items/move Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "ids": [ "q7rt2bx9kz4m" ], "to": "b4kq7xz2m9np" }Over MCP, the tool
items_movetakes the same arguments.Returns
200Moved, ornoop. Fields:noop,to,moved,unchanged,word_names_cleared.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409file_too_large413storage_quota_exceeded413mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
items.move_to_new_subcollectionMove items into a new sub-collectionitems:write
Needs
items:write.In one step: a private sub-collection of the items' collection (its tile at the end of it), and the items moved into it in their order. Owner only; every item must be in that one collection. Returns the new collection and where each item went.
Arguments
- idsarray of string · body · required
- The items, all in one collection, which becomes the new sub-collection's parent: at least one, at most 200.
- namestring · body
- Defaults to "Sub-collection of {parent}", numbered when that name is taken; a name you already use is
duplicate_collection_name.
Example
POST https://api.zegazone.app/items/move-to-new-subcollection Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "ids": [ "q7rt2bx9kz4m" ] }Over MCP, the tool
items_move_to_new_subcollectiontakes the same arguments.Returns
201The new sub-collection, holding the items. Fields:collection,moved.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409duplicate_collection_name409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
items.batch_updateApply one edit to several itemsitems:write
Needs
items:write.Tags added to every item and removed from every item that has them (a tag already on only some items stays as it is), the description replaced on every item, and the thumbnail label replaced or cleared on every item, for up to 200 items. Needs can_edit on each. All or nothing: any item refused, or left with more than 10 tags, refuses the call and changes no item.
Arguments
- idsarray of string · body · required
- The items, by id: at least one, at most 200; a repeated id counts once.
- tags_addarray of string · body
- Added to every item; a tag already on only some of them stays as it is. At most 10; stored trimmed, lower-case, without a leading #.
- tags_removearray of string · body
- Taken off every item that has them. At most 10; stored trimmed, lower-case, without a leading #.
- descriptionstring or null · body
- Replaces every item's description; null or empty clears it. At most 4,000 characters.
- thumbnail_labelstring or null · body
- Replaces every item's thumbnail label, the word or two drawn over its tile; null or empty clears it. Trimmed; at most 40 characters as people see them and 64 code points, no control, zero-width or direction-override characters. The cap is 40 characters; the label sits on one line at the bottom of the tile, and about 16 characters show on the default 88 px tile (about 25 on a large one) before it ends in "…". Always give an item a short label of your own that fits, since a tile without one shows only its icon.
Example
POST https://api.zegazone.app/items/batch-update Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "ids": [ "q7rt2bx9kz4m" ] }Over MCP, the tool
items_batch_updatetakes the same arguments.Returns
200Every item as changed. Fields:updated,items.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.third_party_urlGet a short-lived URL of an item for a third-party vieweritems:read
Needs
items:read.For an Office document you may read (purpose: office), a URL Microsoft's viewer can fetch: this one item's one variant, bound to you, for at most 300 s. A URL for another item or variant, or after it expires, is refused by the bytes host. When it cannot be issued the answer is
third_party_url_unavailable: show the error, never a broader URL.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- purposeoffice · body · required
- office: Microsoft's Office viewer, which reads the original.
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/third-party-url Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "purpose": "office" }This operation is not an MCP tool.
Returns
200The URL. Fields:purpose,url,variant,expires_at.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503third_party_url_unavailable503
items.gateSet the gate of items, the collection's default gate or its adult flagitems:write
Needs
items:write.Set an item's gate: clear, blurred (with an optional label), members only, or paid; the collection-wide default for items with no gate of their own; and the collection's adult flag. The owner's (capability
items.gate); an agent needsitems:write. A viewer who is not entitled to a gated item receives only its blurred rendition and its label, on every path (public and private URLs, downloads, link previews, agent results); the owner and every accepted member are entitled through every gate.paiditems are clear to the owner, members and holders of an entitlement (a purchase, or a subscription to its channel). A change that makes anything more restrictive raises the collection's access epoch, so every URL issued before stops from the next request. All or nothing; at most 200 items, all in one collection. Any change, a loosening too, is announced to the open pages as a liveitems.gatedmessage (a notification: they read again to learn what they may see). Reveal is not an operation an agent has. While creator selling is not switched on here,paid(an item's or the default) is 503selling_unavailable; a Paid gate already set keeps withholding.Arguments
- idsarray of string · body
- The items, by id, all in one collection: at most 200; a repeated id counts once.
- gateclear · blurred · members · paid · inherit · body
- Set on
ids:clear,blurred,members(Members only) orpaid;inherittakes the item's own gate away so it follows the collection's default again. Every non-clear gate serves anyone not entitled only the item's blurred rendition and its label, on every path.paiditems are clear to the owner, members, and buyers of the collection or subscribers to its channel (collections.price.get); until it is priced that is the owner and members only. - labelstring or null · body
- Only with gate
blurred: what the blurred rendition says, at most 20 characters (Sensitive, Spoiler, or your own); null or empty for none. Setting blurred again without a label clears an earlier one. - collection_idstring · body
- The collection, for
default_gateandadult; withidsit must be the collection they are in. - default_gateclear · blurred · members · paid · body
- The gate of every item that has none of its own. The owner's.
- adultboolean · body
- The collection's adult flag (R-, R-). An adult collection is never published, so turning it on unpublishes a published collection in the same call. It is never public: it is held at members only (private or restricted), never listed, and never opens by answer to enter. Turning it on a Public or Registered collection drops it to members only (restricted) in the same call and closes any answer-to-enter door;
moved_to_memberssays so. Its items and cover are served blurred to anyone not entitled. Turning it on is the owner's; turning it off is the owner's only when the owner turned it on, since an operator's Mark adult is lifted by an operator.
Example
POST https://api.zegazone.app/items/gate Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "ids": [ "q7rt2bx9kz4m" ], "gate": "clear" }Over MCP, the tool
items_gatetakes the same arguments.Returns
200The gates as they now are. Fields:noop,items,collection,epoch,epoch_bumped,moved_to_members.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500selling_unavailable503server_busy503
items.uploadStart an upload into a collectionitems:write
Needs
items:write.Creates a pending item and returns where to PUT its bytes, or, with transfer inline, how to send them in 512 KiB chunks through the API (at most 25 MB; over it, 413
file_too_largenaming the link route). Needs can_upload. The declared size is checked against the collection owner's plan, whoever uploads: over the per-file cap is 413file_too_large, over the owner's storage 413storage_quota_exceededwithbytes_used,limit_bytesandplan. A collection holding 5,000 live items refuses it (429quota_exceeded). Then PUT the bytes (or send the chunks) and call finalise; the item reaches lists and live updates only then. Withreplace_item_idno item is created: the bytes become that note's text at finalise, the note keeping its id and everything else, and nothing is charged. The storage the upload reserves lapses 15 minutes after its last sign of life (its start, an items.renew, an inline chunk): while uploading, renew at least every 10 minutes, or finalise may find the space taken.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- filenamestring · body · required
- The file's name, with its extension. The item takes it as its name (cut to 180 characters) unless
nameis given. Its extension decides what a text file is: a filename ending.md,.markdown or.mdown is a Markdown file, whatevername,content_typeand the PUT's Content-Type say, and one ending.csv,.tsv or a code extension is a table or code the same way, whatever the item is named or renamed to. - size_bytesinteger · body · required
- The declared size in BYTES (not characters: text with smart quotes or emoji has more bytes than characters): checked against the collection owner's per-file cap and storage quota now, measured at finalise, which accepts up to 1 % more and refuses anything larger, or anything smaller (an upload cut short), as integrity_mismatch with the measured size.
- kindfile · skill · body
- file (the default) or skill: the bytes are an agent skill, a zip of one folder, named for the skill, with SKILL.md at its root and any scripts, references and assets beside it (at most 200 files, 20 MB; a
.skillfile is such a zip). Finalise reads the zip's directory without extracting it and answers the item as kind skill with itsskillsummary; a zip that is not a valid skill is refused withinvalid_skilland areason(not_a_zip, skill_md_missing, not_single_folder, name_missing, name_invalid, name_mismatch, description_missing, description_too_long, unsafe_path, too_many_files, skill_too_large, zip_unsupported) and the item stays pending until aborted. - content_typestring or null · body
- The declared type: only a hint. Finalise reads the type from the bytes. For text the filename's extension decides; text/markdown makes a file Markdown only when its filename has no extension. Not needed for a.md file.
- namestring · body
- The item's name; defaults to the filename. At most 180 characters.
- descriptionstring or null · body
- At most 4,000 characters.
- description_formatplain · markdown · body
- Defaults to plain.
- tagsarray of string · body
- At most 10, stored lower-case.
- transferpresigned · inline · body
- How the bytes get there. presigned (the default): PUT them to the URL the answer holds, for a file you can read from a disk and send over HTTP. inline: send them in 512 KiB chunks through items.upload_chunk (the tool items_upload_chunk), for a file you hold yourself, such as HTML you wrote or a file attached to the chat; at most 25 MB, and it needs nothing but this connection.
- sha256string · body
- Inline only: the whole file's SHA-256 (64 lowercase hex characters). Finalise checks the assembled file against it and stores nothing on a mismatch.
- replace_item_idstring · body
- The id of a note in this collection whose text these bytes replace: the way to put a newer version of a note you hold in a file, because the note's id is what people and agents link to. The note keeps its id, number, place, thumbnail, tags, name, description, display mode, gate and sharing; no item is added and nothing goes to Trash. The answer's item_id is the note's own; send the bytes as for any upload, then finalise with it, which writes the text into the note and deletes the uploaded file. The file must be UTF-8 text of at most 524,288 characters (a byte-order mark is dropped and line endings become). Needs the right to edit the note. name, description, description_format, tags and display_mode given with it are checked now and written with the text at finalise, in the same write and under the same guard; anything not given stays. Refused (
not_a_text_note) for anything but a note. - display_modeplain · markdown · code · body
- With replace_item_id: the note's new display mode, written with the text (plain, markdown or code). Refused without it.
- base_versionstring · body
- With replace_item_id: the note's
versionas you last read it. If the note's text has changed since, the upload (or its finalise) is refused with 409note_changedandcurrent_version, and nothing is written. - forceboolean · body
- With replace_item_id: replace the text even though the note changed since base_version.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/items/upload Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "filename": "holiday.png", "size_bytes": 1 }Over MCP, the tool
items_uploadtakes the same arguments.Returns
201The pending item and its PUT (or its chunks).
Errors
invalid_json400invalid_request400invalid_skill400not_a_text_note400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409note_changed409file_too_large413storage_quota_exceeded413mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
items.finaliseFinish an uploaditems:write
Needs
items:write.The uploader, after the PUT. Checks the bytes arrived (409
upload_not_foundwhile they have not), records their measured size (more than the declared size + 1 % is 400integrity_mismatchand the item stays pending), reads their type from the bytes (the declared type is only a hint), stores the viewer, charges the collection owner's storage and makes the item visible at the end of the collection, which is when live updates announce it. A Markdown file (its filename ends.md,.markdown or.mdown; UTF-8, at most 524,288 characters) becomes a Markdown text note instead, under the same item id, withconverted_to_note: true, unless the collection owner turned offuploads.markdown_as_notes. The filename decides, never the PUT's Content-Type or how the bytes begin.converted_to_note: falseon a Markdown file means it did NOT become a note:kept_as_file_reasonandwarningsay why, and items.convert_to_note can make a text file a note later. For an upload started withreplace_item_id, the item is that note: its text is replaced in place (replaced: true), exactly as items.update withtextreplaces it, the uploaded file is deleted, and a stalebase_versionis 409note_changed(the bytes stay for another finalise). Past the 24-hour window, 410upload_expired. Again after success: the item,noop: true.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- include_textboolean or true · false · query
- Whether a note in the answer carries its whole text. false answers it with text_length, version and text_excerpt (its first 200 characters) instead: the text was just sent, so a writer rarely needs it back. Over REST the default is true; over MCP (the tools) the default is false.
- partsarray of object · body
- A multipart upload's parts: each number with the ETag R2 answered.
- sha256string · body
- An inline upload's whole-file SHA-256 (64 lowercase hex characters), when it was not given at the start: the assembled file must match it, or nothing is stored.
- upload_idstring · body
- For an upload that replaces a note's text: its upload_id, as items.upload answered it. Give it, so a finalise sent again after success answers that replace and never finishes another replace of the same note started since. Not for other uploads.
- base_versionstring · body
- For an upload that replaces a note's text: the note's
versionthe replacement is based on, in place of the one given at the start. A stale one is 409note_changedwithcurrent_version; the uploaded bytes are kept, so finalise again with the new version or force. - forceboolean · body
- For an upload that replaces a note's text: write it even though the note changed since its base_version.
- positioninteger · body
- Where the new item goes in its collection's order, from 0 (past the end is the end), as items.reorder takes it; without it, the end. Needs the right items.reorder needs (to edit the collection), checked before anything is written. Not for a replace of a note's text, which is refused.
- thumbnail_labelstring or null · body
- The word or two drawn over the new item's tile, as items.update takes it: trimmed, at most 40 characters as people see them (a flag or an emoji is one) and 64 code points, no control, zero-width or direction-override characters (refused with field thumbnail_label before anything is written). Null or empty sets none. Not for a replace of a note's text, which is refused.
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/finalise Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "parts": [ { "part_number": 1, "etag": "<string>" } ], "sha256": "<string>" }Over MCP, the tool
items_finalisetakes the same arguments.Returns
200The item, now visible. Fields:noop,item,size_bytes,sniffed_type,converted_to_note,kept_as_file_reason,warning,replaced.
Errors
integrity_mismatch400invalid_json400invalid_request400invalid_skill400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409note_changed409upload_not_found409upload_expired410mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.upload_chunkSend one chunk of an inline uploaditems:write
Needs
items:write.The uploader, between an inline items.upload and finalise: stores chunk
index(base64data, exactly the chunk size but for the last one). A chunk sent again with the same index and the same bytes changes nothing (noop: true); other bytes for the same index are 409idempotency_conflict. Chunks may arrive in any order. A chunk of the wrong length or with a wrong sha256 is 400integrity_mismatchand nothing is stored. An upload that is not inline is 400invalid_request; past the 24-hour window, 410upload_expired; a finished upload, 400invalid_request.Arguments
- upload_idstring · path · required
- The upload_id that items.upload answered (not the item_id).
- indexinteger · body · required
- The chunk's place in the file, from 0.
- datastring · body · required
- The chunk's bytes as base64 (524288 bytes make 699,052 characters): exactly chunk_bytes bytes, except the last chunk, which holds what is left. Whitespace and the URL-safe alphabet are tolerated; any other character is refused with its position.
- sha256string · body
- Optional: this chunk's SHA-256 (64 lowercase hex characters). A chunk that does not match is refused and nothing is stored.
Example
POST https://api.zegazone.app/uploads/u7rt2bx9kz4m/chunks Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "index": 0, "data": "<string>" }Over MCP, the tool
items_upload_chunktakes the same arguments.Returns
200The chunk is stored. Fields:upload_id,index,noop,chunks_received,chunks_expected.
Errors
integrity_mismatch400invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409upload_expired410mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.renewFresh PUT URLs for an uploaditems:write
Needs
items:write.The uploader, between create and finalise, when a PUT URL has lapsed (each lasts 15 minutes): the same key and, above 100 MiB, the same multipart upload with every part's URL signed again, so parts already sent keep their ETags. Renew at least every 10 minutes while uploading, not only when a URL lapsed: the upload's storage reservation lapses 15 minutes after its last sign of life. Writes nothing but the upload's renewal time (its storage reservation holds another 15 minutes) and does not move the 24-hour window: past it, 410
upload_expired. A finished upload is 400invalid_request.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/renew Authorization: Bearer <token> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The upload's PUT, signed again. Fields:item_id,expires_at,transfer.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409upload_expired410mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.abortCancel an uploaditems:write
Needs
items:write.The uploader, before finalise: deletes the pending item at once, abandons its multipart upload and deletes any bytes that arrived. The pending item was never shown, announced or charged, so nothing else changes. An upload never finalised and never aborted is removed after 24 hours anyway. A finished upload is 400
invalid_request(delete the item instead); again after success, 404not_found. For a replace of a note's text, only the replace is cancelled: the note stays as it was (note_kept), and a finished replace is 400invalid_requestsaying the note holds the new text.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/abort Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
items_aborttakes the same arguments.Returns
200The upload is gone. Fields:item_id,aborted,object_deleted,note_kept.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.convert_to_noteTurn a text file into a Markdown noteitems:write
Needs
items:write.A file item whose stored type is text/plain or text/markdown becomes a Markdown text note holding the file's text, in place: its id, number, position, name, description, tags, custom thumbnail and thumbnail label stay. Needs can_edit. The text must be UTF-8, not empty and at most 524,288 characters; otherwise 400
invalid_requestsays why and nothing changes. The note is the item's content from then on: the file's bytes stop counting against the owner's storage and go to the bin, which deletes them for good after 14 days. Live updates announce it as an update. Any other kind or type is 400invalid_request.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- include_textboolean or true · false · query
- Whether a note in the answer carries its whole text. false answers it with text_length, version and text_excerpt (its first 200 characters) instead: the text was just sent, so a writer rarely needs it back. Over REST the default is true; over MCP (the tools) the default is false.
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/convert-to-note Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
items_convert_to_notetakes the same arguments.Returns
200The note. Fields:item.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.set_thumbnailSet an item's thumbnailitems:write
Needs
items:write.The collection's owner chooses what the item's tile shows: a custom image, which wins over every automatic one; auto, its own image once rendered, else its kind's default thumbnail; one of the 34 default thumbnails,
placeholder:<kind>; or, on any item, one of 14 social platforms' tiles,placeholder:<platform>(the item then answersthumbnail.placeholder_platform). Any other name is 400.source: urlwithurlhas the server fetch an http(s) image for you and finishes in the one call;source: free_photowithproviderandphoto_id(a photophotos.searchfound) does the same from that provider's own image paths, and takes no URL. Every new image takes effect only once its renditions exist: the call renders it, then puts it in place, and a failed render answers 502render_failedwith nothing changed. Where the processing queue runs (staging, production), a new image is the exception: finishing its upload (or a cover from an item) records the choice and answersrenderingat once, the item, collection or profile showing the new image with no renditions yet (urlsempty or null); they are made behind the answer and announced as its event (items.set_thumbnail,collections.set_cover,profile.set_avatar). The image it replaces stays until then; a render that cannot be made puts it back, and a thumbnail's event then carriesthumbnail.render_failed: true. The image it replaces is disposed of after. An upload is two calls around a PUT:source: uploadwithfilenameandsize_bytes(at most 25 MB, never charged) answersupload_startedwith where to PUT; after the PUT,source: uploadwithupload_idrenders and sets it.focalalone moves the current image's crop: its square renditions are re-cut in the background (rendering), the current ones served until then.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- include_textboolean or true · false · query
- Whether a note in the answer carries its whole text. false answers it with text_length, version and text_excerpt (its first 200 characters) instead: the text was just sent, so a writer rarely needs it back. Over REST the default is true; over MCP (the tools) the default is false.
- sourcestring · body
- upload (an image you upload), url (an http(s) image the server fetches, url), free_photo (a photo photos.search found, provider and photo_id), auto (the item's own image, else its kind's default thumbnail), placeholder:<kind>, one of: image, video, audio, song, youtube, spotify-song, spotify-playlist, web, page, link, pdf, word, excel, powerpoint, document, ebook, code, markdown, data, 3d, zip, archive, download, unknown, log, lyrics, memory, notes, poem, prompt, specification, summary, tutorial, skill, or placeholder:<platform>, a social platform's tile (its logo on its colour) on any item, one of: instagram, facebook, x, tiktok, snapchat, reddit, threads, linkedin, pinterest, bluesky, mastodon, tumblr, twitch, telegram. Choosing a kind clears a chosen platform and the reverse. Absent: only focal moves.
- urlstring · body
- With source url: the http(s) address of the image. The server fetches it through the one outbound fetcher (: no private address, redirects checked, 20 seconds, at most 25 MB), renders it, and puts it in place as an upload would; only the owner may ask, and nothing is fetched for anyone else.
- providerpexels · pixabay · body
- With source free_photo: the provider photos.search answered, pexels or pixabay.
- photo_idstring · body
- With source free_photo: the photo's id as photos.search answered it. The server reads the photo from its provider by this id and fetches it from the provider's own image host; no URL is taken.
- focalobject or null · body
- The focal point every square rendition is cut around; null for the attention-aware crop. Alone, without source, it moves the current image's crop.
- filenamestring · body
- With source upload: the image's file name; starts the upload.
- size_bytesinteger · body
- With source upload: the image's size; at most 25 MB. Never charged to storage.
- content_typestring or null · body
- The declared type: only a hint; the bytes decide.
- upload_idstring · body
- With source upload: the upload to finish, after its PUT. Renders it and puts it in place.
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/thumbnail Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "source": "placeholder:poem", "url": "https://example.com/picture.jpg" }Over MCP, the tool
items_set_thumbnailtakes the same arguments.Returns
200The item, its thumbnail as it now stands. Fields:status,item,upload.
Errors
integrity_mismatch400invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409upload_not_found409upload_expired410file_too_large413mcp_quota_exceeded429rate_limited429server_error500render_failed502photo_search_unavailable503server_busy503
items.searchSearch items by their wordsitems:read
Needs
items:read.Finds items whose name, description, note text or tags contain every word of
q, in one collection (collection_id) or across your library, best matches first (a word in the name counts most), with the exact total. Only items you may read are ever searched or returned. Live items only: Trash, archived items and pending uploads are left out. Pages withlimitandoffset;next_offsetis where the next page starts, or null at the end.Arguments
- qstring · query · required
- The words to find (at most 8, 200 characters): an item must contain every one, anywhere in its name, description, note text or tags (a skill's own name and description included), in any case.
- collection_idstring · query
- Search inside this collection only (any collection you may read). Without it: every collection of your library, yours and those you are a member of.
- tagsstring · query
- Comma-separated tags: only items with any of them.
- kindfile · note · link · skill · query
- Only this kind of item.
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/search/items?q=course outline Authorization: Bearer <token>
Over MCP, the tool
items_searchtakes the same arguments.Returns
200One page of hits. Fields:items,pagination,next_offset,scope.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.downloadRead a file's bytes in chunks, through the callitems:read
Needs
items:read.A skill as a zip: with format=zip the body is the zip itself, a bundle as it was uploaded and a single skill zipped as exactly <name>/SKILL.md; without it, the same bytes come in the chunks below. For a client whose only link to Zegazone is its connection: a file (or a note's UTF-8 text) in chunks of 98304 bytes, base64, each under the tool-result budget. Call with no index for chunk 0, which also says the file's size and how many chunks there are, then each
next_indexuntillast; the chunks joined are the file exactly (each carries its SHA-256). A file over 10 MB isfile_too_large;items.gethas its byte addresses for a client that can fetch from the web. A link has no file. A gated item is read only by its collection's owner.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- indexinteger or null · query
- Which chunk, from 0 (the default). The answer of chunk 0 says how many there are.
- formatchunks · zip · query
- chunks (the default): the JSON chunks above. zip, for a skill item: the whole skill as one
application/zipbody, a valid zip with the skill's folder at its root (a single skill is exactly<name>/SKILL.md), served as an attachment named<name>.zip; any other kind is 400.
Example
GET https://api.zegazone.app/items/q7rt2bx9kz4m/download Authorization: Bearer <token>
Over MCP, the tool
items_downloadtakes the same arguments.Returns
200One chunk, or with format=zip the skill as a zip. Fields:item_id,name,mime_type,size_bytes,chunk_bytes,chunk_count,index,offset,length,last,next_index,chunk_sha256,etag,data.
Errors
integrity_mismatch400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409file_too_large413mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.copyCopy an item into a collectionitems:write
Needs
items:write.A new item at the end of the collection
to, made from an item of yours (in a collection you own; anything else, someone else's public or bought item included, isnot_found, one answer:): a note with the same text, display mode, description and tags; a link to the same address with the same page metadata (its picture is not fetched again); a file with its own copy of the bytes, at most 100 MB, charged to the target's owner as an upload is (so the original and the copy never share a file); an agent skill whole (a single SKILL.md as a new skill, a bundle with its own copy of the zip and so of every bundled file), for someone entitled to its bytes. A sub-collection's tile cannot be copied. Needs the right to add into.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- include_textboolean or true · false · query
- Whether a note in the answer carries its whole text. false answers it with text_length, version and text_excerpt (its first 200 characters) instead: the text was just sent, so a writer rarely needs it back. Over REST the default is true; over MCP (the tools) the default is false.
- tostring · body · required
- The collection the copy goes to (its id): one you may add to.
- namestring · body
- The copy's name; the original's by default.
- cloneboolean · body
- A clone, as the Player's Clone makes: refused with
forbiddenunlesstois a collection of yours that nobody else can see (private, not published, no members, no open invitations or links, and the same above it). Into the item's own collection it lands right after the original. The copy made is the same.
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/copy Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "to": "b4kq7xz2m9np" }Over MCP, the tool
items_copytakes the same arguments.Returns
201The copy. Fields:item,copied_from,undo_token.
Errors
integrity_mismatch400invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409file_too_large413storage_quota_exceeded413mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
items.batch_getGet several items at onceitems:read
Needs
items:read.The items of
ids(at most 25) that you may read, asitems.getanswers each, in the order named; a note's text is cut to 2000 characters (text_truncated,text_length; items.get has the rest). The ids that are not an item you may read are innot_found.Arguments
- idsstring · query · required
- The items' ids, comma-separated: at most 25, each once.
Example
GET https://api.zegazone.app/batch/items?ids=b4kq7xz2m9np,q7rt2bx9kz4m Authorization: Bearer <token>
Over MCP, the tool
items_batch_gettakes the same arguments.Returns
200The items. Fields:items,pagination,next_offset,not_found.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.get_descriptionRead an item's descriptionitems:read
Needs
items:read.Just the item's name, kind, description (and how it is written) and tags, and whether it has a description, for an agent that is describing items. The description is written with
items.update: Zegazone writes none itself.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
Example
GET https://api.zegazone.app/items/q7rt2bx9kz4m/description Authorization: Bearer <token>
Over MCP, the tool
items_get_descriptiontakes the same arguments.Returns
200The description. Fields:id,collection_id,name,kind,description,description_format,described,tags.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.contentsWhat an archive or a skill holdsitems:read
Needs
items:read.Says what a stored archive (zip, tar, gzip, bzip2, xz, 7z, rar) or a skill item is and holds, without unpacking it: its format and label, its size, and for a zip the number of entries, files and folders, the unpacked total and the first names, read from the zip's directory alone. A Zip64 archive is large (its size only), an encrypted one password_protected, a damaged one unreadable. A zip that holds one folder with a SKILL.md but was kept as a file says why it is not a skill (skill_check). Any other item is invalid_request. Who may download the item may read it; signed out on a published Public collection, rate-limited per address.
Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
Example
GET https://api.zegazone.app/items/q7rt2bx9kz4m/contents Authorization: Bearer <token>
Over MCP, the tool
items_contentstakes the same arguments.Returns
200What the item holds. Fields:item_id,kind,format,label,size_bytes,state,entry_count,file_count,folder_count,total_bytes,password_protected,entries,more,skill_check.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
skills.addSave a skill into a collectionitems:write
Needs
items:write.Adds an agent skill (kind skill) at the end of a collection, from text alone, so an agent that holds nothing but its connection can save one.
markdownis a skill that is one SKILL.md;filesis a skill with a SKILL.md and other text files (references, scripts, templates), which the server packs into the zip a skill is distributed as and ingests as an upload, so every check of a skill upload applies (the frontmatter, the name, the file and size caps, the paths). A refusal isinvalid_skillwith areason. Returns the item. A script is stored and listed, never run. Binary files are not taken here.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- markdownstring · body
- A skill that is one SKILL.md, whole: YAML frontmatter with a name (lower-case letters, digits and hyphens, at most 64) and a description (what it does and when to use it, at most 1,024 characters), then the instructions in markdown; at most 524,288 characters. Give this or files.
- filesobject · body
- A skill with more than one file: each key is a path inside the skill's folder (SKILL.md, references/guide.md, scripts/run.py), each value that file's text. SKILL.md is required and holds the frontmatter; at most 200 files and 20 MB. Text files only: a file with bytes that are not text is refused with invalid_skill and reason binary_file. The server makes the zip. Give this or markdown.
- tagsarray of string · body
- Tags for the item, as items.add takes them.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/skills Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "markdown": "<string>", "files": { "SKILL.md": "---\nname: pdf-processing\ndescription: Extract text from PDFs.\n---\n# Steps", "references/forms.md": "# Form fields" } }Over MCP, the tool
skills_addtakes the same arguments.Returns
201The new skill item. Fields:number,id,word_name,word_name_generated,word_name_chosen,reference,collection_id,kind,status,name,description,description_format,tags,position,viewer,viewer_choices,mime_type,url,subcollection_id,added_by,text,version,variants_ready,variants,thumbnail_unavailable,playback,archived_at,deleted_at,restorable_until,created_at,updated_at,viewer_permissions,capabilities,urls,gate,link,placeholder_kind,thumbnail,thumbnail_label,skill,subcollection.
Errors
integrity_mismatch400invalid_json400invalid_request400invalid_skill400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409storage_quota_exceeded413mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
skills.getRead a skill: its frontmatter, instructions and file listitems:read
Needs
items:read.Returns a skill item's name and description first, then its other frontmatter fields, the SKILL.md instructions (text) and the list of files with their sizes. The instructions are what an agent reads when it uses the skill; skills.get_file reads any other file of a bundle. An item that is not a skill is invalid_request. A skill of a published Public collection is also read without signing in, as a note's text is (the same limit per address); that reader gets no byte addresses, and a skill the gate withholds is forbidden.
Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
Example
GET https://api.zegazone.app/items/q7rt2bx9kz4m/skill Authorization: Bearer <token>
Over MCP, the tool
skills_gettakes the same arguments.Returns
200The skill. Fields:id,collection_id,kind,name,description,form,version,frontmatter,text,files,urls_expires_at.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
skills.get_fileRead one file of a skillitems:read
Needs
items:read.Returns one file of a skill by its path (as skills.get lists it): a text file inline as encoding utf8 with its text, anything else (an image, a PDF, a script that is not UTF-8) in base64 chunks of 98304 bytes through this call alone (encoding base64: data, chunk_sha256, next_index; call again with index until last), as items.download serves a file. A file over 10 MB is file_too_large. Only a path the skill lists is read.
Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- pathstring · query · required
- The file's path as skills.get lists it, e.g. references/guide.md.
- indexinteger or null · query
- For a file read in chunks: the chunk, from 0; the answer's next_index says the next. A text file needs none; anything else comes in chunks of 98304 bytes as base64.
Example
GET https://api.zegazone.app/items/q7rt2bx9kz4m/skill/files?path=references/guide.md Authorization: Bearer <token>
Over MCP, the tool
skills_get_filetakes the same arguments.Returns
200The file.
Errors
integrity_mismatch400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404ambiguous_reference409file_too_large413mcp_quota_exceeded429rate_limited429server_error500server_busy503
skills.put_fileWrite one file of a skillitems:write
Needs
items:write.Writes one file of a skill item (adds it, or replaces it), for anyone who may edit the item. The server rewrites the skill whole: the file paths are checked again (relative paths only; no.., no absolute or drive path, no file where the skill has a folder: invalid_skill unsafe_path or path_conflict), the caps (200 files, 10 MB a file, 20 MB in all) and SKILL.md is validated again whatever changed. A skill that was one SKILL.md becomes a skill with several files when a file is added; its id, address and card stay. Editing SKILL.md changes the skill's name and description as its frontmatter says. Text goes as content, or as a partial change of an existing text file (edits, prepend, append: the same implementation as a note's); a binary file is uploaded first (items.upload into the skill's collection) and attached with upload_id. Returns the item, the new version and the file list. A script is stored and listed, never run.
Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- pathstring · path · required
- The file's path inside the skill's folder, as skills.get lists it (SKILL.md, references/guide.md), percent-encoded as one segment (references%2Fguide.md).
- contentstring · body
- The file's text, whole (at most 10 MB). Give this, upload_id, or a partial change (edits, prepend, append). A file holding bytes that are not text is refused with invalid_skill and reason binary_file: send it as an upload. To change part of an existing text file, prefer edits, which do not resend it.
- editsarray of object · body
- Changes part of an existing text file without resending it, exactly as items.update's edits change a note: each edit, in order, replaces its old_string with new_string in the text the one before it left; each old_string must be in the text exactly once, unless replace_all. All or nothing: an edit that matches nowhere or more than once refuses the call (400 invalid_request, field edits.<n>.old_string, reason not_found or found_more_than_once, matches) and nothing is written. Not with content or upload_id.
- prependstring · body
- Text put before an existing text file's text (after any edits), without resending it. Not with content or upload_id.
- appendstring · body
- Text put after an existing text file's text (after any edits), without resending it. Not with content or upload_id.
- upload_idstring · body
- For a binary file (an image, a PDF): the upload_id of your own pending upload of its bytes into the skill's collection (items.upload, transfer inline or presigned, bytes sent, not finalised). Its bytes become the file and the upload is then discarded, so no other item appears. Give this or content.
- base_versioninteger · body
- The skill's version (skills.get's version) this edit was based on. When the stored skill has moved on since, nothing is written and the answer is 409 skill_changed with current_version: read it again and redo the edit. Omitted, the edit applies to whatever is stored.
Example
PUT https://api.zegazone.app/items/b4kq7xz2m9np/skill/files/references%2Fguide.md Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "content": "<string>", "edits": [ { "old_string": "<string>", "new_string": "<string>" } ] }Over MCP, the tool
skills_put_filetakes the same arguments.Returns
200The skill as stored now. Fields:item,version,form,files.
Errors
invalid_json400invalid_request400invalid_skill400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409skill_changed409upload_not_found409upload_expired410file_too_large413storage_quota_exceeded413mcp_quota_exceeded429rate_limited429server_error500server_busy503
skills.delete_fileRemove one file of a skillitems:write
Needs
items:write.Removes one file of a skill item, for anyone who may edit the item; SKILL.md cannot be removed (invalid_skill skill_md_missing: delete the item to remove the skill). The server rewrites the skill whole and validates SKILL.md again. When only SKILL.md is left, the skill is stored as one SKILL.md again; its id, address and card stay. A path the skill does not list is not_found. Returns the item, the new version and the file list.
Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- pathstring · path · required
- The file's path inside the skill's folder, as skills.get lists it (SKILL.md, references/guide.md), percent-encoded as one segment (references%2Fguide.md).
- base_versioninteger · query
Example
DELETE https://api.zegazone.app/items/b4kq7xz2m9np/skill/files/references%2Fguide.md Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
skills_delete_filetakes the same arguments.Returns
200The skill as stored now. Fields:item,version,form,files.
Errors
invalid_json400invalid_request400invalid_skill400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409skill_changed409upload_not_found409upload_expired410file_too_large413storage_quota_exceeded413mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.drop_linksList a collection's open drop linksitems:read
Needs
items:read.The links of this collection that are still open (not turned off, not expired, not used up) and that the caller may turn off: the owner sees every one, anyone else their own. This is what the add sheet's owner control shows. The token is not here;
token_prefixtells links apart.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
Example
GET https://api.zegazone.app/collections/b4kq7xz2m9np/drop-links Authorization: Bearer <token>
This operation is not an MCP tool.
Returns
200The open links, newest first. Fields:items.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.drop_linkMake a link a person opens to drop files into a collectionitems:write
Needs
items:write.For a file only the person can reach. Makes a link,
drop_url, that works for 15 minutes and takes up toexpected_countfiles (default 10, at most 25) into this one collection. The person opens it on any device, signed out, chooses the files and they arrive in the collection as if you had added them; nothing is installed or configured.expected_filenamesandnoteare shown on the page (a checklist that ticks as each arrives, a line for the person) and never enforced. Needs the right to add to the collection (the owner, or a member who can upload); any other collection, unknown ones included, is 403. At most 10 links an hour and 30 in 24 hours per account (429): one link takes many files, so give the person the one you have. Give them the link now, then check with items_list. The token is indrop_urlonly here and is stored only as a hash. Revoke a link with items_drop_link_revoke.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- expected_filenamesarray of string · body
- The names of the files you expect (at most 25, each cut to 200 characters). The page shows them as a checklist that ticks as a file of that name arrives; they are never enforced, and any file may be dropped.
- expected_countinteger · body
- How many files the link takes, from 1 to 25 (default 10). It is a cap: past it the link is used up. Out of range is refused, not clamped.
- notestring or null · body
- A line for the person, shown on the page (at most 200 characters): what to drop and why.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/drop-links Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "expected_filenames": [ "<string>" ], "expected_count": 1 }Over MCP, the tool
items_drop_linktakes the same arguments.Returns
201The link. Fields:id,drop_url,token_prefix,expires_at,expires_in_seconds,collection,max_files,expected_filenames,note,next,hint.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.drop_link_revokeTurn a drop link offitems:write
Needs
items:write.Turns a live drop link off at once; it takes no further file (a file already on its way finishes). The link's maker, their agents and the collection's owner may; to anyone else the link does not exist. Revoking again answers
changed: false. Rows of links are kept 7 days after they expire.Arguments
- idstring · path · required
- The drop link's id (not its token).
Example
POST https://api.zegazone.app/drop-links/d7rt2bx9kz4m/revoke Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
items_drop_link_revoketakes the same arguments.Returns
200The link is off. Fields:id,revoked,changed,revoked_at.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.revealReveal a blurred itemsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
After the viewer's one-line confirmation: the clear variants of one gated item. Of a Blurred item only (Members only and Paid items are not revealed:
forbidden). A signed-in viewer gets private URLs bound to them (at most 15 minutes; ask again within the visit for fresh ones, R9); a signed-out visitor gets a 15-minute token bound to this item, its collection and its epoch, not to a person (R4); a visitor holding a device pass of answer to enter gets URLs of at most 5 minutes, each opening one variant of this item; and for an adult collection only a person may reveal:session_required, "Sign in to reveal". The server keeps no record of a reveal: leaving the page ends it. Not an agent operation and not an MCP tool: a bearer token is refused.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/reveal Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The clear variants. Fields:id,gate,urls,thumbnail_urls,text,anonymous,expires_at.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404ambiguous_reference409mcp_quota_exceeded429rate_limited429server_error500server_busy503
items.discardTake back a clone just made (a clone's Undo)session
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Only with the
undo_tokenthe clone'sitems.copyanswered, within 120 seconds of the clone, while it is still in a collection of yours that nobody else can see. For good, not to Trash: its bytes stop counting against your storage at once (discarded: true); when that cannot be done at once it goes to Trash, as Delete does (discarded: false). Anything else is forbidden, one answer. The Player's Undo of Clone; not an agent operation and not an MCP tool: a bearer token is refused.Arguments
- idstring · path · required
- The item. Its 12-character id, its number (2397815 or #2397815) or its word name (generated or chosen, in any case and spacing: "amber falcon").
- undo_tokenstring · body
- The clone's undo token, from its items.copy answer.
Example
POST https://api.zegazone.app/items/q7rt2bx9kz4m/discard Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "undo_token": "<string>" }This operation is not an MCP tool.
Returns
200Taken back for good, or in Trash. Fields:id,discarded.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404ambiguous_reference409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
Libraries7 operations
A library is a private tab of references to collections. No library operation changes a collection.
libraries.listYour librariescollections:read
Needs
collections:read.The libraries you created, in their order after the system tabs, hidden ones included. Each library's collections are collections.list with tab=library:{id}.
Arguments
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/libraries Authorization: Bearer <token>
Over MCP, the tool
libraries_listtakes the same arguments.Returns
200Your libraries with the exact total. Fields:items,pagination.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
libraries.createCreate a librarycollections:write
Needs
collections:write.A new, empty library after your others: a private tab of references to collections, or, with follows_collection_id, a tab that lists one collection's sub-collections as they are when read. At most 50 libraries; names are unique among yours, ignoring case.
Arguments
- namestring · body · required
- 1 to 60 characters, trimmed; unique among your libraries, ignoring case.
- hiddenboolean · body
- Make it hidden from the start.
- follows_collection_idstring or null · body
- A collection you can read now, not in Trash: the tab then lists its direct sub-collections that you can read, at read time, in its tile order, and takes no collections by hand (libraries.add, remove and move_collection answer library_follows_collection). null stops following, leaving an empty tab. A tab that holds collections cannot start following (library_not_empty).
Example
POST https://api.zegazone.app/libraries Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "name": "Inspiration" }Over MCP, the tool
libraries_createtakes the same arguments.Returns
201The new library. Fields:id,name,position,hidden,collection_count,follows,default_sort,created_at,updated_at.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404duplicate_library_name409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
libraries.updateRename, hide, show, reorder or follow a librarycollections:write
Needs
collections:write.Give only what changes: name, hidden (off the tab strip, or shown again), position, or follows_collection_id (a collection whose sub-collections the tab lists, or null to stop). Your libraries only.
Arguments
- idstring · path · required
- namestring · body
- 1 to 60 characters, trimmed; unique among your libraries, ignoring case.
- hiddenboolean · body
- true takes it off the tab strip; false shows it again.
- positioninteger · body
- Its new place among your libraries, from 0; past the end puts it last.
- follows_collection_idstring or null · body
- A collection you can read now, not in Trash: the tab then lists its direct sub-collections that you can read, at read time, in its tile order, and takes no collections by hand (libraries.add, remove and move_collection answer library_follows_collection). null stops following, leaving an empty tab. A tab that holds collections cannot start following (library_not_empty).
Example
PATCH https://api.zegazone.app/libraries/h3m8wq2z5rtc Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "name": "Inspiration", "hidden": true }Over MCP, the tool
libraries_updatetakes the same arguments.Returns
200The library as changed. Fields:id,name,position,hidden,collection_count,follows,default_sort,created_at,updated_at.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404duplicate_library_name409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409library_not_empty409mcp_quota_exceeded429rate_limited429server_error500server_busy503
libraries.deleteDelete a librarycollections:write
Needs
collections:write.The library and its references go at once; every collection it referenced stays exactly as it was, in every system library it was in.
Arguments
- idstring · path · required
Example
POST https://api.zegazone.app/libraries/h3m8wq2z5rtc/delete Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
libraries_deletetakes the same arguments.Returns
200Deleted. Fields:id,deleted.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
libraries.addAdd collections to a librarycollections:write
Needs
collections:write.Copies references into one of your libraries: collections by id, each one you can read now and not in Trash, or every collection a system tab lists under a search and filter (from). The collections themselves do not change: they stay in Private, Workspaces or Public as before. A library holds at most 1,000.
Arguments
- idstring · path · required
- collection_idsarray of string · body
- Collections you can read now, by id (one at a time is Add to library).
- fromobject · body
- Or every collection a tab lists under a search and filter (at most 1000). Give collection_ids or from, not both.
- positioninteger · body
- With exactly one collection in collection_ids: its place in the library's own order, from 0 (past the end puts it last). It is added there, or moved there when the library already holds it; this is how a library is reordered. The library then lists in that order by default (default_sort manual).
Example
POST https://api.zegazone.app/libraries/h3m8wq2z5rtc/collections Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "collection_ids": [ "b4kq7xz2m9np" ], "from": { "tab": "private" } }Over MCP, the tool
libraries_addtakes the same arguments.Returns
200What was added. Fields:added,already,position,library.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409library_follows_collection409mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
libraries.removeRemove collections from a librarycollections:write
Needs
collections:write.Their references leave the library; the collections are untouched and stay wherever else they are.
Arguments
- idstring · path · required
- collection_idsarray of string · body · required
- The collections whose references leave the library.
Example
POST https://api.zegazone.app/libraries/h3m8wq2z5rtc/collections/remove Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "collection_ids": [ "b4kq7xz2m9np" ] }Over MCP, the tool
libraries_removetakes the same arguments.Returns
200What was removed. Fields:removed,library.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409library_follows_collection409mcp_quota_exceeded429rate_limited429server_error500server_busy503
libraries.move_collectionMove collections from one library of yours to anothercollections:write
Needs
collections:write.Between your own libraries a collection moves: it leaves
fromand entersto. Each must be infrom. The collections themselves do not change.Arguments
- fromstring · body · required
- The library of yours the collections leave.
- tostring · body · required
- The library of yours they enter.
- collection_idsarray of string · body · required
- Collections in
from; each leaves it and entersto.
Example
POST https://api.zegazone.app/libraries/move Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "from": "<string>", "to": "<string>", "collection_ids": [ "b4kq7xz2m9np" ] }Over MCP, the tool
libraries_move_collectiontakes the same arguments.Returns
200What moved, and both libraries as they are now. Fields:moved,from,to.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409library_follows_collection409mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
Player5 operations
What the Player keeps for the person: its start-up answer and its interface state.
player.ui_state.getThe person's UI statesettings:read
Needs
settings:read.Where the person was (the collection and item), the view mode, the playback position and the library tab used last. The stored selection is re-checked first: what the person can no longer read is dropped, saved and named in
cleared. With no row yet, the defaults. An agent needssettings:read.Example
GET https://api.zegazone.app/ui-state Authorization: Bearer <token>
Over MCP, the tool
ui_state_gettakes the same arguments.Returns
200The UI state. Fields:collection_id,item_id,view_mode,playback_position,library_tab,source,client_id,updated_at,cleared.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
player.ui_state.setChange the person's UI statesettings:write
Needs
settings:write.A partial update: omitted fields keep their values. Published on the person's own live channel so their other tabs and devices follow. Moving the person to a surface is
player.navigate. An agent needssettings:write, and a connection the person stopped from the driving strip is refused 403 withrejected: "stopped by the person";sourcedefaults toagentfor an agent anduserfor a person.Arguments
- collection_idstring or null · body
- Select a collection and its first item (none when it is empty); with
item_id: null, the collection alone. Null clears the selection. A collection the person cannot read is 404. - item_idstring or null · body
- Select an item and its collection; wins over
collection_id. Null clears the item, keeping the collection. A live item the person cannot read is 404. - view_modecarousel · grid · null · body
- playback_positionnumber or null · body
- Seconds, 0 to 604800; null clears it.
- library_tabprivate · workspaces · public · body
- The library tab the person is on.
- sourceuser · agent · body
- Who moved the person:
userfor a person,agentfor an agent.
Example
PATCH https://api.zegazone.app/ui-state Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "collection_id": "b4kq7xz2m9np", "item_id": "q7rt2bx9kz4m" }Over MCP, the tool
ui_state_settakes the same arguments.Returns
200The UI state as written. Fields:collection_id,item_id,view_mode,playback_position,library_tab,source,client_id,updated_at,cleared.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
player.bootEverything the player needs to startsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The signed-in person with their verification state, their library, their UI state (re-checked) and the first page of the collection they last had open, with its byte URLs. One round trip (ARCHITECTURE §4.5).
Example
GET https://api.zegazone.app/boot Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The boot payload. Fields:user,collections,ui_state,page.
Errors
session_ended401session_required401wrong_token_type401server_error500server_busy503
player.command.acknowledgeA Studio tab heard a Player commandsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Studio's own call, with the session cookie: the tab that obeyed a
player.commandmessage says so, so the agent'splayer.navigatecan answer. The first tab's answer is the agent's; the rest change nothing. Never an agent's: a token is refused.Arguments
- noncestring · body · required
- The command's nonce, from its live message.
- rejectedstring · body
- Why this tab refused the command; absent when it acted.
- detailstring · body
Example
POST https://api.zegazone.app/player/command-ack Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "nonce": "<string>" }This operation is not an MCP tool.
Returns
200Whether this was the first. Fields:acknowledged.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401missing_client_header403idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409server_error500server_busy503
Settings13 operations
The account's preferences, and the plans and their limits.
settings.getThe account's preferencessettings:read
Needs
settings:read.The theme, the playback defaults new collections copy, and the library display, every key present. An agent needs
settings:read.Example
GET https://api.zegazone.app/settings Authorization: Bearer <token>
Over MCP, the tool
settings_gettakes the same arguments.Returns
200The preferences. Fields:theme,playback_defaults,library,content,uploads.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
settings.setChange the account's preferencessettings:write
Needs
settings:write.A partial change: name only what changes, and omitted keys keep their values. Changing the playback defaults alters no existing collection. Profile values are
profile.update's and are refused here. An agent needssettings:write, and its change appears in Recent agent activity as "<client> updated settings".Arguments
- themedark · light · system · body
- Dark (the default), Light or System, which follows the device.
- playback_defaultsobject · body
- The playback settings every new collection copies when it is created; existing collections keep their own.
- libraryobject · body
- Library display defaults (Settings › Library).
- contentobject · body
- Settings › Content: the person's own; an agent naming it is refused 403
forbidden. - uploadsobject · body
- How uploads arrive (Settings › Library).
Example
PATCH https://api.zegazone.app/settings Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "theme": "dark", "playback_defaults": { "image": { "on": true, "seconds": 1 }, "video": { "on": true, "seconds": 1 } } }Over MCP, the tool
settings_settakes the same arguments.Returns
200The preferences as now stored. Fields:theme,playback_defaults,library,content,uploads.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
settings.service.statusRead whether registration and the service are opensession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Public. The registration position (open, free_paused, all_paused) with its public line, the service position (running, read_only, closed) with the operator's notice, the bot check's site key, and, with a session cookie, the account's hold. Reflects a change in admin within a minute.
Example
GET https://api.zegazone.app/service/status Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The status. Fields:registration,service,bot_check,you.
Errors
server_error500server_busy503
settings.waitlist.joinJoin the waitlistsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Email and the plan wanted only. The entry counts once the emailed link confirms it (double opt-in). The answer is the same whether the address is new, already on the list, or has an account.
Arguments
- emailstring · body · required
- planfree · personal · pro · body · required
- turnstile_tokenstring · body
- websitestring · body
- Leave empty.
Example
POST https://api.zegazone.app/waitlist Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "email": "<string>", "plan": "free" }This operation is not an MCP tool.
Returns
202Received; check the email. Fields:received,detail.
Errors
invalid_request400rate_limited429server_error500server_busy503
settings.waitlist.confirmConfirm a waitlist placesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Arguments
- tokenstring · body · required
Example
POST https://api.zegazone.app/waitlist/confirm Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "token": "<string>" }This operation is not an MCP tool.
Returns
200Whether the link confirmed a place. Fields:confirmed,detail.
Errors
invalid_request400rate_limited429server_error500server_busy503
settings.waitlist.leaveLeave the waitlist and delete the entrysession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Arguments
- tokenstring · body · required
Example
POST https://api.zegazone.app/waitlist/leave Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "token": "<string>" }This operation is not an MCP tool.
Returns
200Done (the same answer whether or not there was an entry). Fields:removed,detail.
Errors
invalid_request400rate_limited429server_error500server_busy503
settings.waitlist.invitationRead what a “you're in” link offerssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Arguments
- tokenstring · query · required
Example
GET https://api.zegazone.app/waitlist/invitation?token=<string> Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The plan the link admits on, and when it stops working. Fields:plan,expires_at.
Errors
not_found404rate_limited429server_error500server_busy503
settings.waitlist.invitation_freeGo back to the free queue instead of the paid placesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Arguments
- tokenstring · body · required
Example
POST https://api.zegazone.app/waitlist/invitation/free Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "token": "<string>" }This operation is not an MCP tool.
Returns
200Whether the entry went back to the free queue (the link is spent either way). Fields:queued,detail.
Errors
invalid_request400rate_limited429server_error500server_busy503
settings.plans.listList the plans and their limitssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Arguments
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/plans Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The plans, cheapest first, with the exact total. Fields:items,pagination.
Errors
invalid_request400server_error500server_busy503
settings.limits.getYour plan's limits now, what you have used, warnings and over-cap statesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The signed-in person's limits from the plan table, read at call time: the trial's while it runs, the plan's after it. Warnings at 80 % and 100 % of storage and of a capped monthly allowance; the over-cap state names each cap and by how much.
Example
GET https://api.zegazone.app/me/limits Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The limits. Fields:plan,display_name,trial,limits,usage,ai_suggestions_used,warnings,over,resets_at.
Errors
session_ended401session_required401server_error500server_busy503
settings.mail.getYour mail choicessession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Settings › Notifications: notification mail on or off, announcements, the per-event choices, and whether the address is suppressed after a bounce or complaint. The web app's own: not open to agents.
Example
GET https://api.zegazone.app/comms/preferences Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The choices. Fields:notification_mail,announcements,events,suppressed.
Errors
session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500server_busy503
settings.mail.setChange your mail choicessession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Changes what the body names and answers with every choice as it now stands. Transactional mail (sign-in, password, invitations) cannot be turned off. Not open to agents.
Arguments
- notification_mailboolean · body
- announcementsboolean · body
- eventsobject · body
Example
PUT https://api.zegazone.app/comms/preferences Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "notification_mail": true, "announcements": true }This operation is not an MCP tool.
Returns
200The choices now. Fields:notification_mail,announcements,events,suppressed.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500server_busy503
settings.mail.unsubscribeUnsubscribe with a mail's linksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Signed out, one tap: turns off exactly the category the token names (notification mail or announcements) for exactly the account it names, and says what still arrives. The token comes as
{token}in a JSON body, or as?token=for a mail client's one-click POST (RFC 8058). Idempotent. An invalid token is 400 ontokenand changes nothing.Arguments
- tokenstring · query
Example
POST https://api.zegazone.app/comms/unsubscribe Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Unsubscribed. Fields:unsubscribed,category,still_arrives.
Errors
invalid_request400server_error500server_busy503
Profile63 operations
The person, their sign-in and the ways in. Operations that take an agent token come first; the rest are the web app's own and take the browser's session cookie, or none to sign in.
profile.getThe signed-in account and its profileprofile:read
Needs
profile:read.The account behind the session with its display name, bio and links, and, for the account menu and sheet, its email address and the bytes it stores. An agent with
profile:readreads the same without the email address.Example
GET https://api.zegazone.app/me Authorization: Bearer <token>
Over MCP, the tool
profile_gettakes the same arguments.Returns
200The account behind the session or the token, with its display name, bio, links, email (a person's only) and storage used. Fields:id,username,plan,display_name,bio,links,avatar,email,storage_used_bytes.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.export.getThe account's latest exportitems:read
Needs
items:read.The newest export of your account, in any state, or null when none was ever asked for. Ready: read it with
profile.export.downloaduntilexpires_at.Example
GET https://api.zegazone.app/me/exports Authorization: Bearer <token>
Over MCP, the tool
profile_export_gettakes the same arguments.Returns
200The latest export, or null. Fields:export.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.export.requestDownload everything: ask for the account's exportitems:read
Needs
items:read.Queues one archive of every collection you own (not those shared with you), each as
collections.exportwrites it with every item and every note whole (files listed by id and size), and a manifest. It is made in the background: the person gets a bell row and an email when it is ready, and it is kept for 7 days. Counts against no storage. While one is queued, being made or ready, another is 409export_in_progresswith that one inexport. Thenprofile.export.getsays its state andprofile.export.downloadreads it.Example
POST https://api.zegazone.app/me/exports Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
profile_export_requesttakes the same arguments.Returns
202Queued. Fields:id,state,requested_at,ready_at,expires_at,size_bytes,failure_reason.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403export_in_progress409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.export.downloadRead the export in chunks, through the callitems:read
Needs
items:read.A ready export of your own account in chunks of 98304 bytes, base64, as
items.downloadserves a file: call with no index for chunk 0 (which sayschunk_count), then eachnext_indexuntillast; the chunks joined are the JSON archive exactly, each with its SHA-256. Another account's export isnot_found; one past its 7 days is 410download_expired; one not ready yet isnot_foundwith itsstate.Arguments
- idstring · path · required
- indexinteger or null · query
- Which chunk, from 0 (the default). Chunk 0 says how many there are.
Example
GET https://api.zegazone.app/me/exports/e7kq2xz4m9np/download Authorization: Bearer <token>
Over MCP, the tool
profile_export_downloadtakes the same arguments.Returns
200One chunk. Fields:export_id,name,mime_type,size_bytes,chunk_bytes,chunk_count,index,offset,length,last,next_index,chunk_sha256,etag,expires_at,data.
Errors
integrity_mismatch400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404download_expired410mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.deletion.getWhat deleting the account would takeprofile:read
Needs
profile:read.The counts Profile's Delete account sheet lists: collections and items (and how many are published), handles and their channels, channel prices and their subscribers, AI connections and API keys. Read it with the session cookie, or with an agent token holding
profile:readto tell the person what would go. Confirming isprofile.deletion.confirm, which only the person's own session can call: no token, tool or navigation confirms a deletion.Example
GET https://api.zegazone.app/me/deletion Authorization: Bearer <token>
This operation is not an MCP tool.
Returns
200What goes. Fields:collections,items,published,handles,channel_prices,subscribers,connections,api_keys,window_days.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.set_avatarSet your avatarprofile:write
Needs
profile:write.Your own avatar: an uploaded image, or none. Its renditions are public, tokenless bytes at
/pub/u/{user}/{epoch}/{variant}; every change moves them to a new epoch and the previous addresses stop answering (R6). Withalias_idit is that alias's own picture on its public profile instead, at/pub/a/{alias}/{epoch}/{variant}; the answer'savataris then the alias's. Every new image takes effect only once its renditions exist: the call renders it, then puts it in place, and a failed render answers 502render_failedwith nothing changed. Where the processing queue runs (staging, production), a new image is the exception: finishing its upload (or a cover from an item) records the choice and answersrenderingat once, the item, collection or profile showing the new image with no renditions yet (urlsempty or null); they are made behind the answer and announced as its event (items.set_thumbnail,collections.set_cover,profile.set_avatar). The image it replaces stays until then; a render that cannot be made puts it back, and a thumbnail's event then carriesthumbnail.render_failed: true. The image it replaces is disposed of after. An upload is two calls around a PUT:source: uploadwithfilenameandsize_bytes(at most 25 MB, never charged) answersupload_startedwith where to PUT; after the PUT,source: uploadwithupload_idrenders and sets it.focalalone moves the current image's crop: its square renditions are re-cut in the background (rendering), the current ones served until then.Arguments
- sourceupload · none · body
- upload (an image you upload) or none (no avatar). Absent: only focal moves.
- focalobject or null · body
- The focal point every square rendition is cut around; null for the attention-aware crop. Alone, without source, it moves the current image's crop.
- filenamestring · body
- With source upload: the image's file name; starts the upload.
- size_bytesinteger · body
- With source upload: the image's size; at most 25 MB. Never charged to storage.
- content_typestring or null · body
- The declared type: only a hint; the bytes decide.
- upload_idstring · body
- With source upload: the upload to finish, after its PUT. Renders it and puts it in place.
- alias_idstring · body
- One of your aliases (its id from
profile.aliases.list): sets that handle's own picture on its public profile instead of your avatar. Its renditions are at/pub/a/{alias}/{epoch}/{variant}, an address that names the alias only. Your username's own row is your avatar. Give it on every step of an upload.
Example
POST https://api.zegazone.app/profile/avatar Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "source": "upload", "focal": { "x": 0.5, "y": 0.35 } }Over MCP, the tool
profile_set_avatartakes the same arguments.Returns
200Your avatar as it now stands. Fields:status,avatar,upload.
Errors
integrity_mismatch400invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409upload_not_found409upload_expired410file_too_large413mcp_quota_exceeded429rate_limited429server_error500render_failed502photo_search_unavailable503server_busy503
activity.listRecent agent activityprofile:read
Needs
profile:read.The writes the person's agents made, newest first, for the last 30 days, with the total: exact up to 500 rows (or offset + limit, when larger), else that bound with
total_cappedtrue. Reads and navigation never appear; a settings change appears as "<client> updated settings". A person reads it with the session cookie; an agent with a bearer token holdingprofile:read, and its call is counted.Arguments
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/activity Authorization: Bearer <token>
Over MCP, the tool
activity_listtakes the same arguments.Returns
200The activity, newest first. Fields:items,pagination.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.aliases.listList your handlesprofile:read
Needs
profile:read.Your channels: the username first, then the aliases you added in the order you added them, each with its followers, the collections published under it and whether it is the default for publishing. A handle deleted in the last 90 days is held and not listed.
Arguments
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/me/aliases Authorization: Bearer <token>
Over MCP, the tool
profile_aliases_listtakes the same arguments.Returns
200Your handles. Fields:items,pagination.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.aliases.createClaim a new handleprofile:write
Needs
profile:write.Claims an alias through's checks, in order: format (3 to 30 characters of a-z, 0-9, dot, underscore and hyphen, no dot at either end, never two dots in a row;
invalid_requestonhandle), uniqueness across every alias and username (handle_taken), reserved names (name_reserved, withclass), look-alikes of another account's handle (name_reserved, classexisting_user_homograph), the plan's cap (alias_limit_reached, withcurrent,maxandplan: Free holds 1, Personal and Pro 5), then screening (name_screen_rejected, which never says why). A reserved name is never answered as a limit. An alias is never renamed: to change a handle, add a new alias and delete the old one.dry_runruns the same checks without claiming. Withcollection_idthe handle is claimed as that collection's own, making it a workspace: your top-level Members (restricted) collection with no handle yet, checked before the claim (not_foundfor a collection you cannot see,forbiddenfor one that is not yours,invalid_requestoncollection_idotherwise); it counts as a channel like any alias.Arguments
- handlestring · body · required
- The new handle, with or without the @; lowercased. A handle is 3 to 30 characters: lowercase letters, numbers and dots (also _ and -), with no dot at the start or end and never two dots in a row.
- collection_idstring · body
- Claim it as this collection's own handle, making the collection a workspace: one of your top-level collections at the Members level (restricted) that has no handle yet. It counts as one of your channels; the workspace's page is /{handle}, and what is published under it sits at /{handle}/{slug}.
- dry_runboolean · body
- Run every check and claim nothing: the as-you-type answer. It answers
availableor the very refusal a claim would meet.
Example
POST https://api.zegazone.app/me/aliases Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "handle": "mia.tom" }Over MCP, the tool
profile_aliases_createtakes the same arguments.Returns
200The dry run: the handle can be claimed. Fields:dry_run,handle,available,address,url,alias.201The new alias. Fields:dry_run,handle,available,address,url,alias.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403alias_limit_reached403forbidden403insufficient_scope403missing_client_header403not_found404handle_taken409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409name_reserved409name_screen_rejected409mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.aliases.deleteDelete a handleprofile:write
Needs
profile:write.Needs
confirm: true, ordry_run: trueto see what would happen. Unpublishes every collection published under the alias (each bumps its epoch, so its address answers 404 at once and nothing redirects), clears the handle from any other collection that carries it, moves the default for publishing to the username if it was this alias, and holds the handle for 90 days. The collections stay in your library, owned by you, unpublished. The username can never be deleted.Arguments
- idstring · path · required
- confirmboolean · body
- Required unless dry_run.
- dry_runboolean · body
- Report what deleting would do (the sheet of); change nothing.
Example
POST https://api.zegazone.app/me/aliases/b4kq7xz2m9np/delete Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "confirm": true, "dry_run": true }Over MCP, the tool
profile_aliases_deletetakes the same arguments.Returns
200Deleted, or the dry run's report. Fields:dry_run,deleted,alias,unpublished,cleared,default_moved,held_until,subscribers.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404has_subscribers409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.aliases.updateEdit a handle's public profileprofile:write
Needs
profile:write.Each handle has its own public profile at
/{handle}, like a channel: its display name, bio and picture, and whether the page is shown. An alias's values are its own and never show the username or another alias; the username's row edits the profile's own display name and bio (the valuesprofile.updatechanges).profile_hidden: truehides the page: it then answers exactly as a handle that does not exist, to everyone but you, and the handle leaves the sitemap and Discovery's Channels; the collections published under it keep their own addresses. The picture isprofile.set_avatarwithalias_id. Name at least one field.Arguments
- idstring · path · required
- display_namestring or null · body
- Its public profile's name: at most 50 characters, trimmed; empty or null clears it (the page then shows the handle). On the username's row it is the profile's display name.
- biostring or null · body
- Its public profile's bio: at most 160 characters, trimmed; empty or null clears it. On the username's row it is the profile's bio.
- profile_hiddenboolean · body
- true hides its public profile (
/{handle}answers as a handle that does not exist); false shows it again. Its published collections keep their own addresses either way.
Example
PATCH https://api.zegazone.app/me/aliases/b4kq7xz2m9np Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "display_name": "<string>", "bio": "<string>" }Over MCP, the tool
profile_aliases_updatetakes the same arguments.Returns
200The handle as it is now, ornoop. Fields:noop,alias.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.aliases.set_defaultMake a handle the default for publishingprofile:write
Needs
profile:write.Exactly one handle is the default: the username until you choose another. The username's own row puts it back. A default never moves a live address: a collection keeps the handle it is published under. A frozen alias cannot be the default (
alias_frozen).Arguments
- idstring · path · required
Example
POST https://api.zegazone.app/me/aliases/b4kq7xz2m9np/set_default Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
profile_aliases_set_defaulttakes the same arguments.Returns
200The default, ornoop. Fields:noop,alias.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403missing_client_header403not_found404alias_frozen409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.selling.getPayouts and who may chargeprofile:read
Needs
profile:read.Profile's Payouts: the Stripe Connect Express set-up state, the plan, the creator terms, whether a price may be set and what is missing, this month's statement and the fee schedule.
?balance=trueadds the balance and the next payout from Stripe once payouts are complete. Read with the session cookie, or with an agent token holdingprofile:read; setting up payouts, accepting the terms and opening Stripe are the person's own (no token or tool does them).Arguments
- balancetrue · false · query
Example
GET https://api.zegazone.app/me/payouts Authorization: Bearer <token>
Over MCP, the tool
profile_selling_gettakes the same arguments.Returns
200The person's payouts. Fields:configured,state,account,plan,creator_terms,may_charge,missing,balance,next_payout,statement,fee_schedule,note.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
profile.pingCheck an agent connectionany token
Takes any agent token.
Answers for any live agent token, needs no scope and is never counted against the monthly allowance. Burst limits apply.
Example
GET https://api.zegazone.app/agent/ping Authorization: Bearer <token>
Over MCP, the tool
profile_pingtakes the same arguments.Returns
200The token is live; who it acts for. Fields:ok,user_id,client_name,token_id,scopes,expires_at,queue_waiting.
Errors
invalid_token401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403rate_limited429server_error500server_busy503
profile.usage.getThis month's agent operations against the plan's allowanceprofile:read
Needs
profile:read.A person reads it with the session cookie; an agent with a bearer token holding
profile:read, and its call is counted.Example
GET https://api.zegazone.app/usage Authorization: Bearer <token>
Over MCP, the tool
profile_usage_gettakes the same arguments.Returns
200The month's usage. Fields:plan,window,limit,trial_ends_at,ops_used,resets_at.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
bug.reportReport a problem with Zegazoneany token
Takes any agent token.
Any agent may report a problem, with no scope and without using the monthly allowance. It goes to people who triage it and nowhere else: it makes no ticket, sends no email and changes no collection, and no operation reads it back. Reports that match an open one (same operation, category, error code and title) are counted under it (
duplicate). A report that holds a token, a key or asecret=value is refused whole (secret_material_detected) and not stored. At most 5 an hour about one operation and 30 a day (rate_limited).Arguments
- categoryerror · wrong_result · docs_mismatch · performance · other · body · required
- What kind of problem it is.
- related_opstring · body · required
- The operation or tool it is about, such as items_add.
- titlestring · body · required
- expectedstring · body
- actualstring · body
- error_codestring · body
- severitylow · medium · high · critical · body
- reproobject · body
- A JSON object, at most 4096 characters written out: the steps or arguments that show it.
- notesstring · body
Example
POST https://api.zegazone.app/agent/bug-reports Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "category": "error", "related_op": "<string>", "title": "<string>" }Over MCP, the tool
bug_reporttakes the same arguments.Returns
201Filed. Fields:status,report_id,duplicate_of.
Errors
invalid_json400invalid_request400secret_material_detected400invalid_token401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403missing_client_header403idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409rate_limited429server_error500server_busy503
profile.auth.realtime_tokenMint the live-update tokensession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
A ten-minute token for the live-update socket, minted from the session's stored refresh token. Ask again before it expires and on every reconnect. Concurrent requests for one session make a single provider refresh and receive the same token. If the identity provider rejects the stored refresh token, the session ends (401
session_ended); any other failure is 503live_updates_unavailable, the session is kept, and the client pauses live updates and retries.Example
GET https://api.zegazone.app/auth/realtime-token Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The token, when it expires, and where to connect. Fields:token,expires_at,url,apikey,user_channel.
Errors
session_ended401session_required401wrong_token_type401server_error500live_updates_unavailable503server_busy503
profile.auth.signupCreate an account with an email and a password, and sign insession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Creates the account and signs in at once, with no confirmation step. The account enters the email-verification loop: a confirmation link is mailed to the address, which it confirms within 48 hours to keep adding items; until then publishing and sharing wait. The answer sets the session cookie; it carries no token. A password that is not at least 8 characters with an uppercase letter, a lowercase letter, a number and a special character is refused as
invalid_requestonpassword. An address that already has an account, in any letter case, is refused asinvalid_requestonemailwithreason: account_exists; an address that is not valid is refused the same way without it. Rate-limited per IP.Arguments
- emailstring · body · required
- passwordstring · body · required
- invite_codestring · body
- An invite code the operator gave out (case, spaces and dashes ignored).
- waitlist_tokenstring · body
- The token of a “you're in” link from the waitlist.
- planpersonal · pro · body
- A paid plan the person means to buy. While free places are paused the account is made and kept to buying it (
admission_hold). - turnstile_tokenstring · body
- The Cloudflare Turnstile widget's answer (the bot check).
Example
POST https://api.zegazone.app/auth/signup Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "email": "<string>", "password": "<string>" }This operation is not an MCP tool.
Returns
201Created. Withsigned_in: true,Set-Cookiecarries the session cookie; withsigned_in: falsethe account exists and the person signs in. Fields:signed_in,account,session,detail,first_run_collection.
Errors
invalid_json400invalid_request400wrong_token_type401account_suspended403missing_client_header403rate_limited429server_error500server_busy503
profile.auth.loginSign in with an email and a passwordsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Starts a new session on this device. The answer sets the session cookie; it carries no token. An unknown email and a wrong password get the same answer. A suspended account is refused 403
account_suspended. Rate-limited per IP.Arguments
- emailstring · body · required
- passwordstring · body · required
Example
POST https://api.zegazone.app/auth/login Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "email": "<string>", "password": "<string>" }This operation is not an MCP tool.
Returns
200Signed in.Set-Cookiecarries the session cookie. Fields:account,session.
Errors
invalid_json400invalid_request400wrong_token_type401account_suspended403missing_client_header403rate_limited429server_error500server_busy503
profile.auth.googleContinue with Googlesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
A browser navigation, not a fetch. Starts Google sign-in server-side with PKCE: sets a short-lived signed flow cookie holding the verifier and the sanitised
next, and redirects with the S256 challenge. Where the environment holds its Google client secret, the redirect is Google's own authorization endpoint with this API's callback asredirect_uri, astateand a hashednonce(both kept in the cookie), so no identity-provider host is shown; otherwise the identity provider's authorize URL.nextis kept only if it is a path on the app (one leading/, no//, no backslash); otherwise/. Rate-limited per IP.Arguments
- nextstring · query
- Where to return in the app after signing in; sanitised.
- invite_codestring · query
- An invite code.
- waitliststring · query
- A “you're in” link's token.
- planpersonal · pro · query
- A paid plan to buy.
Example
GET https://api.zegazone.app/auth/google Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
302To Google's authorization endpoint (or, without the Google client secret, the identity provider's authorize URL), or to the app's/?auth_error=google_failedif the flow cannot start.
Errors
rate_limited429server_error500
profile.auth.google_callbackFinish Continue with Googlesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Where Google (or the identity provider) returns the browser. Exchanges the code with the verifier from the flow cookie (at Google's token endpoint, after checking
state, then signs in to the identity provider with the checked ID token and nonce; or with the identity provider in its own flow), creates the account on a first sign-in, sets the session cookie, clears the flow cookie and redirects to the app at the sanitisednext. Any failure redirects to the app's/?auth_error=google_failed; a suspended account to/?auth_error=account_suspended. Rate-limited per IP.Arguments
- codestring · query
- statestring · query
- errorstring · query
- error_codestring · query
- error_descriptionstring · query
Example
GET https://api.zegazone.app/auth/google/callback Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
302To the app: the sanitisednextwhen signed in,/?auth_error=google_failedor/?auth_error=account_suspendedwhen not.
Errors
rate_limited429server_error500
profile.auth.logoutSign out of this sessionsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Deletes this session and clears its cookie. Other sessions and agent connections are unaffected. Signing out without a session is not an error.
Example
POST https://api.zegazone.app/auth/logout Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
204Signed out;Set-Cookieclears the session cookie.
Errors
wrong_token_type401missing_client_header403server_error500server_busy503
profile.auth.verificationThe signed-in account's email-verification statesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The caller's own state only: whether the account is in the verification loop, its deadline, the address the loop mails and when Resend may send again.
Example
GET https://api.zegazone.app/auth/verification Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The caller's state. Fields:state,deadline,address,resend_available_at.
Errors
session_ended401session_required401wrong_token_type401server_error500server_busy503
profile.auth.verification_resendSend a new confirmation link (the strip's Resend)session
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Mails a new 24-hour confirmation link to the address the loop mails, at most once per account per 60 s: inside that, 429
rate_limitedwithretry_after. An account outside the loop getssent: false.Example
POST https://api.zegazone.app/auth/verification/resend Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Sent, or nothing to send. Fields:state,deadline,address,resend_available_at,sent.
Errors
session_ended401session_required401wrong_token_type401missing_client_header403rate_limited429server_error500server_busy503
profile.auth.verifyConfirm an email address from its linksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Needs no session: the link may open in any browser. Idempotent:
confirmedonce, thenalready_confirmed; publishing, sharing and adding are open from the next request. A link older than 24 hours isexpired; one that is not ours, or no longer matches its account's address, is 400invalid_requestontoken. Rate-limited per IP.Arguments
- tokenstring · body · required
- The
tokenof the confirmation link (/verify-email?token=).
Example
POST https://api.zegazone.app/auth/verify Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "token": "<string>" }This operation is not an MCP tool.
Returns
200What happened to the link. Fields:outcome,address.
Errors
invalid_json400invalid_request400wrong_token_type401missing_client_header403rate_limited429server_error500server_busy503
profile.auth.verify_resendAsk for a new confirmation link, signed outsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
From
/verify-email: an address, or an expired link's token. Always the same answer, whether or not the address has an account. A new link goes only to an account in the verification loop, at most once per account per 60 s. Rate-limited per IP.Arguments
- emailstring · body
- The address to send a new link to, if it has an account in the loop.
- tokenstring · body
- Instead of an address: the token of an expired link, which names its account.
Example
POST https://api.zegazone.app/auth/verify/resend Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "email": "<string>", "token": "<string>" }This operation is not an MCP tool.
Returns
202Accepted; the one answer. Fields:detail.
Errors
invalid_json400invalid_request400wrong_token_type401missing_client_header403rate_limited429server_error500server_busy503
profile.admission.freeJoin the free queue from an account on holdsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
For an account on hold (
admission_hold:awaiting_payment, let in to buy a paid plan, orcollaborator, let in by an invitation): its address joins the free queue, confirmed at once when the account's address is verified, otherwise by the confirmation email; the hold is lifted when the entry is released.Example
POST https://api.zegazone.app/me/admission/free Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Queued. Fields:queued,detail.
Errors
invalid_request400session_required401server_error500server_busy503
profile.auth.recoverAsk for a password-reset linksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Always answers 202 with the same words, whether or not the address has an account. Sets an HttpOnly binding cookie on this browser: the link works once, for 1 hour, and only in the browser that asked for it. At most one send per address per 60 s; a request inside that gets the same answer and sends nothing. Rate-limited per IP.
Arguments
- emailstring · body · required
Example
POST https://api.zegazone.app/auth/recover Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "email": "<string>" }This operation is not an MCP tool.
Returns
202Accepted; the one answer.Set-Cookiecarries the binding cookie. Fields:detail.
Errors
invalid_json400invalid_request400wrong_token_type401missing_client_header403rate_limited429server_error500server_busy503
profile.auth.reset_callbackWhere a password-reset link returns the browsersession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
A browser navigation, not a fetch: the link in the reset mail,
?s=the secret it carries. The secret is kept in an HttpOnly cookie, and only when this browser holds the binding cookie of the request that asked for the link and the secret is the one mailed; the answer is always a redirect to Studio's/reset-password, whose state says whether a password can be set. Opening the link spends nothing: opened in another browser, or by a mail scanner, it changes nothing, and the browser that asked can still use it. Rate-limited per IP.Arguments
- sstring · query
- The link's secret: 43 URL-safe characters.
Example
GET https://api.zegazone.app/auth/reset/callback Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
302To Studio's/reset-password.
Errors
rate_limited429server_error500
profile.auth.reset_stateWhether this browser can set a password from a reset linksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Read from the cookies alone, so it is
expiredin any browser that did not ask for the link, andusedonce a password was set through it. Rate-limited per IP.Example
GET https://api.zegazone.app/auth/reset/state Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The state, and the address when it is known. Fields:state,email.
Errors
wrong_token_type401rate_limited429server_error500server_busy503
profile.auth.resetSet a new password from a reset link and sign insession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Uses the link once: redeems the recovery token the API holds for this browser, sets the password as the recovery session, signs in here (
Set-Cookie) and ends every other session of the account in the same transaction. Agent connections stay. A link not opened in the browser that asked, used before, or older than an hour is 410reset_link_expired. A password that is not at least 8 characters with an uppercase letter, a lowercase letter, a number and a special character is refused asinvalid_requestonpasswordbefore the link is used. Rate-limited per IP.Arguments
- passwordstring · body · required
- The new password: 8 to 72 characters, with an uppercase letter, a lowercase letter, a number and a special character.
Example
POST https://api.zegazone.app/auth/reset Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "password": "<string>" }This operation is not an MCP tool.
Returns
200The done state: signed in here, every other session ended. Fields:state,account,session.
Errors
invalid_json400invalid_request400wrong_token_type401account_suspended403missing_client_header403reset_link_expired410rate_limited429server_error500server_busy503
profile.auth.password_changeChange the passwordsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
From Profile › Sign-in. Verifies the current password with the identity provider (
invalid_requestoncurrentwhen it is wrong, and for an account that has no password, which sets one through a reset link), sets the new one with this session's own token, keeps this session and ends every other. Agent connections stay. For a session over 24 hours old the provider also wants the code it emails: the answer is 403reauthentication_required;POST /auth/password/codesends it and this call is repeated withcode. An account whose earlier password a Google sign-in retired, with no password of the person's own since, sets one withoutcurrentfrom a session Google signed in within 10 minutes; from any other session it isinvalid_requestonnewwithreasongoogle_sign_in_needed. Rate-limited per IP.Arguments
- currentstring · body
- The current password. Not asked for, and ignored, when the account's earlier password was retired by a Google sign-in's address proof and none of the person's own has replaced it, from a session Google signed in within 10 minutes.
- newstring · body · required
- The new password: 8 to 72 characters, with an uppercase letter, a lowercase letter, a number and a special character.
- codestring · body
- The code the identity provider emailed, when it asked for it (
reauthentication_required).
Example
POST https://api.zegazone.app/auth/password Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "new": "<string>" }This operation is not an MCP tool.
Returns
200Changed; this session is kept. Fields:changed,other_sessions_ended.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401missing_client_header403reauthentication_required403rate_limited429server_error500server_busy503
profile.auth.methodsHow this account signs insession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
For Profile › Sign-in: the email and whether Google and a password are connected, read from the identity provider's own claims for this session's person. The provider is asked through the session's shared refresh, so a provider that cannot answer is 503 and the session is kept.
Example
GET https://api.zegazone.app/auth/methods Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The account's sign-in methods. Fields:email,google,password.
Errors
session_ended401session_required401wrong_token_type401server_error500server_busy503
profile.auth.password_codeEmail the code a password change wantssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Has the identity provider email this session's person its reauthentication code, through Zegazone's own template. Send it again from here; the provider limits it to one a minute (429
rate_limited). Rate-limited per IP.Example
POST https://api.zegazone.app/auth/password/code Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
202Sent;addresssays where, masked. Fields:sent,address.
Errors
session_ended401session_required401wrong_token_type401missing_client_header403rate_limited429server_error500server_busy503
profile.updateChange the display name, bio or linkssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Takes the display name, the bio (at most 160 characters) and up to three links, and nothing else: preferences are
settings.set's, the username is fixed and the avatar has its own operation. Name only what changes.Arguments
- display_namestring or null · body
- At most 50 characters, trimmed; empty or null clears it.
- biostring or null · body
- At most 160 characters, trimmed; empty or null clears it.
- linksarray of string · body
- Up to 3 absolute http(s) addresses, in the order shown; replaces the list. Repeats count once.
Example
PATCH https://api.zegazone.app/me Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "display_name": "<string>", "bio": "<string>" }This operation is not an MCP tool.
Returns
200The account and its profile as now stored. Fields:id,username,plan,display_name,bio,links,avatar,email,storage_used_bytes.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401missing_client_header403not_found404server_error500server_busy503
profile.sessions.listList this account's sessionssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Arguments
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/sessions Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The account's sessions, most recently active first, with the exact total. Fields:items,pagination.
Errors
invalid_request400session_ended401session_required401wrong_token_type401server_error500server_busy503
profile.sessions.revokeEnd one of this account's sessionssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Arguments
- idstring · path · required
Example
DELETE https://api.zegazone.app/sessions/b4kq7xz2m9np Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
204Ended. Its next request is 401session_ended. Ending the current session also clears its cookie.
Errors
invalid_request400session_ended401session_required401wrong_token_type401missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409server_error500server_busy503
profile.billing.getYour plan's billing: the subscription, the trial, a payment warningsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The signed-in person's plan and how it is paid: the live subscription at the price they subscribed at, its renewal, a failed payment's grace period, the trial while it runs, and whether Upgrade and Manage are offered.
enabled: falsewhere billing is switched off here. The session cookie only.Example
GET https://api.zegazone.app/me/billing Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200Billing. Fields:enabled,off_reason,plan,display_name,trial,subscription,payment_warning,can_upgrade,can_manage,offers,extra_channels,card.
Errors
session_ended401session_required401wrong_token_type401account_suspended403server_error500server_busy503
profile.billing.checkoutUpgrade: open Stripe Checkout for a plan (the person's own session only)session
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Opens Stripe Checkout for
personalorproat the plan table's price now, reusing the person's Stripe customer. The plan changes when Stripe's subscription event arrives, never in this call. 400invalid_requestwithreasonnot_for_sale,already_on_planoralready_subscribed(change a paid plan with Manage). The session cookie only: an agent can never press Upgrade.Arguments
- planstring · body · required
Example
POST https://api.zegazone.app/billing/checkout Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "plan": "personal" }This operation is not an MCP tool.
Returns
200Where the browser goes. Fields:url.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500billing_unavailable503server_busy503
profile.billing.channels.addPlus: one more extra channel on Pro (the person's own session only)session
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Raises the extra-channel quantity on the Pro subscription by one, at the plan table's add-on price, up to the plan's channel ceiling in all; Stripe bills it with the plan from today. Only Pro offers it (
invalid_request, reasonnot_offered).reasonstale_quantitywhenquantityis not the current number plus one,at_mostat the ceiling,payment_overduewhile a payment waits. The session cookie only: no agent buys a channel.Arguments
- quantityinteger · body · required
- The extra channels you will have afterwards: the current number plus one. The current number again is a no-op.
Example
POST https://api.zegazone.app/billing/extra-channels/add Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "quantity": 0 }This operation is not an MCP tool.
Returns
200The quantity, and the billing record after it. Fields:noop,retired,billing.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500billing_unavailable503server_busy503
profile.billing.channels.removeMinus: one extra channel fewer, retiring a chosen alias if need besession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Lowers the extra-channel quantity by one. An unused extra channel simply goes. When every one is in use (
retire_to_remove), it goes only by retiring the alias named inalias_idwithconfirm: true, through the ordinary alias deletion (: its collections are unpublished and stay in your library; the handle is held for 90 days); without one,invalid_requestreasonchoose_alias. An alias with subscribers is never retired (alias_has_subscribers). The quantity never goes below the aliases over the included ones. The session cookie only.Arguments
- quantityinteger · body · required
- The extra channels you will have afterwards: the current number less one.
- alias_idstring · body
- The alias to retire, when every extra channel is in use (
retire_to_remove): deleted asprofile.aliases.deletedeletes it. - confirmboolean · body
- Required with
alias_id.
Example
POST https://api.zegazone.app/billing/extra-channels/remove Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "quantity": 0 }This operation is not an MCP tool.
Returns
200The quantity, the alias retired, and the billing record after it. Fields:noop,retired,billing.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404alias_has_subscribers409server_error500billing_unavailable503server_busy503
profile.billing.portalManage: open Stripe's billing portal (the person's own session only)session
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Opens Stripe's billing portal to change plan, change card or cancel, returning to Profile › Plan. 404
no_billing_accountwhen the account has never paid for a plan. The session cookie only.Example
POST https://api.zegazone.app/billing/portal Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Where the browser goes. Fields:url.
Errors
session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403no_billing_account404server_error500billing_unavailable503server_busy503
profile.purchases.listYour purchases and subscriptionssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Purchases and subscriptions, from the account menu: each one-off purchase with whether it was opened and, while it is refundable (unopened and within 14 days), until when; each subscription with its price, renewal or end, its first period's refund and Show as a tab; and which library tabs appear (Purchased, Subscribed). The web app's own: not open to agents.
Example
GET https://api.zegazone.app/me/purchases Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200Everything you bought. Fields:purchases,subscriptions,tabs.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404server_error500server_busy503
profile.purchases.refundRefund a purchase you have not openedsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Only while unopened (no Paid item's stage rendition or original was served clear to you on any client: tiles and the free sample never count) and within 14 days of buying; otherwise 409
not_refundablewithreason. The full price comes back; the publisher's share is netted from their next payout and Zegazone absorbs Stripe's kept fee. The collection stops reading clear from your next request. The person's own: never an agent's.Arguments
- idstring · path · required
- Its id.
Example
POST https://api.zegazone.app/me/purchases/<string>/refund Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The purchase, refunded. Fields:id,collection,amount_cents,label,bought_at,status,opened,refundable,refundable_until,refunded_at,on_sale.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404not_refundable409server_error500selling_unavailable503server_busy503
profile.subscriptions.cancelCancel a subscription at the end of its periodsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
It stops renewing and keeps giving access until the end of the period you paid for; then Paid items read blurred from your next request. No partial refund: the first period's refund is
profile.subscriptions.refund. Already cancelled: no change. The person's own.Arguments
- idstring · path · required
- Its id.
Example
POST https://api.zegazone.app/me/subscriptions/<string>/cancel Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The subscription, ending. Fields:id,handle,amount_cents,label,status,live,renews,current_period_end,refundable,refundable_until,collections,show_as_tab.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404not_refundable409server_error500selling_unavailable503server_busy503
profile.subscriptions.refundRefund a subscription's first periodsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The first period only, never renewed, while no Paid item of the channel was served clear to you and within 14 days; otherwise 409
not_refundable. It ends now and the period's price comes back in full. The person's own.Arguments
- idstring · path · required
- Its id.
Example
POST https://api.zegazone.app/me/subscriptions/<string>/refund Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The subscription, ended and refunded. Fields:id,handle,amount_cents,label,status,live,renews,current_period_end,refundable,refundable_until,collections,show_as_tab.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404not_refundable409server_error500selling_unavailable503server_busy503
profile.subscriptions.set_tabShow a subscribed channel as a library tab, or stopsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Show as a tab: pins the channel as a library tab of its own; off hides the tab and keeps the subscription. The person's own.
Arguments
- idstring · path · required
- Its id.
- shownboolean · body · required
Example
POST https://api.zegazone.app/me/subscriptions/<string>/tab Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "shown": true }This operation is not an MCP tool.
Returns
200The subscription. Fields:id,handle,amount_cents,label,status,live,renews,current_period_end,refundable,refundable_until,collections,show_as_tab.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404server_error500server_busy503
profile.aliases.price.getYour handle's subscription pricesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The monthly price of one of your handles (the system username or an alias) with its read-back, how many subscribe, and what you still need before you can charge. The web app's own: not open to agents.
Arguments
- idstring · path · required
- The handle's id.
Example
GET https://api.zegazone.app/me/aliases/<string>/price Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The handle's price. Fields:id,handle,subscription,subscribers,seller,stopped_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404server_error500server_busy503
profile.aliases.set_priceSet or remove your handle's subscription pricesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
A monthly price from the same fixed points as a collection's, US cents; null stops offering it while nobody subscribes;
selling: falseis Stop the subscription: no new subscription or renewal, subscribers keep access until their paid month runs out. Needs what a collection's price needs (403seller_not_ready; 503selling_unavailable). The web app's own: not open to agents.Arguments
- idstring · path · required
- The handle's id.
- amount_centsinteger or null · body
- US cents, one of the fixed points: 200, 300, 500, 700, 900, 1200, 1500, 1900, 2500, 2900, 3900, 4900, 6900, 9900, 14900, 19900, 29900, 49900; null for Free. Any other amount is
invalid_requestonamount_cents. - sellingfalse · body
- :
falseis Stop selling: the price stays, nobody can buy or start a subscription, every buyer keeps access and subscribers run to the end of the month they paid. Send it withoutamount_cents; setting a price again sells again.
Example
POST https://api.zegazone.app/me/aliases/<string>/price Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "amount_cents": 1, "selling": false }This operation is not an MCP tool.
Returns
200The handle's price as it now is. Fields:id,handle,subscription,subscribers,seller,stopped_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403seller_not_ready403not_found404server_error500selling_unavailable503server_busy503
profile.export.archiveDownload the exportsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Profile's Download: the archive whole, streamed as an attachment, for the signed-in person whose export it is (the session cookie only). Past its 7 days it is 410
download_expired.Arguments
- idstring · path · required
Example
GET https://api.zegazone.app/me/exports/e7kq2xz4m9np/archive Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The archive, a JSON document, as a file (an attachment named zegazone-export-….json).
Errors
session_ended401session_required401wrong_token_type401account_suspended403not_found404download_expired410server_error500server_busy503
profile.deletion.confirmDelete the account (the person's own session only)session
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Profile's red Delete account. The session cookie only: a bearer token is 401
wrong_token_type.emailmust be the account's own (spaces and case ignored), else 400invalid_requestwithreasonemail_mismatchand nothing changes. Then every session ends (the cookie is cleared) and, until it completes or is cancelled, the account looks deleted to everyone: its public collection and publisher pages answer the not-found page, its handles stay held and its agent tokens are refused. Deletion completes in 14 days. Sign in before then to cancel it. Signing in within the 14 days cancels it and everything works again.Arguments
- emailstring · body · required
- The account's email, typed by the person: the confirmation.
Example
POST https://api.zegazone.app/me/deletion Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "email": "mia@example.com" }This operation is not an MCP tool.
Returns
200The window is open. Fields:state,requested_at,due_at,sessions_ended.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500server_busy503
profile.tokens.listList this account's agent tokenssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Arguments
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/tokens Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The account's tokens, newest first, with the exact total. Never a token value. Fields:items,pagination.
Errors
invalid_request400session_ended401session_required401wrong_token_type401server_error500server_busy503
profile.tokens.createMint a personal agent tokensession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Needs a signed-in session and proof of the person within the last 10 minutes: the session signed in that recently, or
current_passwordfor an account with a password. Otherwise 403reauthentication_requiredwithreasonpassword_required(sendcurrent_password) orsign_in_again(an account without a password: sign in again). A wrong password is 400invalid_requestoncurrent_password; attempts are rate-limited per IP (429). A bearer token, personal or OAuth, never mints one (401wrong_token_type). The answer carries the token once; only its peppered hash is stored. The token is also a connection (GET /connections), and an account holds at most its plan's live-token limit (quota_exceeded). The longest expiry is 365 days.Arguments
- scopesarray of string · body · required
- The scopes to grant, each exactly one of: collections:read, collections:write, collections:delete, items:read, items:write, items:delete, profile:read, profile:write, sharing:write, settings:read, settings:write, player:control. No wildcard.
- client_namestring · body · required
- What the token is for, as the person will see it.
- expires_in_secondsinteger · body
- Lifetime in seconds: at most 31536000 (365 days); 7776000 (90 days) when absent.
- current_passwordstring · body
- The account's current password, when the session signed in more than 10 minutes ago. Checked by the identity provider, never stored or logged; rate-limited per IP as a password change is.
- idempotency_keystring · body
- Replays the first answer for 7 days; the
Idempotency-Keyheader does the same and wins. Trimmed, cut to 128 characters.
Example
POST https://api.zegazone.app/tokens Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "scopes": [ "collections:read", "collections:write", "items:read", "items:write" ], "client_name": "Claude Code" }This operation is not an MCP tool.
Returns
201Minted.tokenis shown here only. Fields:id,client_name,scopes,status,created_at,expires_at,last_used_at,revoked_at,token.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403reauthentication_required403idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409quota_exceeded429rate_limited429server_error500server_busy503
profile.tokens.revokeRevoke one of this account's agent tokenssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Arguments
- idstring · path · required
Example
DELETE https://api.zegazone.app/tokens/b4kq7xz2m9np Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
204Revoked (or already revoked). Its next request is 401token_revoked, from anywhere.
Errors
invalid_request400session_ended401session_required401wrong_token_type401missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409server_error500server_busy503
profile.connections.listList this account's connectionssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Everything that can act as the person: each OAuth grant (a client allowed on the consent page) and each personal token, newest first, with the exact total. A disconnected or expired connection is not listed. Each carries its scopes as one plain-words line.
Arguments
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/connections Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The connections. Fields:items,pagination.
Errors
invalid_request400session_ended401session_required401wrong_token_type401server_error500server_busy503
profile.connections.updateChange a connection's "Can move the Player"session
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Turns "Can move the Player" on or off for one connection. Off, every Player command from that client is refused
stopped by the personuntil it is turned back on.Arguments
- idstring · path · required
- can_move_playerboolean · body · required
- Whether this client may move the Player.
Example
PATCH https://api.zegazone.app/connections/b4kq7xz2m9np Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "can_move_player": true }This operation is not an MCP tool.
Returns
200The connection as now stored. Fields:id,kind,name,mark,scopes,scopes_line,connected_at,last_used_at,can_move_player,expires_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409server_error500server_busy503
profile.connections.disconnectDisconnect one connectionsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Revokes the connection and every token under it: its next request, on MCP or REST, is refused 401
token_revoked. The person's other connections keep working and their library is untouched. Disconnecting what is already disconnected answers 204 again.Arguments
- idstring · path · required
Example
DELETE https://api.zegazone.app/connections/b4kq7xz2m9np Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
204Disconnected (or already disconnected).
Errors
invalid_request400session_ended401session_required401wrong_token_type401missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409server_error500server_busy503
profile.connections.disconnect_allDisconnect everythingsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Revokes every connection of the person, on every client, with the same next-request effect as disconnecting one. The library is untouched.
Example
POST https://api.zegazone.app/connections/disconnect-all Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200How many connections were ended. Fields:disconnected.
Errors
session_ended401session_required401wrong_token_type401missing_client_header403idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409server_error500server_busy503
profile.terms.acceptAgree to a version of the Termssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The Terms card's Agree and continue: records one acceptance of exactly this version for the account, once; the card never returns for it. A version no showing blocking announcement asks of the person is 400
invalid_request. The person's alone: a bearer token is 401wrong_token_type, so no agent can agree for them.Arguments
- versionstring · body · required
- The terms version on the Terms card.
Example
POST https://api.zegazone.app/me/terms Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "version": "2026-12" }This operation is not an MCP tool.
Returns
200Accepted. Fields:version,accepted_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500server_busy503
profile.payouts.onboardSet up payouts (Stripe's hosted onboarding)session
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Set up payouts: makes the person's Stripe Express account once and answers a fresh onboarding link; open
url, and Stripe returns toreturn_pathwithpayouts=return(orpayouts=refreshwhen the link expired: ask again). Needs a paid plan: on Free, 403charging_not_allowedwithreasonpaid_plan. The session cookie only. 503payouts_unavailablewhile creator selling is not switched on here (checked first), where Stripe is not set up here, refuses our key (401 or 403), or did not answer (try again); 502payouts_refusedwhen Stripe refused the request (asking again gets the same answer until the cause is fixed at Stripe; the reason is logged).Arguments
- return_pathstring · body
- Where in Studio to come back to (a path, e.g. /profile#payouts);
payouts=returnorpayouts=refreshis added to it.
Example
POST https://api.zegazone.app/me/payouts/onboarding Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "return_path": "<string>" }This operation is not an MCP tool.
Returns
200Stripe's onboarding page. Fields:url,state.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403charging_not_allowed403missing_client_header403server_error500payouts_refused502payouts_unavailable503server_busy503
profile.payouts.refreshRead the payouts state from Stripe nowsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Back from Stripe's onboarding: the account's state read from Stripe at once, without waiting for its event. The session cookie only. 503
payouts_unavailablewhile creator selling is not switched on here.Example
POST https://api.zegazone.app/me/payouts/refresh Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The state now. Fields:state.
Errors
session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500payouts_refused502payouts_unavailable503server_busy503
profile.payouts.dashboardOpen your Stripe dashboardsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
A one-time link to the person's Stripe Express dashboard: payouts, tax details and statements live there. 409
payouts_not_set_upbefore onboarding is done. The session cookie only.Example
POST https://api.zegazone.app/me/payouts/dashboard Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The dashboard link. Fields:url.
Errors
session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403payouts_not_set_up409server_error500payouts_refused502payouts_unavailable503server_busy503
profile.creator_terms.acceptAccept the creator termssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The one-time checkbox before the first price: "what I sell is mine to sell, buyers keep access, and refunds follow the 14-day rule".
versionmust be the version in force (creator_terms.versionofprofile.selling.get, now 2026-11-13); accepting again answers the first acceptance. The session cookie only: an agent cannot accept terms for the person.Arguments
- versionstring · body · required
Example
POST https://api.zegazone.app/me/creator-terms Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "version": "2026-11-13" }This operation is not an MCP tool.
Returns
200Accepted. Fields:version,accepted_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500server_busy503
OAuth9 operations
The authorisation server for AI clients: registration, authorisation with PKCE, tokens, revocation and the consent page's two calls.
oauth.metadata.protected_resourceProtected-resource metadata (RFC 9728): the MCP endpoint on the MCP host, the REST API on the api hostOAuth client
Part of the OAuth flow described above. It takes no agent token.
No credential. Names this environment's own hosts only. docs/ops/OAUTH.md.
Example
GET https://mcp.zegazone.app/.well-known/oauth-protected-resource
This operation is not an MCP tool.
Returns
200The metadata.
Errors
server_error500
oauth.metadata.protected_resource_mcpProtected-resource metadata (RFC 9728) of this host's MCP endpointOAuth client
Part of the OAuth flow described above. It takes no agent token.
No credential. Names this environment's own hosts only. docs/ops/OAUTH.md.
Example
GET https://mcp.zegazone.app/.well-known/oauth-protected-resource/mcp
This operation is not an MCP tool.
Returns
200The metadata.
Errors
server_error500
oauth.registerRegister a client (RFC 7591)OAuth client
Part of the OAuth flow described above. It takes no agent token.
No credential, no client header. Redirect URIs only from the allowlist (docs/ops/OAUTH.md); a repeat registration of a public client (
none) with the same metadata answers the existing client; a confidential client's registration always makes a new client, whose secret is in that answer only and stored as its SHA-256. 60 an hour per address (an IPv6 client by its /64), and at most 500 new clients an hour in all.token_endpoint_auth_methoddefaults tonone(a public client: PKCE is required of every client either way).Arguments
- redirect_urisarray of string · body · required
- client_namestring · body
- logo_uristring · body
- token_endpoint_auth_methodnone · client_secret_basic · client_secret_post · body
- grant_typesarray of string · body
- Must include
authorization_code. The client is registered with the ones this server offers (authorization_code,refresh_token); any other is dropped, not refused (RFC 7591 §2). At most 20 entries of at most 200 characters. - response_typesarray of string · body
- Must include
code, the only one this server answers. At most 20 entries of at most 200 characters.
Example
POST https://mcp.zegazone.app/oauth/register Content-Type: application/json { "redirect_uris": [ "<string>" ] }This operation is not an MCP tool.
Returns
201Registered, or the existing public client with the same metadata. Fields:client_id,client_id_issued_at,client_secret,client_secret_expires_at,client_name,redirect_uris,grant_types,response_types,token_endpoint_auth_method.
Errors
invalid_client_metadata400invalid_redirect_uri400rate_limited429server_error500
oauth.tokenExchange a code or rotate a refresh token (RFC 6749 §4.1.3, §6)OAuth client
Part of the OAuth flow described above. It takes no agent token.
No cookie, no client header.
grant_type=authorization_codewithcode,redirect_uriandcode_verifier, orgrant_type=refresh_tokenwithrefresh_token(and optionally a narrowerscope); either may carryresource. The client authenticates withclient_idalone (public), or its secret by HTTP Basic orclient_secret. A code is spent once; a rotated refresh token is honoured for 5 minutes, then refused. 45 a minute per address.Arguments
- grant_typeauthorization_code · refresh_token · body · required
- codestring · body
- redirect_uristring · body
- code_verifierstring · body
- refresh_tokenstring · body
- scopestring · body
- resourcestring · body
- client_idstring · body
- client_secretstring · body
Example
POST https://mcp.zegazone.app/oauth/token Content-Type: application/x-www-form-urlencoded grant_type=authorization_code
This operation is not an MCP tool.
Returns
200Tokens. Never cached. Fields:access_token,token_type,expires_in,refresh_token,scope.
Errors
invalid_grant400invalid_request400invalid_scope400invalid_target400unauthorized_client400unsupported_grant_type400invalid_client401rate_limited429server_error500server_busy503
oauth.revokeRevoke a refresh or access token (RFC 7009)OAuth client
Part of the OAuth flow described above. It takes no agent token.
No cookie, no client header; the client authenticates as at the token endpoint. A refresh token revokes its whole connection (its access tokens with it); an access token, itself. 200 whether or not the token was known (RFC 7009 §2.2). 45 a minute per address.
Arguments
- tokenstring · body · required
- token_type_hintaccess_token · refresh_token · body
- client_idstring · body
- client_secretstring · body
Example
POST https://mcp.zegazone.app/oauth/revoke Content-Type: application/x-www-form-urlencoded token=<string>
This operation is not an MCP tool.
Returns
200Revoked, or nothing to revoke.
Errors
invalid_request400invalid_client401rate_limited429server_error500server_busy503
oauth.consent.getRead a pending authorisation for the consent pageOAuth client
Part of the OAuth flow described above. It takes no agent token.
Studio's consent page renders from this: the client, the redirect host, the scopes Allow would grant and the resource. A session route. 404
not_foundfor a flow that is unknown, used or past its 10 minutes.Arguments
- flowstring · query · required
- The
flowof Studio's/oauth/consent?flow=address.
Example
GET https://mcp.zegazone.app/oauth/consent?flow=<string>
This operation is not an MCP tool.
Returns
200The pending authorisation. Fields:client,redirect_uri,redirect_host,scopes,resource,expires_at.
Errors
invalid_request400session_ended401session_required401wrong_token_type401not_found404server_error500server_busy503
oauth.consent.decideAllow or deny a pending authorisationOAuth client
Part of the OAuth flow described above. It takes no agent token.
A session route with the client header; a request whose
Originis neither Studio nor the apex is 403forbidden, and a suspended or deleted person issession_ended. Allow wants a session signed in within 24 hours: an older one is 403reauthentication_requiredwithreasonsign_in_again, the flow kept; Deny works at any age. Allow issues a 10-minute single-use code bound to the person, the client, the redirect URI, the PKCE challenge, the scopes and the resource; Deny answerserror=access_denied. Either way the flow is spent, andredirect_tois where Studio sends the browser (the client's redirect URI withcodeorerror,stateandiss).Arguments
- flowstring · body · required
- The
flowof Studio's/oauth/consent?flow=address. - decisionallow · deny · body · required
Example
POST https://mcp.zegazone.app/oauth/consent Content-Type: application/json { "flow": "<string>", "decision": "allow" }This operation is not an MCP tool.
Returns
200Decided. Fields:redirect_to.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401forbidden403missing_client_header403reauthentication_required403not_found404server_error500server_busy503
Bookmarks6 operations
bookmarks.listYour bookmarkscollections:read
Needs
collections:read.Your bookmarks, newest first, each with the collections it shows you now: the ones you can still read, so a collection deleted, archived or no longer shared with you is not in it and is not counted.
qkeeps those whose title contains it. At most 500 bookmarks of up to 100 collections each.Arguments
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact. - qstring · query
- Only the bookmarks whose title contains this, in any case.
Example
GET https://api.zegazone.app/bookmarks Authorization: Bearer <token>
Over MCP, the tool
bookmarks_listtakes the same arguments.Returns
200Your bookmarks with the exact total. Fields:items,pagination.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
bookmarks.createSave a bookmarkcollections:write
Needs
collections:write.Saves a titled list of 1 to 100 collections for the person to find again. Past 100 collections, or 500 bookmarks, is 429
quota_exceeded. An id that names no collection you can read now is 404not_found, the same answer whether it is private or was never made. There is no rename for an agent: the person renames in Studio.Arguments
- titlestring · body · required
- 1 to 500 characters, trimmed.
- collection_idsarray of string · body · required
- 1 to 100 distinct collections, by id, kept in this order. Each must name a collection you can read now; any other id, one you cannot read or one never made, is the same 404
not_found. A collection you later lose access to stays in the bookmark and is not shown.
Example
POST https://api.zegazone.app/bookmarks Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "title": "Suggested collections", "collection_ids": [ "b4kq7xz2m9np" ] }Over MCP, the tool
bookmarks_createtakes the same arguments.Returns
201The new bookmark. Fields:id,title,source,collection_ids,collection_count,created_at,updated_at.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
bookmarks.deleteDelete a bookmarkcollections:write
Needs
collections:write.The bookmark goes at once; every collection it named stays exactly as it was. Your bookmarks only.
Arguments
- idstring · path · required
Example
POST https://api.zegazone.app/bookmarks/h3m8wq2z5rtc/delete Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
bookmarks_deletetakes the same arguments.Returns
200Deleted. Fields:id,deleted.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
bookmarks.getOne of your bookmarkssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Studio's own read of a bookmark for its address. Agents list (
bookmarks.list) and use the ids that answers.Arguments
- idstring · path · required
Example
GET https://api.zegazone.app/bookmarks/h3m8wq2z5rtc Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The bookmark. Fields:id,title,source,collection_ids,collection_count,created_at,updated_at.
Errors
invalid_request400session_ended401session_required401wrong_token_type401account_suspended403not_found404server_error500server_busy503
bookmarks.renameRename a bookmarksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The person renames a bookmark in Studio. Not open to agents: gives them save, list and delete only.
Arguments
- idstring · path · required
- titlestring · body · required
- 1 to 500 characters, trimmed.
Example
PATCH https://api.zegazone.app/bookmarks/h3m8wq2z5rtc Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "title": "Suggested collections" }This operation is not an MCP tool.
Returns
200The bookmark as renamed. Fields:id,title,source,collection_ids,collection_count,created_at,updated_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404server_error500server_busy503
bookmarks.addAdd collections to a bookmarksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The person adds collections to a bookmark in Studio (Bookmark, in a collection's More): after those it holds, each once, up to 100 in all. Not open to agents: they save a new bookmark.
Arguments
- idstring · path · required
- collection_idsarray of string · body · required
- Collections to add after those the bookmark holds, each once; past 100 in all is 429 quota_exceeded.
Example
POST https://api.zegazone.app/bookmarks/h3m8wq2z5rtc/collections Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "collection_ids": [ "b4kq7xz2m9np" ] }This operation is not an MCP tool.
Returns
200The bookmark as it is now. Fields:id,title,source,collection_ids,collection_count,created_at,updated_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404quota_exceeded429server_error500server_busy503
Checkout2 operations
checkout.createOpen Stripe's checkout for a purchase or a subscriptionsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Buy a collection (
kind: purchase, its one-off price) or subscribe to a channel (kind: subscription: the channelcollection_idis published under, orhandle). Answers Stripe's hosted page (url): the browser goes there, and Stripe brings it back toreturn_towith?checkout={id}. Refused withalready_entitledwhen you already receive it clear,not_for_salewhen nothing sells there, 503selling_unavailablewhile selling is off. The person's own, through the session: not an agent operation and not an MCP tool.Arguments
- kindpurchase · subscription · body · required
- collection_idstring · body
- The collection to buy, or (for a subscription) whose channel to subscribe to.
- handlestring · body
- A subscription to this handle directly (a publisher page's Subscribe).
- return_tostring · body · required
- Where Stripe brings you back, on Studio or the public site;
?checkout={id}is added.
Example
POST https://api.zegazone.app/checkout Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "kind": "purchase", "return_to": "<string>" }This operation is not an MCP tool.
Returns
200The checkout, open. Fields:id,kind,status,url,expires_at,entitled,collection_id,handle.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404already_entitled409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409not_for_sale409server_error500selling_unavailable503server_busy503
checkout.getWhat became of your checkoutsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The page Stripe brought you back to asks this.
completewithentitled: truemeans you receive what you paid for clear from now on: the entitlement is granted from the confirming payment, whether Stripe's event or this read reached it first.openwhile Stripe has not confirmed it;expiredwhen it was abandoned. Yours only.Arguments
- idstring · path · required
- The checkout's id.
Example
GET https://api.zegazone.app/checkout/<string> Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The checkout. Fields:id,kind,status,url,expires_at,entitled,collection_id,handle.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404server_error500server_busy503
Drop5 operations
items.drop_infoWhat a drop page opens withsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Read by
/drop/<token>, with no credential. Always 200 with the same fields: a token that is not one and a token that was never a link both answerstate: invalidwith nothing else, so the answer never says whether a link exists. A closed link says onlyexpired,used_uporrevoked.Arguments
- tokenstring · path · required
- The link's token: the last part of its address.
Example
GET https://api.zegazone.app/drop/<string> Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The link, or why it is closed. Fields:state,collection,note,expected_filenames,seconds_left,files_received,max_files.
Errors
rate_limited429server_error500server_busy503
items.drop_uploadStart a file's upload through a drop linksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The first of three steps for one file, as items.upload is for an add: a pending item in the collection the link names (no collection id is read) and where to PUT its bytes. Needs no credential but the token. Checked against the owner's plan as any upload is: over the per-file cap 413
file_too_large, over the owner's storage 413storage_quota_exceeded; the link maker's account must have confirmed its email once its window has passed (403email_verification_required). A slot of the link is taken now and kept even if the bytes never arrive. A link that cannot take the call answers 403forbiddenwithstate(expired, used_up, revoked, invalid) beside the detail. Then PUT the bytes (a presigned URL valid 15 minutes) and call items.drop_finalise.Arguments
- tokenstring · path · required
- The link's token: the last part of its address.
- filenamestring · body · required
- size_bytesinteger · body · required
- content_typestring or null · body
Example
POST https://api.zegazone.app/drop/<string>/uploads Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "filename": "<string>", "size_bytes": 1 }This operation is not an MCP tool.
Returns
201The pending item and its PUT. Fields:item_id,number,status,upload_id,expires_at,transfer.
Errors
invalid_json400invalid_request400email_verification_required403forbidden403missing_client_header403file_too_large413storage_quota_exceeded413quota_exceeded429rate_limited429server_error500server_busy503
items.drop_renewFresh PUT URLs for a file of a drop linksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
As items.renew, for an upload this link started. A link that cannot take the call answers 403
forbiddenwithstate(expired, used_up, revoked, invalid) beside the detail.Arguments
- tokenstring · path · required
- The link's token: the last part of its address.
- item_idstring · path · required
- The item_id items.drop_upload answered.
Example
POST https://api.zegazone.app/drop/<string>/uploads/<string>/renew Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The PUT, signed again. Fields:item_id,expires_at,transfer.
Errors
invalid_json400invalid_request400forbidden403missing_client_header403upload_expired410file_too_large413storage_quota_exceeded413quota_exceeded429rate_limited429server_error500server_busy503
items.drop_finaliseFinish a file of a drop linksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
As items.finalise, for an upload this link started: the item joins the end of the collection, the owner is charged, and an open Studio announces it. An expired or used-up link still finishes what it began; a turned-off one does not. The answer says nothing of the item beyond its size and type, and the state of the link now. A link that cannot take the call answers 403
forbiddenwithstate(expired, used_up, revoked, invalid) beside the detail.Arguments
- tokenstring · path · required
- The link's token: the last part of its address.
- item_idstring · path · required
- The item_id items.drop_upload answered.
- partsarray of object · body
Example
POST https://api.zegazone.app/drop/<string>/uploads/<string>/finalise Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "parts": [ { "part_number": 1, "etag": "<string>" } ] }This operation is not an MCP tool.
Returns
200The file is in. Fields:noop,item_id,size_bytes,sniffed_type,state,seconds_left,files_received,max_files.
Errors
integrity_mismatch400invalid_json400invalid_request400forbidden403missing_client_header403upload_not_found409upload_expired410file_too_large413storage_quota_exceeded413quota_exceeded429rate_limited429server_error500server_busy503
items.drop_abortCancel a file of a drop linksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
As items.abort, for an upload this link started. The link's slot stays spent. A link that cannot take the call answers 403
forbiddenwithstate(expired, used_up, revoked, invalid) beside the detail.Arguments
- tokenstring · path · required
- The link's token: the last part of its address.
- item_idstring · path · required
- The item_id items.drop_upload answered.
Example
POST https://api.zegazone.app/drop/<string>/uploads/<string>/abort Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The upload is gone. Fields:item_id,aborted,object_deleted.
Errors
invalid_json400invalid_request400forbidden403missing_client_header403file_too_large413storage_quota_exceeded413quota_exceeded429rate_limited429server_error500server_busy503
Notifications7 operations
notifications.announcements.listWhat Zegazone is announcing to youprofile:read
Needs
profile:read.Studio reads this once when it boots, with the person's read, dismissed and accepted state, and re-evaluates each window every 30 s itself. A person reads it with the session cookie; an agent with a bearer token holding
profile:read, and its call is counted. An agent can never mark, dismiss or accept.Example
GET https://api.zegazone.app/announcements Authorization: Bearer <token>
This operation is not an MCP tool.
Returns
200The announcements. Fields:now,data.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
notifications.listThe bell's listsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The caller's 50 newest unarchived notifications, newest first, with the count of unread ones. Invitations and access requests that still wait carry
action. The web app's own: not open to agents.Example
GET https://api.zegazone.app/notifications Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The list. Fields:data,unread.
Errors
session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500server_busy503
notifications.read_allMark everything readsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Marks every unread notification read (opening the list does this after 2 seconds). Idempotent. Not open to agents.
Arguments
- throughstring · body
- Only rows made at or before this time are marked: the newest
created_atthe open list showed, so a row that arrived meanwhile stays unread.
Example
POST https://api.zegazone.app/notifications/read Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "through": "<string>" }This operation is not an MCP tool.
Returns
200How many were marked. Fields:count.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500server_busy503
notifications.archive_readArchive every read notificationsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Takes every read notification out of the list, except an access request that still waits for an answer. Not open to agents.
Example
POST https://api.zegazone.app/notifications/archive-read Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200How many were archived. Fields:count.
Errors
session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500server_busy503
notifications.archiveArchive one notificationsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Takes one notification out of the list. An access request that still waits cannot be archived until it is answered: 400
invalid_requestwithstate: pending. Another person's notification is the same 404 as a missing one. Not open to agents.Arguments
- idstring · path · required
Example
POST https://api.zegazone.app/notifications/b4kq7xz2m9np/archive Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Archived. Fields:archived.
Errors
invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403not_found404server_error500server_busy503
notifications.announcements.readMark an announcement readsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Its bell row is read. Idempotent. One that is not showing (ended, not started, or not the caller's) is 404. Not open to agents.
Arguments
- idstring · path · required
Example
POST https://api.zegazone.app/announcements/b4kq7xz2m9np/read Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Read. Fields:ok.
Errors
invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403not_found404server_error500server_busy503
notifications.announcements.dismissDismiss a banner announcementsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The announcement strip's ✕: this banner never shows to the person again. It is read too. Only a banner is dismissed (400
invalid_requestotherwise). Not open to agents.Arguments
- idstring · path · required
Example
POST https://api.zegazone.app/announcements/b4kq7xz2m9np/dismiss Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Dismissed. Fields:ok.
Errors
invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403not_found404server_error500server_busy503
Photos2 operations
photos.searchSearch free photositems:read
Needs
items:read.Free photos for a keyword, from Pexels first and Pixabay second, 24 a page, one provider's photos an answer. Choose one with
source: free_photo,providerandphoto_idoncollections.set_coveroritems.set_thumbnail: the server fetches it from the provider and stores it as an uploaded image, so nothing shown later comes from the provider's host. Showattribution(the provider's line and link) whenever you show the results: the providers' terms require it. Each photo also carriescredit, the provider's data on who took it; no term requires showing it, and Zegazone does not. Pixabay is searched with safe search on. Answers are kept 24 hours. At most 30 searches a minute per account (429rate_limited). 503photo_search_unavailablewhen no provider is configured here (reason: not_configured), or the provider is down or out of quota (provider_down,provider_quota: try again in a minute). An agent needsitems:read.Arguments
- qstring · query
- The keywords (at most 100 characters are searched). Absent or empty: no provider is asked, and the answer only says which providers this server can search (
providers, empty when none is configured). - pageinteger · query
- The page, 1 to 20; 24 photos a page.
- providerpexels · pixabay · query
- Only this provider. Absent: the first configured (Pexels, then Pixabay), and the next one when the first is down or out of quota.
- orientationlandscape · portrait · square · query
- Only photos of this shape (Pixabay has no square: any shape there).
Example
GET https://api.zegazone.app/photos/search Authorization: Bearer <token>
Over MCP, the tool
photos_searchtakes the same arguments.Returns
200A page of photos. Fields:provider,providers,query,page,per_page,total,next_page,photos,attribution.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500photo_search_unavailable503server_busy503
photos.previewA free photo's preview, for Studiosession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The bytes of one photos.search result's thumbnail_url or preview_url, fetched by the server for Studio's picker, whose page policy shows images only from Zegazone's own hosts. Only an address on Pexels' or Pixabay's image paths (images.pexels.com/photos/, cdn.pixabay.com/photo/, pixabay.com/get/; every redirect checked before it is followed), at most 2 MB, JPEG, PNG or WebP (GIF and SVG refused); never stored. At most 240 a minute per account (429
rate_limited). The session's alone: an agent token is refused (401wrong_token_type) and an agent reads the URLs themselves.Arguments
- urlstring · query · required
- A thumbnail_url or preview_url photos.search answered.
Example
GET https://api.zegazone.app/photos/preview?url=<string> Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The picture.
Errors
invalid_request400session_ended401session_required401wrong_token_type401rate_limited429server_error500server_busy503
Prompts4 operations
prompts.listYour saved promptssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The person's own saved prompts, by title (at most 100). The person's own session only: not open to agents.
Example
GET https://api.zegazone.app/prompts Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The prompts. Fields:items,max.
Errors
invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403server_error500server_busy503
prompts.createSave a promptsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Saves a prompt of the person's own. Control and format characters are stripped; a placeholder other than those its
fitsallows is refused with a sentence naming them. At most 100 a person (429quota_exceeded); at most 60 writes a minute (429rate_limited). The person's own session only: not open to agents.Arguments
- titlestring · body · required
- 1 to 80 characters, one line.
- bodystring · body · required
- 1 to 4000 characters.
- fitscollection · item · items · body · required
- What it is about:
collection,item(one) oritems(several). It decides where the AI menu offers it and which placeholders it may use.
Example
POST https://api.zegazone.app/prompts Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "title": "<string>", "body": "<string>", "fits": "collection" }This operation is not an MCP tool.
Returns
201Saved. Fields:id,title,body,fits,created_at,updated_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403quota_exceeded429rate_limited429server_error500server_busy503
prompts.updateEdit a saved promptsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Changes the person's own prompt, checked whole again. A queue entry added from it keeps the text it was added with. The person's own session only: not open to agents.
Arguments
- idstring · path · required
- titlestring · body
- 1 to 80 characters, one line.
- bodystring · body
- 1 to 4000 characters.
- fitscollection · item · items · body
- What it is about:
collection,item(one) oritems(several). It decides where the AI menu offers it and which placeholders it may use.
Example
PATCH https://api.zegazone.app/prompts/p3m8wq2z5rtc Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "title": "<string>", "body": "<string>" }This operation is not an MCP tool.
Returns
200The prompt as it is now. Fields:id,title,body,fits,created_at,updated_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404rate_limited429server_error500server_busy503
prompts.deleteDelete a saved promptsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Deletes the person's own prompt. A queue entry added from it keeps its text. The person's own session only: not open to agents.
Arguments
- idstring · path · required
Example
POST https://api.zegazone.app/prompts/p3m8wq2z5rtc/delete Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Deleted. Fields:id,deleted.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404rate_limited429server_error500server_busy503
Publishers2 operations
publishers.getGet a publisher's page by its handlecollections:read
Needs
collections:read.The channel at
/{handle}(–150), a username or an alias alike: its avatar, display name, bio and up to three links (the links a username's only; an alias shows its own display name, bio and picture), the follower count and the count of its Public collections, and its published top-level collections newest first, Public ones with Discovery off included, Registered and Restricted ones as gates for someone outside them. A workspace's handle is its workspace page: what is published under it at any depth, to its owner and members the members-only publications too and the workspace's name, to anyone else only what they may read (no gate), and the not-found when that is nothing. A Public collection inside another is listed in its own right when the caller cannot open its parent from the page (the parent private, under another handle, or gated and not openable by the caller); when they can (Public; Registered when signed in; Restricted for a member; their own) it is the parent's tile only, never shown twice. A Registered or Restricted sub-collection is never listed. A profile its owner hid answersnot_foundto everyone else. A handle resolves while the caller reaches at least one of its Public collections from the page, as a card or as a tile inside a parent they can open there; every other handle (unknown, malformed, a route's name, suspended, no Public collection) is the samenot_foundwith the same bytes as an unpublished collection's address, except to its owner, who reads an empty page. Signed out, rate-limited per address.Arguments
- handlestring · path · required
Example
GET https://api.zegazone.app/publishers/charlie Authorization: Bearer <token>
This operation is not an MCP tool.
Returns
200The publisher's page. Fields:handle,display_name,avatar,bio,links,follower_count,public_collection_count,profile_hidden,viewer,collections,workspace.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403not_found404mcp_quota_exceeded429rate_limited429server_error500server_busy503
publishers.sitemapList the addresses a crawler may be told ofcollections:read
Needs
collections:read.The published Public collections listed in Discovery and the handles with something Public, for the apex's
sitemap.xml. Names, descriptions and counts are not part of it. Anonymous likecollections.get_by_slug: rate-limited per address,Cache-Control: no-store.Example
GET https://api.zegazone.app/sitemap Authorization: Bearer <token>
This operation is not an MCP tool.
Returns
200The addresses. Fields:collections,publishers,truncated.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403not_found404mcp_quota_exceeded429rate_limited429server_error500server_busy503
Publishing5 operations
publishing.publishPublish a collection at an addresscollections:write
Needs
collections:write.Owner only, and only once your email is confirmed (
email_verification_required). An adult collection is never published (R-): its publish is 400invalid_requestwithreason: "adult_collection"andallowed_levels: []; share it with people by name or email instead. Gives the collection the address/{handle}/{slug}on the apex and lets its level reach people who are not members. A publish never lists it in Discovery: that ispublishing.set_discovery. At most 3 published at once on Free (publish_limit_reached, withcurrent,maxandplan; republishing is never blocked). While published its name, handle and address are locked; publishing again with another level changes the level. A handle that is not yours or not an alias of yours is refused (invalid_requestonhandle); a taken slug isslug_taken. Nothing new publishes under a frozen alias, one kept over the plan's channels after Pro ended (alias_frozen): a collection already published under it stays, and its level can still change.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- share_levelprivate · restricted · registered · public · body
- Who may view it: private, restricted, registered or public. Written when stated; otherwise the stored level stays, except that a level never stated becomes public. On a published collection a lower level bumps the epoch. An adult collection is never published, at any level (R-): see the operation.
- handlestring · body
- Your username or one of your aliases (
profile.aliases.list), without the @. Omitted: the handle the collection already has, else your default for publishing, else your username. Locked while published (publish_handle_locked). - slugstring · body
- The address's second segment: lowercase letters, numbers and hyphens (anything else becomes a hyphen). Omitted: the one the collection has, else made from its name, unique among your collections. Taken:
slug_taken. On a published collection a different slug is ignored and the live one answered. - dry_runboolean · body
- Decide everything and write nothing: the answer says the address, whether it changes and whether the plan's cap or an open secret-check finding would refuse. A dry run never scans.
- check_secretsboolean · body
- Run the secret check first and hold on a finding (
publish_held), as a priced collection always does. The check is deterministic: pattern and entropy rules, never a model.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/publishing/publish Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "share_level": "private", "handle": "mia.tom" }Over MCP, the tool
publishing_publishtakes the same arguments.Returns
200Published, republished,noop, or the dry run's report. Fields:noop,dry_run,share_level_defaulted,share_level,address,url,address_changes,previous_address,would_refuse,cap,collection.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_permission403insufficient_scope403missing_client_header403publish_limit_reached403not_found404alias_frozen409idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409publish_handle_locked409publish_held409slug_taken409mcp_quota_exceeded429rate_limited429server_error500server_busy503
publishing.unpublishUnpublish a collectioncollections:write
Needs
collections:write.Owner only. Clears the published state and bumps the epoch in the same change, so every address and public URL minted before answers 404 from the next request; the level stays for the next publish unless one is stated, the Discovery listing goes with the publication, and the address is kept for a republish. Nothing redirects.
Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- share_levelprivate · restricted · registered · public · body
- Written when stated; otherwise the level stays.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/publishing/unpublish Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "share_level": "private" }Over MCP, the tool
publishing_unpublishtakes the same arguments.Returns
200Unpublished, ornoop. Fields:noop,collection.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
publishing.set_discoveryList or unlist a collection in Discoverycollections:write
Needs
collections:write.Owner only. Discovery is its own switch: open only while the collection is published and public, else
invalid_requestonsearchable. Unpublishing or lowering the level turns it off, and republishing never turns it back on. Listing changes nothing about who may view.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- searchableboolean · body · required
- True lists the collection in Discovery and public search; false takes it out. On only while published and public.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/publishing/discovery Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "searchable": true }Over MCP, the tool
publishing_set_discoverytakes the same arguments.Returns
200Listed, unlisted, ornoop. Fields:noop,collection.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
publishing.check_secretsCheck a collection for secretscollections:write
Needs
collections:write.Owner only (or a workspace member who may publish it). Scans the collection's notes and text files (HTML, Markdown, plain text, code) and their descriptions for keys, tokens and passwords with deterministic pattern and entropy rules, never a model, and answers what it found, masked. A priced collection runs this check before every publish and is held by an open finding (
publish_held); any other publish runs it when asked (check_secrets: true). Bounded: at most 1000 text items and 8 MiB per call; what the bound leaves out is listed inunchecked.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- only_if_pricedboolean · body
- Scan only when the collection has a price (the Publish overlay's opening read); otherwise answer
scanned: falsewith what is already open.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/publishing/secret-check Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "only_if_priced": true }Over MCP, the tool
publishing_check_secretstakes the same arguments.Returns
200What the check found. Fields:priced,scanned,items,unchecked_count,unchecked,findings,open,held.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
publishing.mark_not_secretMark a secret-check finding as not a secretcollections:write
Needs
collections:write.Owner only. Releases this one finding: records who and when, and the finding's fingerprint, so that exact value never raises a finding in this collection again; a new value is a new finding, and every other open finding still holds.
Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- findingstring · path · required
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/publishing/secret-findings/42/not-a-secret Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
publishing_mark_not_secrettakes the same arguments.Returns
200The finding, now not a secret, and what is still open. Fields:finding,open,held.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
Push5 operations
push.configPush on this environment, and your devicessession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Whether push is configured, the VAPID public key a browser subscribes with, and how many of your devices are subscribed. The web app's own: not open to agents.
Example
GET https://api.zegazone.app/push/config Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200Push here. Fields:enabled,public_key,devices.
Errors
session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500server_busy503
push.subscribeSubscribe this browsersession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Stores the browser's push subscription for you, once per endpoint: subscribing again refreshes its keys. The same browser stored for another account stops receiving that account's pushes. 503
push_unavailablewhile push is not configured.Arguments
- endpointstring · body · required
- The browser's push address (
PushSubscription.endpoint), https. - keysobject · body · required
- user_agentstring or null · body
Example
POST https://api.zegazone.app/push/subscribe Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "endpoint": "<string>", "keys": { "p256dh": "<string>", "auth": "<string>" } }This operation is not an MCP tool.
Returns
200Subscribed. Fields:subscribed,created.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500push_unavailable503server_busy503
push.unsubscribeUnsubscribe this browsersession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Revokes your subscription for the endpoint: nothing is pushed to it again. Another account's subscription of the same browser is untouched.
Arguments
- endpointstring · body · required
Example
DELETE https://api.zegazone.app/push/subscribe Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "endpoint": "<string>" }This operation is not an MCP tool.
Returns
200Done. Fields:removed.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500server_busy503
push.rebindRe-bind this browser's subscription to this sessionsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The web app's silent re-bind at boot, with no prompt: binds to this session a subscription you already have for the endpoint, when it is live or was revoked only by the move to session-bound subscriptions (0077). Never stores a new one, never revives one you turned off or the push service refused, and never takes the browser from another account:
subscribedis false then. 503push_unavailablewhile push is not configured.Arguments
- endpointstring · body · required
- The browser's push address (
PushSubscription.endpoint), https. - keysobject · body · required
- user_agentstring or null · body
Example
POST https://api.zegazone.app/push/rebind Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "endpoint": "<string>", "keys": { "p256dh": "<string>", "auth": "<string>" } }This operation is not an MCP tool.
Returns
200Re-bound, or not. Fields:subscribed,created.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403server_error500push_unavailable503server_busy503
push.testSend yourself a test pushsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
One test push to every device you subscribed, which never raises the app-icon badge. Once every 60 s: sooner is 429
rate_limitedwithretry_after_seconds. 400 ondeviceswhen none is subscribed; 503push_unavailablewhile push is not configured.Example
POST https://api.zegazone.app/push/test Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200What the devices answered. Fields:status,devices,accepted,removed.
Errors
invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403rate_limited429server_error500push_unavailable503server_busy503
Queue5 operations
queue.listYour AI queuecollections:read
Needs
collections:read.The prompts the person queued for their agent in Studio, oldest first, with
prompt: all of them as one prompt, each entry framed by lines carrying a random mark. Do each, then callqueue.completewith its id. An entry whose collection or items are gone is left out without a word; reading writes nothing.Example
GET https://api.zegazone.app/queue Authorization: Bearer <token>
Over MCP, the tool
queue_listtakes the same arguments.Returns
200The queue. Fields:items,waiting,prompt,done.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403insufficient_scope403mcp_quota_exceeded429rate_limited429server_error500server_busy503
queue.completeMark queue entries done or failedcollections:write
Needs
collections:write.Marks entries of the person's queue
doneorfailed, with an optional note the person reads in Studio. An entry already finished is answered as it is. Ids that name no entry of theirs come back innot_found.Arguments
- idsarray of string · body · required
- The entries finished, by id.
- outcomedone · failed · body · required
- notestring · body
- A short note for the person (at most 1000 characters): why it failed, or what was done.
Example
POST https://api.zegazone.app/queue/complete Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "ids": [ "<string>" ], "outcome": "done" }Over MCP, the tool
queue_completetakes the same arguments.Returns
200The entries as they are now. Fields:items,not_found.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
queue.addAdd a prompt to the AI queuesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Studio's AI symbol: queues a prompt of the catalogue, or one of the person's own saved prompts (
customwithprompt_id), for its targets, written now from the catalogue or the stored prompt (the body carries no text). The same prompt for the same targets while one waits answers that one (addedfalse). A catalogue prompt only for a change the person may make (forbiddenotherwise); a saved prompt for any collection they can read. At most 100 items an entry; the prompt names them by id alone. At most 60 adds a minute (429rate_limited). At most 200 waiting: past that, 429quota_exceeded. Not open to agents.Arguments
- kindstring · body · required
- The prompt's kind:
describe_collection,summarise_collection,organise_collection,cover_collection,tag_collection,tag_items,describe_item,title_item,tag_item,thumbnail_item,describe_items,title_items,thumbnail_items; orcustomwithprompt_id: one of the person's own saved prompts. - collection_idstring · body · required
- The collection it is about.
- item_idsarray of string · body
- The items (one for an item's prompt, 1 to 100 for several). Leave out for the collection's every item.
- tagstring · body
- Instead of items: the items of the collection carrying this tag.
- prompt_idstring · body
- Kind
customonly: the id of one of the person's own saved prompts. Its stored words are rendered; no text is ever sent.
Example
POST https://api.zegazone.app/queue Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "kind": "describe_collection", "collection_id": "b4kq7xz2m9np" }This operation is not an MCP tool.
Returns
200That prompt was already waiting. Fields:entry,added.201Queued. Fields:entry,added.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404quota_exceeded429rate_limited429server_error500server_busy503
queue.removeRemove a prompt from the AI queuesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The person removes one waiting entry. Not open to agents.
Arguments
- idstring · path · required
Example
POST https://api.zegazone.app/queue/h3m8wq2z5rtc/remove Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The entry as it is now. Fields:id,kind,label,collection_id,item_ids,tag,text,state,note,created_at,finished_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404server_error500server_busy503
queue.clearClear the AI queuesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The person removes every waiting entry. Not open to agents.
Example
POST https://api.zegazone.app/queue/clear Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200How many went. Fields:removed.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404server_error500server_busy503
Reports2 operations
reports.createReport a collectionsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
The public page's Report sheet. For a collection the caller may open, signed in or out; any other is the one
not_found. One of six reasons and an optional note. Limited to 10 an hour per address and 60 an hour per collection (docs/ops/API-LIMITS.md). A report changes nothing by itself; the reporter is never shown to the publisher. Not open to agents.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- reasonspam · adult_unmarked · harassment · copyright · illegal · other · body · required
- Why:
spam(spam or a scam),adult_unmarked(adult content that isn't marked),harassment(harassment or hate),copyright(someone else's work),illegal(illegal content) orother. - notestring · body
- Detail, optional; up to 2000 characters.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/reports Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "reason": "spam" }This operation is not an MCP tool.
Returns
200Filed. Fields:received.
Errors
invalid_json400invalid_request400session_ended401wrong_token_type401account_suspended403missing_client_header403not_found404rate_limited429server_error500server_busy503
feedback.createSend feedbacksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Feedback from the account menu: the message and the page it came from, stored for the operators; never a moderation case. A signed-in person's session alone; 10 an hour per account. Not open to agents.
Arguments
- bodystring · body · required
- The message; 1 to 4000 characters.
- pagestring · body
- The address of the page it was sent from (a path), kept with it.
Example
POST https://api.zegazone.app/feedback Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "body": "<string>" }This operation is not an MCP tool.
Returns
200Stored. Fields:received.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403missing_client_header403rate_limited429server_error500server_busy503
Sharing21 operations
sharing.listWho a collection is shared withcollections:read
Needs
collections:read.Owner only. The people (members and pending invitations by name, with their switches), the email invitations with their expiry, the invite links with who joined through each, the pending access requests, the invite template, the Requests switch and the count toward 50. Needs collections:read.
Arguments
- idstring · path · required
- The collection's id.
Example
GET https://api.zegazone.app/collections/b4kq7xz2m9np/sharing Authorization: Bearer <token>
Over MCP, the tool
sharing_listtakes the same arguments.Returns
200The collection's sharing. Fields:collection,owner,people,invitations,links,requests,template,template_saved,requests_enabled,requests_available,count,limit,pending,pending_limit.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404mcp_quota_exceeded429rate_limited429server_error500server_busy503
sharing.receivedInvitations waiting for youcollections:read
Needs
collections:read.Your pending invitations by name, newest first: the collection's name, who invited you, what you would be able to do and how many items it holds. Accept or decline with
sharing.acceptandsharing.decline. Needs collections:read.Arguments
- limitinteger · query
- Page size. Clamped to 1–500; 100 when absent.
- offsetinteger · query
- Rows to skip. Floored at 0; past the end the page is empty and
totalstill exact.
Example
GET https://api.zegazone.app/sharing/received Authorization: Bearer <token>
Over MCP, the tool
sharing_receivedtakes the same arguments.Returns
200Your pending invitations with the exact total. Fields:items,pagination.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404mcp_quota_exceeded429rate_limited429server_error500server_busy503
sharing.inviteInvite someonesharing:write
Needs
sharing:write.Owner only, and only once your email is confirmed (
email_verification_required). By id or username, or by address: an account with the address is invited in the app, any other address gets a 7-day email invitation for that address only (the person's own, not an agent's). The invitee sees it at once and accepts or declines in one step. At most 50 people (members plus open invitations) and 20 invitations waiting for an answer on a collection, and 50 sent in 24 hours, arequota_exceeded, checked before the person is looked up. An agent's invitations are also limited to 15 an hour per account (rate_limitedwith Retry-After); the person's own are not. Someone already on the collection, or yourself, isinvalid_request. Needs sharing:write.Arguments
- idstring · path · required
- The collection's id.
- userstring · body
- The person's id, as the lookup returns it.
- usernamestring · body
- Their username, with or without the @.
- emailstring · body
- An address. An account with it is invited in the app; otherwise it gets an email invitation, 7 days, for that address only. Not for agents.
- can_uploadboolean · body
- can_editboolean · body
- can_deleteboolean · body
- include_sub_collectionsboolean · body
- Not for agents: an agent's invitations always include sub-collections.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/invitations Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "user": "<string>", "username": "<string>" }Over MCP, the tool
sharing_invitetakes the same arguments.Returns
201The pending member, or the email invitation. Fields:kind,member,invitation.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403email_verification_required403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429quota_exceeded429rate_limited429server_error500server_busy503
sharing.updateChange a person's permissionssharing:write
Needs
sharing:write.Owner only. Changes the switches sent, on a pending or an accepted member; none at all is
invalid_request. Lowering anything an accepted member held bumps the epoch in the same change, so their URLs stop from the next request. Needs sharing:write.Arguments
- idstring · path · required
- The collection's id.
- personstring · path · required
- A member's id (an account's id, as
sharing.listreturns it), or forsharing.removean open email invitation's id. - can_uploadboolean · body
- can_editboolean · body
- can_deleteboolean · body
- include_sub_collectionsboolean · body
Example
PATCH https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/members/<string> Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "can_upload": true, "can_edit": true }Over MCP, the tool
sharing_updatetakes the same arguments.Returns
200The member as they are now. Fields:member,epoch_bumped.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
sharing.removeRemove a person or an invitationsharing:write
Needs
sharing:write.Owner only. Deletes a member (pending or accepted) or an open email invitation by its id; a removal that deleted nothing is
not_found, never success. Removing an accepted member bumps the epoch: they lose access at once, including to the sub-collections; their uploads stay. Needs sharing:write.Arguments
- idstring · path · required
- The collection's id.
- personstring · path · required
- A member's id (an account's id, as
sharing.listreturns it), or forsharing.removean open email invitation's id.
Example
DELETE https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/members/<string> Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
sharing_removetakes the same arguments.Returns
200Removed. Fields:id,removed,kind,epoch_bumped.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
sharing.acceptAccept an invitationsharing:write
Needs
sharing:write.Your own pending invitation to this collection becomes a membership, in one step. The owner is told. Needs sharing:write.
Arguments
- idstring · path · required
- The collection's id.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/accept Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
sharing_accepttakes the same arguments.Returns
200You are a member. Fields:collection,accepted,can_upload,can_edit,can_delete,include_sub_collections.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
sharing.declineDecline an invitationsharing:write
Needs
sharing:write.Your own pending invitation to this collection is deleted; no one is notified. Needs sharing:write.
Arguments
- idstring · path · required
- The collection's id.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/decline Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
sharing_declinetakes the same arguments.Returns
200Declined. Fields:collection,declined.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
sharing.leaveLeave a collection shared with yousharing:write
Needs
sharing:write.Ends your own membership: your access to the collection and to its sub-collections stops at once, and the owner is told. Needs sharing:write.
Arguments
- idstring · path · required
- The collection's id.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/leave Authorization: Bearer <token> X-Zegazone-Client: <your client name>
Over MCP, the tool
sharing_leavetakes the same arguments.Returns
200You have left. Fields:collection,left.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
sharing.lookupFind someone to invitesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Studio's Invite field, as you type from 2 characters: display names and usernames, never aliases, never you, at most 25; a person already on the collection is marked
member. An address is answered only with whether it becomes an in-app or an email invitation. Not open to agents.Arguments
- idstring · path · required
- The collection's id.
- qstring · query · required
- Name, username or address.
Example
GET https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/lookup?q=<string> Cookie: <the session cookie>
This operation is not an MCP tool.
Returns
200The matches. Fields:query,people,email.
Errors
invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403not_found404rate_limited429server_error500server_busy503
sharing.resendSend an email invitation againsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Owner only, with a confirmed email. A new token and a new 7 days; the old link stops; the template's switches are restated. An expired invitation counts toward the limits again. Not open to agents.
Arguments
- idstring · path · required
- The collection's id.
- invitationstring · path · required
- An email invitation's id, as
sharing.listreturns it.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/invitations/<string>/resend Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The invitation as it is now. Fields:id,email,can_upload,can_edit,can_delete,include_sub_collections,expires_at,expired,last_sent_at,created_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403email_verification_required403forbidden403missing_client_header403not_found404quota_exceeded429server_error500server_busy503
sharing.settingsSave the invite template or the Requests switchsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Owner only. The invite template (four switches, saved for the collection) and the Requests switch, each saved at once. Not open to agents.
Arguments
- idstring · path · required
- The collection's id.
- invite_templateobject · body
- All four switches.
- access_requests_enabledboolean · body
- The Requests switch: off stops new requests only.
Example
PATCH https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/settings Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "invite_template": { "can_upload": true, "can_edit": true, "can_delete": true, "include_sub_collections": true }, "access_requests_enabled": true }This operation is not an MCP tool.
Returns
200The settings as they are now. Fields:collection,template,template_saved,requests_enabled.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404server_error500server_busy503
sharing.link_createMake an invite linksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Owner only, with a confirmed email. A link carrying the template's switches (any stated one wins), an expiry and a join limit; its code is in the answer once and only a hash is kept. Not open to agents.
Arguments
- idstring · path · required
- The collection's id.
- expires24h · 7d · 30d · never · body
- 24h, 7d, 30d or never; default 7d.
- join_limitinteger or null · body
- From 1 to 50, or null for no limit (the default).
- messagestring or null · body
- can_uploadboolean · body
- can_editboolean · body
- can_deleteboolean · body
- include_sub_collectionsboolean · body
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/links Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "expires": "24h", "join_limit": 1 }This operation is not an MCP tool.
Returns
201The link and its code. Fields:link,code.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403email_verification_required403forbidden403missing_client_header403not_found404rate_limited429server_error500server_busy503
sharing.link_revokeRevoke an invite link, or remove a dead onesession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Owner only. An active link stops at once; people who joined through it stay members. On a link already revoked, expired or used up, the same call removes it from the list. Not open to agents.
Arguments
- idstring · path · required
- The collection's id.
- linkstring · path · required
- An invite link's id, as
sharing.listreturns it.
Example
DELETE https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/links/<string> Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Revoked or removed. Fields:id,state.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404server_error500server_busy503
sharing.request_accessAsk for accesssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
A signed-in person who is not the owner or a member asks to join a published Public or Restricted collection while its Requests switch is on. Any other collection is
not_found. 5 an hour and 20 a day per person, and 10 an hour and 20 a day per collection, arerate_limitedwith Retry-After, asked before the collection is looked up; so are more than 30 attempts an hour per person, whatever they answer. A reason the gate can read is instate:owner,member,requests_disabled,pending,rejected. Open to an unverified account; not open to agents.Arguments
- idstring · path · required
- The collection's id.
- notestring or null · body
- Up to 500 characters, trimmed; the gate sends none.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/requests Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "note": "<string>" }This operation is not an MCP tool.
Returns
201The pending request. Fields:id,collection,status,note,created_at.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404rate_limited429server_error500server_busy503
sharing.request_withdrawTake back your requestsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Withdraws your own pending request, so you may ask again later; the owner's row updates. Anything else is one indistinct
not_found.Arguments
- idstring · path · required
- The collection's id.
Example
DELETE https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/requests/mine Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200Withdrawn. Fields:collection,withdrawn.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404server_error500server_busy503
sharing.request_acceptAccept an access requestsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Owner only, with a confirmed email. The person becomes an accepted member with view only: raise their switches afterwards with
sharing.update. Counts toward the 50. Accepting an accepted request changes nothing; a declined one isinvalid_request. Not open to agents.Arguments
- idstring · path · required
- The collection's id.
- requeststring · path · required
- An access request's id, as
sharing.listreturns it.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/requests/<string>/accept Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The request, resolved. Fields:id,collection,status,noop,member.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403email_verification_required403forbidden403missing_client_header403not_found404quota_exceeded429server_error500server_busy503
sharing.request_declineDecline an access requestsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
Owner only. The request stays, rejected, and that person cannot ask again; only an invitation opens the way. Not open to agents.
Arguments
- idstring · path · required
- The collection's id.
- requeststring · path · required
- An access request's id, as
sharing.listreturns it.
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/sharing/requests/<string>/decline Cookie: <the session cookie> X-Zegazone-Client: <your client name>
This operation is not an MCP tool.
Returns
200The request, resolved. Fields:id,collection,status,noop,member.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404server_error500server_busy503
sharing.link_joinJoin through an invite linksession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
A signed-in person joins with a link's code: an accepted member at once with the link's switches, counted against the link's limit and the collection's 50. Open to an unverified account. An unknown, revoked, expired or used-up code is one identical
not_found; a full collection isquota_exceeded. The owner is told at each join.Arguments
- codestring · body · required
- The link's code, as its owner shared it.
Example
POST https://api.zegazone.app/sharing/links/join Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "code": "<string>" }This operation is not an MCP tool.
Returns
200Joined, or already a member. Fields:collection,name,joined,can_upload,can_edit,can_delete,include_sub_collections.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404quota_exceeded429rate_limited429server_error500server_busy503
sharing.invitation_acceptAccept an email invitationsession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
A signed-in account whose address is the invited one accepts with the token of the email. An expired or already accepted token is
invalid_requestwith itsstate; another address isforbidden.Arguments
- tokenstring · body · required
- The token of the invitation email.
Example
POST https://api.zegazone.app/sharing/invitations/accept Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "token": "<string>" }This operation is not an MCP tool.
Returns
200Accepted. Fields:collection,name,joined,can_upload,can_edit,can_delete,include_sub_collections.
Errors
invalid_json400invalid_request400session_ended401session_required401wrong_token_type401account_suspended403forbidden403missing_client_header403not_found404rate_limited429server_error500server_busy503
sharing.link_previewWhat an invite link's landing showssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
No credential. The inviter's name, the collection's name, its item count and kinds, what the visitor would be able to do and when the link ends. An unknown, revoked, expired or used-up code is one identical
not_found. Limited per address.Arguments
- codestring · body · required
- The link's code, as its owner shared it.
Example
POST https://api.zegazone.app/sharing/links/preview Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "code": "<string>" }This operation is not an MCP tool.
Returns
200The preview. Fields:inviter,collection,can_upload,can_edit,can_delete,include_sub_collections,message,expires_at.
Errors
invalid_json400invalid_request400missing_client_header403not_found404rate_limited429server_error500server_busy503
sharing.invitation_previewWhat an email invitation's landing showssession
A web app call: it takes the session cookie, or no credential to sign in, and never an agent token.
No credential. The inviter, the collection and the address it is for, with a
stateof open, expired or accepted. A token that is not one, or was withdrawn, isnot_found. Limited per address.Arguments
- tokenstring · body · required
- The token of the invitation email.
Example
POST https://api.zegazone.app/sharing/invitations/preview Cookie: <the session cookie> X-Zegazone-Client: <your client name> Content-Type: application/json { "token": "<string>" }This operation is not an MCP tool.
Returns
200The preview. Fields:inviter,collection,can_upload,can_edit,can_delete,include_sub_collections,state,email,expires_at.
Errors
invalid_json400invalid_request400missing_client_header403not_found404rate_limited429server_error500server_busy503
Webhooks4 operations
collections.webhook_getRead a collection's webhook and its healthcollections:read
Needs
collections:read.Owner only: the address, whether it is enabled, the failure count, the last status and error, why it was disabled, the last five attempts and how many deliveries are waiting. Never the secret.
not_foundwhen the collection has no webhook (collections_webhook_set makes one).Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
Example
GET https://api.zegazone.app/collections/b4kq7xz2m9np/webhook Authorization: Bearer <token>
Over MCP, the tool
collections_webhook_gettakes the same arguments.Returns
200The webhook. Fields:id,collection_id,url,events,enabled,failure_count,last_status,last_error,disabled_reason,disabled_at,created_at,updated_at,recent,pending.
Errors
invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_scope403not_found404mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.webhook_setSet a collection's webhookcollections:write
Needs
collections:write.Creates or replaces the collection's one webhook, owner only. It is enabled with a failure count of 0, and a new signing secret comes back once (
secret_shown_once); setting it again ends the old secret. The address is checked now (https, no credentials, not Zegazone's, only public addresses;webhook_url_not_https,webhook_url_has_credentials,webhook_url_zegazone_host,webhook_url_blocked_host) and again before every send. A change to the collection (items added, removed, moved or edited; its name, description, tags, cover, share level, publication, archive or deletion) is sent ascollection.updatedonce its 30-second window closes: a POST of{event, collection_id, collection:{id, name, slug, is_published, updated_at}, changed:[item ids], changed_truncated, delivered_at}, with headersX-Zegazone-Signature: sha256=<hex HMAC-SHA256 of the exact body, keyed with the secret text>,X-Zegazone-Event,X-Zegazone-Delivery,X-Zegazone-AttemptandX-Zegazone-Timestamp. A 2xx within 10 s delivers; anything else, a redirect included, is retried after 30 s, 2 min and 10 min; 20 deliveries in a row that fail all four attempts disable the webhook. Delivery is at least once:X-Zegazone-Deliveryis the dedupe key.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
- urlstring · body · required
- An https address, at most 2000 characters, without credentials, not one of Zegazone's own hosts, and resolving only to public addresses.
- eventsarray of string · body
- Only collection.updated (the default); anything else is refused with allowed_events.
Example
PUT https://api.zegazone.app/collections/b4kq7xz2m9np/webhook Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json { "url": "https://example.com/hooks/zegazone" }Over MCP, the tool
collections_webhook_settakes the same arguments.Returns
200The webhook, and its secret this once. Fields:webhook,secret,secret_shown_once.
Errors
invalid_json400invalid_request400webhook_url_blocked_host400webhook_url_has_credentials400webhook_url_not_https400webhook_url_zegazone_host400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.webhook_removeRemove a collection's webhookcollections:write
Needs
collections:write.Owner only. Deletes the webhook and the deliveries still queued for it; a second call answers
removed: false. The finished deliveries go with it.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/webhook/remove Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json {}Over MCP, the tool
collections_webhook_removetakes the same arguments.Returns
200Whether there was one to remove. Fields:removed.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409mcp_quota_exceeded429rate_limited429server_error500server_busy503
collections.webhook_testSend a test ping to a collection's webhookcollections:write
Needs
collections:write.Owner only. Sends a signed
pingnow, through the same sender, and says whether it was delivered, the receiver's status, how long it took, any error, the signature and the exact body. Works on an unpublished collection and on a disabled webhook; it is logged as a test and never counts towards the failure streak. At most 10 a minute (rate_limited);webhook_secret_unreadablewhen the stored secret no longer opens.Arguments
- idstring · path · required
- The collection. Its 12-character id or its number (4821 or #4821).
Example
POST https://api.zegazone.app/collections/b4kq7xz2m9np/webhook/test Authorization: Bearer <token> X-Zegazone-Client: <your client name> Content-Type: application/json {}Over MCP, the tool
collections_webhook_testtakes the same arguments.Returns
200What came back. Fields:delivered,response_status,duration_ms,error,signature,body.
Errors
invalid_json400invalid_request400invalid_token401session_ended401session_required401token_expired401token_revoked401unauthorized401wrong_token_type401account_suspended403forbidden403insufficient_permission403insufficient_scope403missing_client_header403not_found404idempotency_conflict409idempotency_done_unreplayable409idempotency_in_flight409webhook_secret_unreadable409mcp_quota_exceeded429rate_limited429server_error500server_busy503
Schema 2.0.0-alpha.1 · live from https://api.zegazone.app