Create an application password and test it
In WP admin, open Users > Profile, scroll to Application Passwords, give it a name and copy the password it shows. It only works for the REST API and can be revoked on its own, so a script never needs your real login.
This first request proves it works: it asks WordPress who you are. If your name comes back, every later request will be authorised. Keep the password out of files you share; these examples use shell variables.

The whole job is five requests, all signed with one application password. auth-check.shShell # WP admin > Users > Profile > Application Passwords: add one, then test it. SITE="https://www.your-site.example" AUTH="admin:abcd efgh ijkl mnop qrst uvwx" curl -s -u "$AUTH" "$SITE/wp-json/wp/v2/users/me?context=edit" | grep -o '"name":"[^"]*"'Describe the post type and its fields in JSON
This is the shape JetEngine's post type screen saves: general settings, labels, advanced settings and a list of meta fields.
show_in_restappears twice on purpose. On the post type it puts the entries in the REST API; on each field it puts that field's value there too.
show_in_rest is set twice: once for the entries, once per field. post-type.jsonJSON { "general_settings": { "name": "Guides", "slug": "guide" }, "labels": { "name": "Guides", "singular_name": "Guide", "menu_name": "Guides" }, "advanced_settings": { "public": true, "show_in_rest": true, "has_archive": true, "rewrite_slug": "guides", "supports": ["title", "editor", "excerpt", "thumbnail", "elementor"] }, "meta_fields": [ { "title": "Time needed", "name": "time_needed", "object_type": "field", "type": "text", "show_in_rest": true, "rest_api": true }, { "title": "Works on", "name": "versions", "object_type": "field", "type": "text", "show_in_rest": true, "rest_api": true } ] }The WordPress REST API handbook, in the page written by James Nylen, says what happens to fields that are not registered properly:
Otherwise the meta fields will not appear in the REST API.
James Nylen, WordPress REST API Handbook, "Modifying Responses" JetEngine registers the meta for you, but it only exposes a field to the REST API when that field's own
show_in_restis on. The post type setting is not enough on its own, which is why the JSON in this step sets both.Send it to JetEngine to create the post type
/jet-engine/v2/add-post-typeis the route JetEngine's own admin screen uses, so it needs an administrator. A successful reply includes"success":trueand the new item's ID. JetEngine also hasget-post-typeandedit-post-typeroutes for later changes; to edit, read the item first and send back the whole definition with your change, so nothing is dropped.
One request creates the post type. create-post-type.shShell curl -s -u "$AUTH" -H "Content-Type: application/json" \ --data @post-type.json \ "$SITE/wp-json/jet-engine/v2/add-post-type"Add a taxonomy for the new post type
Taxonomies follow the same pattern with
add-taxonomy.object_typeattaches it to the post type, and the rewrite slug sets its address. On this site the same call made the Topic and the "What you need" filters you can see on the Lab guide list.
The taxonomy follows the same pattern as the post type. create-taxonomy.shShell curl -s -u "$AUTH" -H "Content-Type: application/json" \ --data '{ "general_settings": { "name": "Topics", "slug": "guide-topic", "object_type": ["guide"] }, "labels": { "name": "Topics", "singular_name": "Topic" }, "advanced_settings": { "public": true, "show_in_rest": true, "hierarchical": true, "rewrite_slug": "guides/topic" } }' \ "$SITE/wp-json/jet-engine/v2/add-taxonomy"The register_post_type reference describes the post type setting in six words:
Whether to include the post type in the REST API.
WordPress Developer Resources, register_post_type() reference JetEngine passes its
show_in_restsetting straight to that argument. Turning it on gives the post type its own/wp/v2/route, which is what steps 5 and 6 use, and it is also what lets the block editor and Elementor's dynamic tags read the entries.Create an entry with its custom fields
Entries go through the standard WordPress route for the post type,
/wp/v2/guidehere, with the field values undermeta. Send every value as a string, even for a JetEngine number field: when I sent a height as a number, WordPress answered 400 ("is not of type string") but still created the post, which left a duplicate to clean up.
Send a number and WordPress answers 400, yet the post is still created. create-entry.shShell curl -s -u "$AUTH" -H "Content-Type: application/json" \ --data '{ "title": "My first guide", "status": "draft", "meta": { "time_needed": "15 minutes", "versions": "WordPress 7.2" } }' \ "$SITE/wp-json/wp/v2/guide"Read the entry back and check the meta
context=editreturns the stored values. Ifmetacomes back empty, the field is missingshow_in_rest: that was exactly what happened when this site's collection was first built, and setting it on each field fixed it at once. Every guide in the Elementor 4 element gallery's collection loop reads these fields.
Empty meta means a field is missing show_in_rest. read-back.shShell curl -s -u "$AUTH" "$SITE/wp-json/wp/v2/guide?status=draft&context=edit" | grep -o '"meta":{[^}]*}'
What creating a JetEngine post type over REST does not do
The /jet-engine/v2/ routes are the ones JetEngine's admin screens use, not a documented public API, so a JetEngine update could change them. Read an item back before you edit it.
Some JetEngine features did not persist when saved this way on this site: a Query Builder query created over REST did not stay saved, so queries were set up in the editor instead.
It does not enable Elementor for the post type. Tick the post type under Elementor > Settings > Post Types, or Elementor content on its entries is discarded when you publish.
All the JetEngine post type REST code
Each file below is complete. Copy it, or download it under the name shown.
# WP admin > Users > Profile > Application Passwords: add one, then test it.
SITE="https://www.your-site.example"
AUTH="admin:abcd efgh ijkl mnop qrst uvwx"
curl -s -u "$AUTH" "$SITE/wp-json/wp/v2/users/me?context=edit" | grep -o '"name":"[^"]*"'{
"general_settings": { "name": "Guides", "slug": "guide" },
"labels": { "name": "Guides", "singular_name": "Guide", "menu_name": "Guides" },
"advanced_settings": {
"public": true,
"show_in_rest": true,
"has_archive": true,
"rewrite_slug": "guides",
"supports": ["title", "editor", "excerpt", "thumbnail", "elementor"]
},
"meta_fields": [
{ "title": "Time needed", "name": "time_needed", "object_type": "field", "type": "text", "show_in_rest": true, "rest_api": true },
{ "title": "Works on", "name": "versions", "object_type": "field", "type": "text", "show_in_rest": true, "rest_api": true }
]
}curl -s -u "$AUTH" -H "Content-Type: application/json" \
--data @post-type.json \
"$SITE/wp-json/jet-engine/v2/add-post-type"curl -s -u "$AUTH" -H "Content-Type: application/json" \
--data '{
"general_settings": { "name": "Topics", "slug": "guide-topic", "object_type": ["guide"] },
"labels": { "name": "Topics", "singular_name": "Topic" },
"advanced_settings": { "public": true, "show_in_rest": true, "hierarchical": true, "rewrite_slug": "guides/topic" }
}' \
"$SITE/wp-json/jet-engine/v2/add-taxonomy"curl -s -u "$AUTH" -H "Content-Type: application/json" \
--data '{ "title": "My first guide", "status": "draft", "meta": { "time_needed": "15 minutes", "versions": "WordPress 7.2" } }' \
"$SITE/wp-json/wp/v2/guide"curl -s -u "$AUTH" "$SITE/wp-json/wp/v2/guide?status=draft&context=edit" | grep -o '"meta":{[^}]*}'JetEngine post type over REST questions
Can I create a JetEngine post type without WP admin?
Yes. Send JetEngine the same requests its settings screen sends, authenticated with an application password belonging to an administrator.
Why are my JetEngine fields missing from the REST API?
Each field needs show_in_rest switched on. The post type setting alone does not expose field values.
Is an application password safe to use in scripts?
It only works for the REST API, has its own name and can be revoked without changing your login. Keep it out of shared files.
Can I edit the post type later the same way?
Yes, with get-post-type and edit-post-type. Read the item first and send back the full definition with your change.
Why did my entry save but the meta did not?
A value did not match what the REST API expects, for example a number where JetEngine registered the field as a string. WordPress rejects the request with a 400 but can still create the post.
Do I need JetEngine for this?
For these routes, yes. Without JetEngine, register_post_type() and register_meta() in a small plugin do the same job.
Will Elementor work on the new post type?
Only after you tick it in Elementor > Settings > Post Types.