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

Get recent labels

Returns a paginated list of the most recent Labels used by Content within the given Space. This includes Labels used by Pages, Blog Posts, and other Content types.

Example request URI: https://example.com/confluence/rest/api/space/TEST/labels/recent

GET/rest/api/space/{spaceKey}/labels/recent
Path parameters
spaceKeystringrequired

a string containing the key of the space

Query parameters
limitstring

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

startstring

the start point of the collection to return.

Responses
200

returns a full JSON representation of a piece of content.

resultsLabel[]
Show properties
Array of Label
prefixstring
namestring
idstring
labelstring
startnumber
limitnumber
sizenumber
_linksobject
Show properties
basestring
selfstring
contextstring
nextstring
prevstring
403

If the calling user does not have permission to view the given space.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
404

Returned if there is no space with the given spaceKey.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/space/string/labels/recent' \
  -H 'Accept: application/json'
Response
{
  "results": [
    {
      "prefix": "my",
      "name": "label",
      "id": "1234",
      "label": "string"
    }
  ],
  "start": 25,
  "limit": 25,
  "size": 25,
  "_links": {
    "base": "http://localhost:8085/rest/api",
    "self": "http://localhost:8085/rest/api",
    "context": "http://localhost:8085/rest/api",
    "next": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=50",
    "prev": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=0"
  }
}

Was this page helpful?