Skip to main content

API Catalogs, Spaces & Roles

API Builder has its own two-level hierarchy — API Catalog → API Space — that scopes who can see, develop, and publish which API definitions. It exists purely to govern API definitions; it carries no LLM provider configuration or execution environment of its own.

Not the same "Catalogs & Spaces" you may have seen elsewhere

Hrida.ai also has a separate, general-purpose Catalogs & Spaces feature used for partitioning an instance into isolated business units with their own LLM providers — that system is used across many parts of the product, including Agent Builder workflow nodes. API Builder's API Catalogs and API Spaces are a completely different, unrelated set of tables, scoped only to API definitions. The two features share a name and a two-level shape by convention, nothing else — an API Space membership grants no access in the other system, and vice versa.


Structure​

  • Catalogs and spaces decide who owns and who can use an API. They have no runtime meaning.
  • An API definition is owned by exactly one space, its home space, where it is edited and reviewed. It can also be published to other spaces, whose members can then use it (see Publishing to other spaces). An API with no home space is platform-wide.
  • Environments and gateways decide where it runs. They are platform-wide and set under Admin → API Platform (see Environments).

An API Catalog is a named grouping (with a unique slug) that can be active or suspended; so can each space. Suspending a catalog or space (Suspend in Admin → API Catalogs) immediately stops every API in it at the gateway (503, error suspended), for agents, consumer keys and the test console, and blocks creating or publishing APIs there, including sharing them to other spaces. Nothing is deleted, and Reactivate restores it. Only instance admins can change status. Other server replicas pick up a change within 30 seconds. An API Space lives inside exactly one catalog and is the actual unit of membership — each space has its own members, each with a role.


Roles​

Roles are checked at the API Space level and apply to the API definitions inside that space:

RoleWhat it can do
viewerRead-only access to published API definitions in the space, and use of them in agents. Other members' drafts stay hidden, in the API list too
api_developerCreate and edit definitions (while draft/rejected), add mappers to drafts, set up stages until a version is deployed, submit for review
lifecycle_managerEverything api_developer can, plus approve/reject/publish, change mappers on published APIs and rotate secrets
space_adminEverything above, plus manage space membership and pull a published API back to draft. A space admin can't remove or demote the space's last space admin; promote someone else first (instance admins are exempt)

Every space member, whatever their role, can call the operations that the space's published APIs expose to agents, from their own agents — see Who can use a published API. Adding or removing a member updates that access immediately.

A user's effective role on a specific API definition is resolved in this order: a global Hrida.ai instance admin always resolves to admin (the highest level, see Lifecycle for what that unlocks); otherwise, if the definition belongs to a space, their membership role in that space applies; otherwise, the definition's own creator gets api_developer on it; everyone else gets viewer.

catalog_admin is reserved, not enforced today

The role vocabulary also defines a catalog_admin role, but nothing in the current implementation actually checks for it — creating, updating, or deleting an API Catalog or an API Space itself requires a full instance admin, not just a catalog-level role. Only membership roles inside a space (the table above) are enforced day-to-day.


Same Access Control Model as Agent Builder​

API Builder's role tiers and lifecycle-gating rules are deliberately modeled on Agent Builder's own role-based access control — same shape, same tier boundaries, just a different resource type and role name for "developer":

Access levelAgent Builder roleAPI Builder roleCan do
Read-only(Read access)viewerView, no create/edit
Buildagent_developerapi_developerCreate/edit while in Draft or Rejected; submit for review
Reviewlifecycle_managerlifecycle_managerEverything above, plus Approve / Reject
Space ownerspace_adminspace_adminEverything above, plus manage membership and pull a published item back to Draft
Instance owneradminadminEverything above, plus two shortcuts: publish directly from Draft (skipping review), and pull a staged item straight back to Draft

This is a structural parallel, not a shared implementation — see the callout above and Lifecycle, Versions & Audit Log for API Builder's own transition table, which mirrors Agent Builder's Role reference rule for rule.


Who Can Use API Builder at All​

Two switches sit above these roles, and both are enforced by the server:

  • ENABLE_API_BUILDER turns API Builder on or off for the whole instance.
  • The features.api_builder user permission (Admin Settings → Users → permissions) controls which non-admin users can use it.

