---
title: "Read current field values"
method: GET
path: "/wp-json/ocf/v1/state"
tags: ["Site Editing — OCF"]
---

# Read current field values

`GET /wp-json/ocf/v1/state`

## Request

- Base URL: `https://your-site.com`
- URL: `https://your-site.com/wp-json/ocf/v1/state`
- Auth: HTTP basic

Reads site-scoped state, or includes one item’s post-scoped fields when `post_id` is provided.

## Query parameters

- `post_id` integer

## Response `200`

Current OCF state

- OcfStateResponse
  - `ok` boolean
  - `state_version` integer
  - `fields` object
  - `post` object

## Other responses

- `401`: Invalid WordPress username or application password

---

[API](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api.md) · [All operations](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1clickwebsite/apis/1clickwebsite-api/revisions/e842c9b4e4ec?raw)
