R
JWT Authentication for WP REST APIs Content

Restrict non-logged-in users to access REST API endpoints

Restrict non-logged-in users to access REST API endpoints.

What it does

Restrict non-logged-in users to access REST API endpoints. It is one of the abilities the JWT Authentication for WP REST APIs plugin exposes, so an AI agent connected to your site can run it for you.

Input schema

FieldTypeRequiredDescription
input string Required What you want this ability to do, in plain language.

Output schema

FieldTypeDescription
result string The result produced by the ability.

Permissions

The agent's WordPress user needs these capabilities. Grant only what's listed here, never a full admin account.

πŸ”’ edit_users

How an agent calls it

Agents call this ability by name and pass the inputs it needs. A call looks roughly like this:

wp-rest-api-authentication.restrict-non-logged-in-users-to-access-r
{
  "ability": "wp-rest-api-authentication.restrict-non-logged-in-users-to-access-r",
  "args": { "input": ... }
}

The agent runs the ability, then hands the result back for you to review before anything is published.

Keep exploring

More JWT Authentication for WP REST APIs abilities

All JWT Authentication for WP REST APIs abilities β†’
E
Enable Selective API protection
JWT Authentication for WP REST APIs
Enable Selective API protection.
D
Disable WP REST APIs
JWT Authentication for WP REST APIs
Disable WP REST APIs
C
Create users in WordPress based on third-party provider
JWT Authentication for WP REST APIs
Create users in WordPress based on third-party provider access tokens (JWT tokens) authentication.