Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get spaces by key

Returns information about a number of spaces.

Example request URI(s):

http://example.com/confluence/rest/api/space?spaceKey=TST&spaceKey=ds

GET/rest/api/space
Query parameters
spaceKeySinglestring
spaceKeystring

the key of the space to update.

expandstring

a comma separated list of properties to expand on the spaces.

hasRetentionPolicystring

filter the list of spaces returned by retention policy.

limitstring

the limit of the number of spaces to return, this may be restricted by fixed system limits

startstring

the start point of the collection to return.

labelstring

filter the list of spaces returned by label.

favouritestring

filter the list of spaces returned by favourites.

typestring

filter the list of spaces returned by type (global, personal).

statusstring

filter the list of spaces returned by status (current, archived).

Request body
application/json
string
Responses
200

Returns an array of full JSON representations of found space.

idinteger<int64>
keystring
namestring
statusstring
iconReferenceIcon
Show properties
expandedboolean
idPropertiesobject
descriptionobject
homepageReferenceContent
Show properties
expandedboolean
idPropertiesobject
linksobject
typestring
metadataobject
retentionPolicyReferenceSpaceRetentionPolicy
Show properties
expandedboolean
idPropertiesobject
Try it
Server
Parameters
Bodyapplication/json
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/space' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '"string"'
Response
{
  "id": 123456,
  "key": "TEST",
  "name": "Test Space",
  "status": "current",
  "icon": {
    "expanded": true,
    "idProperties": {}
  },
  "description": {},
  "homepage": {
    "expanded": true,
    "idProperties": {}
  },
  "links": {},
  "type": "global",
  "metadata": {
    "labels": [
      "label1",
      "label2"
    ]
  },
  "retentionPolicy": {
    "expanded": true,
    "idProperties": {}
  }
}

Was this page helpful?