Get spaces

GET {{baseUrl}}/api/space?spaceKey=<string>&spaceKey=<string>&spaceId=<long>&spaceId=<long>&type=<string>&status=<string>&label=<string>&label=<string>&favourite=<boolean>&favouriteUserKey=<string>&expand=<string>&expand=<string>&start=0&limit=25

Returns all spaces. The returned spaces are ordered alphabetically in ascending order by space key.

Permissions required: Permission to access the Confluence site ('Can use' global permission). Note, the returned list will only contain spaces that the current user has permission to view.

Request Params

KeyDatatypeRequiredDescription
spaceKeystringThe key of the space to be returned. To return multiple spaces,
specify this parameter multiple times with different values.
spaceKeystringThe key of the space to be returned. To return multiple spaces,
specify this parameter multiple times with different values.
spaceIdstringThe id of the space to be returned. To return multiple spaces,
specify this parameter multiple times with different values.
spaceIdstringThe id of the space to be returned. To return multiple spaces,
specify this parameter multiple times with different values.
typestringFilter the results to spaces based on their type.
statusstringFilter the results to spaces based on their status.
labelstringFilter the results to spaces based on their label.
labelstringFilter the results to spaces based on their label.
favouritestringFilter the results to the favourite spaces of the user specified by
favouriteUserKey. Note, 'favourite' spaces are also
known as 'saved for later' spaces.
favouriteUserKeystringThe userKey of the user, whose favourite spaces are used to filter
the results when using the favourite parameter.

