Skip to content

Authentication

HonoCommerce uses WooCommerce-compatible authentication with consumer key and secret pairs.

Authentication uses consumer_key and consumer_secret query parameters or HTTP Basic auth, matching the WooCommerce REST API standard.

Terminal window
curl "http://localhost:3000/wp-json/wc/v3/products?consumer_key=ck_xxx&consumer_secret=cs_xxx"
Terminal window
curl -u "ck_xxx:cs_xxx" http://localhost:3000/wp-json/wc/v3/products

API keys have read, write, or read/write permissions — identical to WooCommerce’s permission model.