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

# Gets available content states for content.

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

Gets content states that are available for the content to be set as.
Will return all enabled Space Content States.
Will only return most the 3 most recently published custom content states to match UI editor list.
To get all custom content states, use the /content-states endpoint.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to edit the content.

## Path parameters

- `id` string, required

## Response `200`

Returned if the content is found and permission is valid.

- AvailableContentStates
  - `spaceContentStates` ContentState[], required — Space suggested content states that can be used in the space. This list can be empty if there are no space content states defined in the space or if space content states are disabled in the space. All spaces start with 4 default space content states, and this can be modified in the UI under space settings.
    - `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
  - `customContentStates` ContentState[], required — Custom content states that can be used by the user on the content of this call. This list can be empty if there are no custom content states defined by the user or if custom content states are disabled in the space of the content. This will at most have 3 of the most recently published content states. Only the calling user has access to place these states on content, but all users can see these states once they are placed.
    - `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

## Other responses

- `400` — Invalid status for content. Must be in [current,draft,archived].
- `401` — Returned if the authentication credentials are incorrect or missing from the request.
- `403` — Returned if user does not have content edit 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)