Leave blank for the current user. Use Get user to get the userKey for a user. | | expand | string | | A multi-value parameter indicating which properties of the spaces to expand, where:

  • settings returns the settings for the space, similar to Get space settings.

  • metadata.labels returns the space labels, which are used to categorize the space.

  • operations returns the operations for a space, which are used when setting permissions.

  • lookAndFeel returns information about the look and feel of the space, including the color scheme.

  • permissions returns the permissions for the space. Note that this may return permissions for deleted groups, because deleting a group doesn't remove associated space permissions.

  • icon returns information about space icon.

  • description.plain returns the description of the space.

  • description.view returns the description of the space.

  • theme returns information about the space theme.

  • homepage returns information about the space homepage. | | expand | string | | A multi-value parameter indicating which properties of the spaces to expand, where:

  • settings returns the settings for the space, similar to Get space settings.

  • metadata.labels returns the space labels, which are used to categorize the space.

  • operations returns the operations for a space, which are used when setting permissions.

  • lookAndFeel returns information about the look and feel of the space, including the color scheme.

  • permissions returns the permissions for the space. Note that this may return permissions for deleted groups, because deleting a group doesn't remove associated space permissions.

  • icon returns information about space icon.

  • description.plain returns the description of the space.

  • description.view returns the description of the space.

  • theme returns information about the space theme.

  • homepage returns information about the space homepage. | | start | number | | The starting index of the returned spaces. | | limit | number | | The maximum number of spaces to return per page. Note, this may be restricted by fixed system limits. |

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;id&quot;:26764331,&quot;key&quot;:&quot;laborum&quot;,&quot;name&quot;:&quot;in adipisicing nisi&quot;,&quot;type&quot;:&quot;sunt&quot;,&quot;status&quot;:&quot;laborum voluptate&quot;,&quot;_expandable&quot;:{&quot;settings&quot;:&quot;sit occaecat&quot;,&quot;metadata&quot;:&quot;&quot;,&quot;operations&quot;:&quot;sunt do culpa ullamco&quot;,&quot;lookAndFeel&quot;:&quot;Lorem occaecat&quot;,&quot;permissions&quot;:&quot;cupidatat dolore elit et&quot;,&quot;icon&quot;:&quot;occaecat Excepteur&quot;,&quot;description&quot;:&quot;consectetur id Excepteur mollit&quot;,&quot;theme&quot;:&quot;volupt&quot;,&quot;history&quot;:&quot;est laboris adipisicing occaecat non&quot;,&quot;homepage&quot;:&quot;in laboris&quot;},&quot;_links&quot;:{},&quot;icon&quot;:{&quot;path&quot;:&quot;irure ut&quot;,&quot;width&quot;:74794118,&quot;height&quot;:55813977,&quot;isDefault&quot;:false},&quot;description&quot;:{&quot;plain&quot;:{&quot;value&quot;:&quot;Lorem&quot;,&quot;representation&quot;:&quot;plain&quot;,&quot;embeddedContent&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},&quot;view&quot;:{&quot;value&quot;:&quot;officia sunt velit&quot;,&quot;representation&quot;:&quot;plain&quot;,&quot;embeddedContent&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}},&quot;homepage&quot;:{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;},&quot;metadata&quot;:{&quot;labels&quot;:{&quot;results&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;start&quot;:-83054779,&quot;limit&quot;:97968975,&quot;size&quot;:-70611604,&quot;_links&quot;:{}}},&quot;operations&quot;:[{&quot;operation&quot;:&quot;copy&quot;,&quot;targetType&quot;:&quot;blogpost&quot;},{&quot;operation&quot;:&quot;update&quot;,&quot;targetType&quot;:&quot;blogpost&quot;}],&quot;permissions&quot;:[{&quot;subjects&quot;:{&quot;_expandable&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;user&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;group&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;operation&quot;:{&quot;operation&quot;:&quot;administer&quot;,&quot;targetType&quot;:&quot;application&quot;},&quot;anonymousAccess&quot;:false,&quot;unlicensedAccess&quot;:false},{&quot;subjects&quot;:{&quot;_expandable&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;user&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;group&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;operation&quot;:{&quot;operation&quot;:&quot;move&quot;,&quot;targetType&quot;:&quot;comment&quot;},&quot;anonymousAccess&quot;:false,&quot;unlicensedAccess&quot;:false}],&quot;settings&quot;:{&quot;routeOverrideEnabled&quot;:false,&quot;_links&quot;:{}},&quot;theme&quot;:{},&quot;lookAndFeel&quot;:{&quot;headings&quot;:{&quot;color&quot;:&quot;\u003cstring\u003e&quot;},&quot;links&quot;:{&quot;color&quot;:&quot;\u003cstring\u003e&quot;},&quot;menus&quot;:{&quot;hoverOrFocus&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;color&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;header&quot;:{&quot;backgroundColor&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;button&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;primaryNavigation&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;secondaryNavigation&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;search&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;content&quot;:{&quot;screen&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;container&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;header&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;body&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;bordersAndDividers&quot;:{&quot;color&quot;:&quot;\u003cstring\u003e&quot;}},&quot;history&quot;:{&quot;createdDate&quot;:&quot;1999-07-22T04:19:16.365Z&quot;}},{&quot;id&quot;:-19509015,&quot;key&quot;:&quot;tempor veniam commodo aute pariatur&quot;,&quot;name&quot;:&quot;id velit ex sit&quot;,&quot;type&quot;:&quot;quis officia cillum&quot;,&quot;status&quot;:&quot;officia ipsum proident irure culpa&quot;,&quot;_expandable&quot;:{&quot;settings&quot;:&quot;aute non&quot;,&quot;metadata&quot;:&quot;laborum do deserunt&quot;,&quot;operations&quot;:&quot;Duis occaecat Excepteur&quot;,&quot;lookAndFeel&quot;:&quot;esse&quot;,&quot;permissions&quot;:&quot;mollit id in Excepteur&quot;,&quot;icon&quot;:&quot;elit velit m&quot;,&quot;description&quot;:&quot;magna ipsum dolor nisi&quot;,&quot;theme&quot;:&quot;cupidatat ex &quot;,&quot;history&quot;:&quot;ipsum esse&quot;,&quot;homepage&quot;:&quot;ipsum commodo officia&quot;},&quot;_links&quot;:{},&quot;icon&quot;:{&quot;path&quot;:&quot;occaecat enim mollit&quot;,&quot;width&quot;:28738893,&quot;height&quot;:88604543,&quot;isDefault&quot;:true},&quot;description&quot;:{&quot;plain&quot;:{&quot;value&quot;:&quot;amet Excepteur aliquip qui&quot;,&quot;representation&quot;:&quot;plain&quot;,&quot;embeddedContent&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},&quot;view&quot;:{&quot;value&quot;:&quot;in tempor&quot;,&quot;representation&quot;:&quot;plain&quot;,&quot;embeddedContent&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}},&quot;homepage&quot;:{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;},&quot;metadata&quot;:{&quot;labels&quot;:{&quot;results&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;start&quot;:33084561,&quot;limit&quot;:-91985267,&quot;size&quot;:-56212284,&quot;_links&quot;:{}}},&quot;operations&quot;:[{&quot;operation&quot;:&quot;move&quot;,&quot;targetType&quot;:&quot;space&quot;},{&quot;operation&quot;:&quot;administer&quot;,&quot;targetType&quot;:&quot;space&quot;}],&quot;permissions&quot;:[{&quot;subjects&quot;:{&quot;_expandable&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;user&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;group&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;operation&quot;:{&quot;operation&quot;:&quot;restore&quot;,&quot;targetType&quot;:&quot;attachment&quot;},&quot;anonymousAccess&quot;:false,&quot;unlicensedAccess&quot;:false},{&quot;subjects&quot;:{&quot;_expandable&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;user&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;group&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;operation&quot;:{&quot;operation&quot;:&quot;purge&quot;,&quot;targetType&quot;:&quot;blogpost&quot;},&quot;anonymousAccess&quot;:false,&quot;unlicensedAccess&quot;:false}],&quot;settings&quot;:{&quot;routeOverrideEnabled&quot;:false,&quot;_links&quot;:{}},&quot;theme&quot;:{},&quot;lookAndFeel&quot;:{&quot;headings&quot;:{&quot;color&quot;:&quot;\u003cstring\u003e&quot;},&quot;links&quot;:{&quot;color&quot;:&quot;\u003cstring\u003e&quot;},&quot;menus&quot;:{&quot;hoverOrFocus&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;color&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;header&quot;:{&quot;backgroundColor&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;button&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;primaryNavigation&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;secondaryNavigation&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;search&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;content&quot;:{&quot;screen&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;container&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;header&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;body&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;bordersAndDividers&quot;:{&quot;color&quot;:&quot;\u003cstring\u003e&quot;}},&quot;history&quot;:{&quot;createdDate&quot;:&quot;1988-11-10T03:26:30.943Z&quot;}}],&quot;start&quot;:-704604,&quot;limit&quot;:17139756,&quot;size&quot;:86679250,&quot;_links&quot;:{}}