Skip to content

List licensed products

GET
/wp-json/wp2/license/v1/products
curl --request GET \
--url https://example.com/wp-json/wp2/license/v1/products \
--header 'X-WP-Nonce: <X-WP-Nonce>'

License-hub products and activation flags for this site/network. Requires manage_network_options or manage_options.

Products

Media typeapplication/json
object
products

License-hub products.

Array<object>
object
product_id

License product slug.

string
label

Product label.

string
api_key

Masked license API key, if any.

string
activated

License is activated on this site.

boolean
status

Status (build, post, or license — depending on the operation).

string
Examplegenerated
{
"products": [
{
"product_id": "example",
"label": "example",
"api_key": "example",
"activated": true,
"status": "example"
}
]
}

Not authenticated. WordPress REST: rest_not_logged_in / rest_forbidden. Use cookie + X-WP-Nonce or Application Password.

Media typeapplication/json
object
code

Machine-readable error or event code.

string
message

Message text (log, PIN, or password reset).

string
data

Extra WP_Error or license payload.

object
Examplegenerated
{
"code": "example",
"message": "example",
"data": {}
}

Insufficient capability or invalid REST nonce. WordPress REST: rest_forbidden / rest_cookie_invalid_nonce.

Media typeapplication/json
object
code

Machine-readable error or event code.

string
message

Message text (log, PIN, or password reset).

string
data

Extra WP_Error or license payload.

object
Examplegenerated
{
"code": "example",
"message": "example",
"data": {}
}