---
title: "Get content state"
method: GET
path: "/wiki/rest/api/content/{id}/state"
tags: ["Content states"]
---

# Get content state

`GET /wiki/rest/api/content/{id}/state`

Gets the current content state of the draft or current version of content. To specify the draft version, set
the parameter status to draft, otherwise archived or current will get the relevant published state.
**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to view the content.

## Path parameters

- `id` string, required

## Query parameters

- `status` 'current' | 'draft' | 'archived'

## Response `200`

Returned if permission allows viewing of content.

- ContentStateResponse
  - `contentState` ContentState
    - `id` integer, required — identifier of content state. If 0, 1, or 2, this is a default space state
    - `name` string, required — name of content state.
    - `color` string, required — hex string representing color of state
  - `lastUpdated` string — Timestamp of last publish event where content state changed

## Other responses

- `401` — Returned if the authentication credentials are incorrect or missing from the request.
- `403` — Returned if user does not have content view permission.
- `404` — Returned if the content with given id can not be found.

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api/versions/70088490f406/schema)
