Manage Spaces
Create, duplicate, or embed Builder Spaces using the Admin API. Use these operations to provision new environments, copy existing Spaces, or generate tokens for secure embedding.
Note that the Private API Key for an organization is different than the private key for a single Builder Space.
Create a Space
Duplicate a Space using either the source Space Private API Key or the parent root Organization Private Key. copySpace supports optional includeUsers and skipAssets flags.
This operation returns a newly generated private key for the duplicated Space. Store this key securely.
Query
Response
When creating a Space, you can also directly add webhooks by adding a webhooks key and then following the same structure described within the Create a webhook section.
Copy a Space
Duplicate a Space using either the source Space Private API Key or the parent root Organization Private API Key. Supports optional includeUsers and skipAssets flags and returns the new Space ID and its Private API Key. Requires Organization Admin permissions
Query
Response
Clone your space
Clone your entire Builder Space by accessing details from a specific space and using that data to create a new Space.
For example, the following code selects 10 Models from your Space, returning the id, kind, and name. Use this data when creating a new Space programatically.
Query
Response
Generate an embed token
Create temporary tokens to embed specific Spaces within your organization, which is useful for embedding Builder content in other applications without exposing API keys.
Get users
Retrieve all users from a Builder Space.
To get all users from your Builder Space, use the following query.
Query
Response
Configure SSO providers
To configure SSO providers through the Admin API, SSO must first be enabled for your space. For more details on SSO options, see SSO with your Identity Provider and Using Code Flow with SSO.
To set up a new SAML authentication provider within your space, use the following query.
To set up an OIDC authentication provider within your space, use the following query.
Create a webhook
Add one or more webhooks to existing Spaces.
What's next
Continue to explore the Admin API documentation or use the GraphQL Explorer to try out these queries with your own Space and Organization. Then, visit the Admin API GraphQL Schema for more details on how to modify your queries.