---
ai:
  exclude: true
search:
  tags:
    - Space Property
    - GET
seo:
  description: >-
    Returns a space property. Reference for the GET
    /rest/api/space/{spaceKey}/property/{key} endpoint in the Confluence Data
    Center API.
sidebar:
  label: Get space property by key
  badge: GET
title: Get space property by key
type: openapi-operation
---
Returns a space property. 

Example request URI: 

`http://example.com/confluence/rest/api/space/TST/property/example-property-key?expand=space,version`

`GET /rest/api/space/{spaceKey}/property/{key}`

**Responses**

- `200` — Returns a full JSON representation of the space property.
- `404` — Returned if there is no space with the given key, or no property with the given key, or if the calling user does not have permission to view the space.

Response example, 200:

```json
{
  "key": "string",
  "value": {
    "value": "string"
  },
  "version": {
    "by": {
      "profilePicture": {
        "path": "http://www.example.com/path/to/image.png",
        "width": 16,
        "height": 16,
        "isDefault": true
      },
      "displayName": "Joe Smith",
      "type": "string"
    },
    "when": "2020-01-01T00:00:00Z",
    "message": "A message",
    "number": 1,
    "minorEdit": true,
    "hidden": true,
    "syncRev": "123456",
    "content": {
      "expanded": true,
      "idProperties": {}
    },
    "contentRef": {
      "expanded": true,
      "idProperties": {}
    }
  },
  "space": {
    "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": {}
    }
  },
  "spaceRef": {
    "expanded": true,
    "idProperties": {}
  }
}
```
