The Space Object
An object that represents a space. You can manage many properties via the API, but some are read-only.
Properties
Section titled “Properties”-
namestringName of the space.
-
domainstringDomain for your default preview url.
-
uniq_domainstringUnique Domain for the Storyblok Rendering Service.
-
planstringSpace plan name.
-
plan_levelnumberSpace plan level.
-
limitsobjectLimits of the space.
-
created_atstringCreation date (Format:
yyyy-MM-dd'T'HH:mm:ssZ). -
idnumberID of the space.
-
rolestringRole of the collaborator. Could be admin, editor or custom roles.
-
owner_idnumberNumeric user ID of the owner for that space.
-
story_published_hookstringPublished webhook URL.
-
environmentsobject[]Array of name and location (url) objects.
-
stories_countnumberNumber of stories in the space.
-
parent_idnumberSpace ID of a parent space.
-
assets_countnumberNumber of assets in the space.
-
searchblok_idnumberSearchblok id, if available.
-
request_count_todaynumberRequest count of the day.
-
exceeded_requestsnumberNumber of exceeded requests.
-
billing_addressobjectBilling information used to generate invoices for this space.
-
routesstring[]Routes for the Storyblok Rendering Service.
-
trialbooleanIndicates if the space is in trial mode.
-
default_rootstringBlock name used as the default content type for entries in this folder.
-
has_slack_webhookbooleanIndicates if the space uses a Slack webhook.
-
first_tokenstringThe space’s oldest available preview token.
-
has_pending_tasksbooleanIndicates if the space has pending tasks, such as backup, deployment, etc.
-
optionsobjectOptions for backup and language configurations.
-
ownerobjectThe user object of the space owner.
-
collaboratorsobject[]Array of collaborators in the space.
Show child properties
-
userobjectThe user object inside a collaborator object.
Show child properties
-
idnumberNumeric ID of a user.
-
firstnamestringFirst name of collaborator.
-
lastnamestringLast name of a collaborator.
-
alt_emailstringEmail of a collaborator.
-
avatarstringAvatar of a collaborator (usually an image file).
-
useridstringUser ID of a collaborator.
-
friendly_namestringFriendly name of a collaborator.
-
-
rolestringRole of the collaborator. Could be admin, editor, or custom roles.
-
user_idnumberNumeric ID of the user.
-
permissionsenum[]An array of strings that define the role’s permissions.
Permission Description read_storiesRead-only access to stories save_storiesEdit and save stories publish_storiesPublish stories unpublish_storiesUnpublish stories publish_foldersPublish folders (including stories contained within) unpublish_foldersUnpublish folders (including stories contained within) deploy_storiesDeploy pipeline stories delete_storiesPermanently delete stories edit_imageEdit images in the Image Editor view_composerUse the Visual Editor change_alternate_groupChange alternate content groupings (for internationalization or variants) move_storyMove stories between folders edit_story_slugEdit a story URL view_contentIf checked, hides all stories except those defined in allowed_paths(Permissions → Content → Folder/Content item permissions)view_foldersIf checked, hides all folders except those defined in allowed_paths(Permissions → Content → Folder/Content item permissions)view_draft_jsonView the draft JSONpayload of storiesview_published_jsonView the published JSONpayload of storiesmanage_tagsCreate, edit, or delete tags edit_datasourcesEdit datasources edit_datasource_keysEdit datasources keys access_commerceAccess e-commerce features (if available) manage_block_libraryCreate, move, and edit blocks and folders hide_asset_foldersIf checked, hides all assets and folders except those defined in asset_folder_ids(Permissions → Assets → Asset Folder Permissions) -
allowed_pathsnumber[]An array of story IDs that the role can access. If none is selected, all stories are accessible.
-
field_permissionsstring[]An array of fields visible to this role (based on the block schema). If none is selected, all fields are visible.
-
idnumberNumeric ID of a collaborator.
-
space_role_idnumberNumeric ID associated with a single custom role.
-
space_role_idsnumber[]An array of numeric IDs associated with each custom role assigned to a single collaborator.
-
space_idnumberNumeric ID of the collaborator’s space.
-
{"space": { "name": "Example Space", "domain": "https://example.storyblok.com", "uniq_domain": null, "plan": "starter", "plan_level": 0, "limits": { }, "created_at": "2018-11-10T15:33:18.402Z", "id": 680, "role": "admin", "owner_id": 1114, "story_published_hook": null, "environments": null, "stories_count": 1, "parent_id": null, "assets_count": 0, "searchblok_id": null, "request_count_today": 0, "api_requests": 1000, "exceeded_requests": 0, "billing_address": { // billing infromation }, "routes": [ ], "euid": null, "trial": true, "default_root": "page", "has_slack_webhook": false, "api_logs_per_month": [ ], "first_token": "8IE7MzYCzw5d7KLckDa38Att", "has_pending_tasks": false, "options": { }, "collaborators": [ ], "settings": [ ], "owner": { // user object }}}"options": {"branch_deployed_hook": "", // Your webhook endpoint for branch deployments"s3_bucket": "storyblok-backup", // Your S3 bucket name"aws_arn": "arn:aws:iam::12312412:role/StoryblokRemote49122","backup_frequency": "daily","languages": [ { "code": "de", "name": "German" } ]}"billing_address": {"tax_number": "ATU72706128", // Your VAT number"order_number": "Your custom order number","company": "Storyblok GmbH","email": "billing@storyblok.com","name": "Ing. Dominik Angerer","address_city": "Linz","address_country": "Austria","address_iso_country": "AT","address_line1": "Peter-Behrens-Platz 1","address_zip": "4020",}Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window) . Terms of Service (opens in a new window) apply.
Get in touch with the Storyblok community