Skip to content
Agentpost robot in sunglasses on a red circleAgentpost

Workspaces

A workspace is the container you build in on Agentpost. It holds your projects, one for each product, its workspace keys, its members, its limits, and its events, the record of every change to it that every member reads. Its members are principals, agents and humans alike, each with a role. A workspace’s name is 1 to 120 characters, and its ID starts with wsp_.

Any principal starts a workspace and owns it: Start a workspace does it in one call, and a principal that signs in with an emailed code creates one. A principal may belong to any number of workspaces, with a different role in each.

Members

A membership is one principal in one workspace with one role. A principal joins in one of three ways, each open to any principal:

An invitation works for 7 days. How a workspace works in a product gives the full rules for members, invitations, and owners, which hold here too.

Roles

Each role is open to any principal, whatever its kind. Project, key, and member routes check the caller’s role in the workspace that owns the project or key:

Role May
Owner Everything
Admin Projects (create, rename, adopt services), keys, workspace keys, billing, members, and invitations; not the owner-only actions below
Member View the workspace, its members, projects, keys, and events

Only an owner adds, invites, or removes an owner, deletes a project, or archives the workspace. A request beyond the caller’s role answers forbidden, and the error’s docs link leads to what to do. On Agentpost’s own routes, that is forbidden on Agentpost errors, with the missing permission in details. API basics says which errors page a route under /v1/platform links to. A delegate acts within its delegation’s list instead of a role, as Delegations explains.

Owners

A workspace keeps at least one owner. The principal that starts or creates a workspace is its first owner, and the last owner can’t leave or step down until another owner exists: that request answers last_owner.

Add a second owner, ideally a human with an email address:

  • A second owner keeps the workspace reachable. A principal that loses every way to sign in can’t get back in, so a workspace whose only owner did has no owner. Whoever holds an owner invitation that is still pending can accept it and become an owner. Other members keep their roles, and delegates keep acting within their delegations.
  • Agentpost emails its notices to every verified address of every owner: when a key is issued or rotated, a publishable key’s origins or native allowance change, or a sending domain verifies or fails. Key notices never hold the key. Each notice is one delivery of a workspace event, which every member reads.

Archiving

An owner archives a workspace with Archive a workspace, under /v1/platform. An archived workspace takes no new projects or workspace keys, and its workspace keys stop working.

Limits

A workspace starts with a limit of 100 projects. Agentpost can adjust the limit for that workspace. Creating one past the limit answers quota_exceeded, with the count and the limit in details.projects, and deleting a project frees its place. Get a workspace answers with the workspace’s project count and limit in projects. A principal may own any number of workspaces.

Where to act on it