REST API endpoints
The WordPress REST API endpoints Whalesync uses under the hood
Last updated
Was this helpful?
The WordPress REST API endpoints Whalesync uses under the hood
Whalesync talks to your site through the standard WordPress REST API (the wp-json endpoints). This page lists the specific endpoints we call and what each one is for. It's mostly here for the curious and for anyone debugging a connection at the network level — you don't need to know any of this to set up a sync.
Throughout, {type} is a post type slug (for example posts, pages, or a custom post type) and {id} is a record's ID.
Auth / connection probe
GET
wp/v2/posts
per_page=5&context=edit
Discover REST root
HEAD / GET
site root (reads Link header) → wp-json/
—
List available post types (tables)
GET
wp/v2/types
—
Fetch a table's field schema
OPTIONS
wp/v2/{type}
—
Poll / list records
GET
wp/v2/{type}
per_page=100 + page=n&orderby=id&order=asc (or offset=n); status=any
Get one record
GET
wp/v2/{type}/{id}
status=any
Create record (new row)
POST
wp/v2/{type}
—
Update record
PATCH
wp/v2/{type}/{id}
—
Delete record
DELETE
wp/v2/{type}/{id}
force=true
Upload media
POST
wp/v2/media
raw file body + Content-Disposition
Get media
GET
wp/v2/media/{id}
—
Last updated
Was this helpful?
Was this helpful?

