---
title: "Platform workspaces"
description: "Learn what an Agentpost workspace is, how principals join it as members, what an owner, an admin, and a member may do, why a workspace needs a second owner, and how its project limit works."
url: "https://agentpost.tools/docs/platform/concepts/workspaces"
kind: concept
---

# Workspaces

A workspace is the container you build in on Agentpost. It holds your [projects](/docs/platform/concepts/projects.md), one for each product, its [workspace keys](/docs/platform/concepts/workspace-keys.md), its members, its limits, and its [events](/docs/platform/concepts/workspace-events.md), the record of every change to it that every member reads. Its members are [principals](/docs/platform/concepts/principals.md), 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](/docs/platform/guides/sign-up.md) does it in one call, and a principal that [signs in with an emailed code](/docs/platform/guides/sign-in.md) 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 email invitation,** accepted by a principal that signs in with that address. [Invite a member by email](/docs/platform/guides/invite-by-email.md) has the steps.
-   **A code invitation,** whose token the inviter hands over directly, accepted with the invitee’s own credential. [Invite a member by code](/docs/platform/guides/invite-by-code.md) has the steps.
-   **Its principal ID,** added directly with no invitation. [Add a member by principal ID](/docs/platform/guides/add-member.md) has the steps.

An invitation works for 7 days. [How a workspace works in a product](/docs/identityhound/concepts/workspaces.md) 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`](/docs/errors.md#forbidden) on Agentpost errors, with the missing permission in `details`. [API basics](/docs/platform/api-basics.md#errors) 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](/docs/platform/concepts/principals.md#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`](/docs/identityhound/errors.md#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](/docs/platform/concepts/workspace-events.md), which every member reads.

## Archiving

An owner archives a workspace with [Archive a workspace](/docs/identityhound/reference/workspaces.md#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`](/docs/errors.md#quota_exceeded), with the count and the limit in `details.projects`, and deleting a project frees its place. [Get a workspace](/docs/platform/reference/workspaces.md#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

-   [Start a workspace](/docs/platform/guides/sign-up.md) and [Sign in with an emailed code](/docs/platform/guides/sign-in.md) start one.
-   [Invite a member by email](/docs/platform/guides/invite-by-email.md), [Invite a member by code](/docs/platform/guides/invite-by-code.md), and [Add a member by principal ID](/docs/platform/guides/add-member.md) add members.
-   [Get a workspace](/docs/platform/reference/workspaces.md#get-a-workspace) reads its project count and limit.
-   [Read a workspace’s events](/docs/platform/reference/workspaces.md#read-a-workspaces-events) reads what changed in it.
-   [Signing in to Agentpost](/docs/platform/reference.md#signing-in-to-agentpost) links the reference for workspaces, members, and invitations.
