Skip to content
View as Markdown

GET WordPress User Roles​

GET
/users/roles

Retrieve all editable WordPress user roles. Returns role keys and their capabilities. Useful for building role selection UIs for user import.

Authorizations​

ApplicationPasswords

WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password

Type
API Key (header: Authorization)

Responses​

Map of WordPress user roles.

application/json
JSON
{
"roles": {
"additionalProperties": {
"name": "string",
"capabilities": {
"additionalProperties": true
}
}
}
}

Playground​

Authorization

Samples​

Powered by VitePress OpenAPI