A user without API Builder access gets 403 from every API Builder endpoint, regardless of their space roles. The API Gateway is not affected — published APIs keep working for agents.


Platform-Wide Definitions​

An API definition's api_space_id can be left empty, in which case it isn't scoped to any space at all — only an instance admin can create, see, or manage it. Use this for APIs that shouldn't be delegated to any particular team.

Other users get 403 when they create an API without a space. In API Builder, Create API asks them to pick a space first. A user who isn't in any API space needs an admin to add them to one.

Listing APIs without a space (GET /api/v1/api-definitions/ with no api_space_id) returns every API to an instance admin, in any space or none. Other users get their own APIs and those of the spaces they belong to. The Review Queue lists submissions this way, so an admin sees every API waiting for review.


Publishing to Other Spaces​

An API is owned by its home space, but other teams can use it too. Publishing it to another space (in any catalog) gives that space's members:

  • use of the API as a tool from their agents, served from prod;
  • read access to the API definition, but not edit access.

Publishing is the provider's decision: lifecycle_manager, space_admin or admin of the home space can publish, from the API's Published to spaces card in API Builder or with Publish an API here in Admin → API Catalogs. The home space's managers, or a space_admin of the receiving space, can remove a publication. Removing one never affects the home space or the other spaces.

In the receiving space, the API appears in API Builder's list with a Shared badge, but only while prod serves a version: its status shows as Live with the prod version, and it never shows under staged or drafts. Opening it is read-only. Its Gateway calls tab shows the viewer only their own calls, not who in other spaces calls it; the summary counts still cover every call. Agents in the receiving space can pick its operations as API Tools.

While the receiving space or its catalog is suspended, its members lose access to the shared API. Reactivating restores it. Suspending the home space stops the API for everyone. Deleting the receiving space (or its catalog) removes the publication and its members' access.


Managing Catalogs, Spaces, and Members​

In the admin console​

Go to Admin → Dashboard → API Catalogs. This is separate from Admin → Agent Catalogs, which manages the general-purpose catalogs.

  1. New API Catalog creates a catalog. Open it with Manage to rename it, add a description or delete it.
  2. Under Spaces, create one or more spaces in the catalog.
  3. Select a space. Under Access, search for a user, pick a role and click Grant access. Change a member's role from the dropdown, or Remove them.
  4. APIs in this space lists the APIs the space owns and those published to it from other spaces (Shared from catalog / space). Each row shows its lifecycle status and, for every environment, the version it serves and the gateway serving it. Publish an API here shares an API from another space; Remove takes a shared API out of this space.

A user only sees an API catalog in API Builder, and can only use its published APIs from agents, once they are a member of at least one of its spaces. Adding or removing a member immediately updates the access grants of every published API in that space.

Deleting

A space, or a catalog, can only be deleted once it holds no API definitions. Delete them first.

Through the API​

All under /api/v1/api-catalogs:

MethodPathNotes
GET / POST/List catalogs (admins see all; others see only catalogs where they have a space membership) / create a catalog (admin only)
GET / PATCH / DELETE/{catalog_id}Admin only for update/delete
GET / POST/{catalog_id}/spacesList spaces in a catalog / create a space (admin only)
GET / PATCH / DELETE/{catalog_id}/spaces/{space_id}Update requires space-admin role; delete requires instance admin
GET / POST/{catalog_id}/spaces/{space_id}/membersList members / add a member (requires space-admin role)
PATCH / DELETE/{catalog_id}/spaces/{space_id}/members/{user_id}Change a member's role or remove them (requires space-admin role)
GET/{catalog_id}/spaces/{space_id}/apisAPIs owned by or published to the space, each with its environments, versions and gateways (any space member)

Admin-only actions return 403 to other signed-in users.

Publications are under /api/v1/api-definitions/{id}/publications: GET to list, POST {"api_space_id": "…"} to publish, and DELETE /{publication_id} to remove. Publishing is refused (409) while the home space or the receiving space, or either one's catalog, is suspended.


Hrida.ai is proprietary software of Zlabs Innovation. See the license for terms. © 2026 Zlabs Innovation.