🎉 NewsPro 3.0 Launch Discount — use code NEWSPRO3LAUNCH for 20% OFF · ends May 31 View plans →

API Reference

Full documentation for the NewsPro REST API. Manage content, media, and users programmatically.

Users

Available Fields

FieldTypeDescription
user_idintUser ID
usernamestringUnique username (min 4 chars, lowercase)
emailstringUnique email address
firstnamestringFirst name
lastnamestringLast name
biographystringShort bio shown on author profile page
avatarstringAvatar image URL (200×200)
user_roleintRole ID — see Dashboard → Settings → Users
languagestringUI language code (e.g. en-US, he-IL)
account_suspendedint0 = active, 1 = suspended
link_websitestringPersonal website URL
link_xstringX (Twitter) profile URL
link_facebookstringFacebook profile URL
link_instagramstringInstagram profile URL
link_youtubestringYouTube channel URL
link_linkedinstringLinkedIn profile URL
created_atdatetimeRegistration date

Get Users

{"resource":"user","action":"get","filters":{"user_role":2,"account_suspended":0,"search":"john"},"fields":["user_id","username","email","firstname","lastname","user_role","created_at"],"limit":20}

Get Single User

{"resource":"user","action":"get","id":3}

Add User

{"resource":"user","action":"add","firstname":"John","lastname":"Doe","username":"johndoe","email":"john@example.com","user_role":2,"language":"en-US","account_suspended":0,"avatar":"https://example.com/avatar.jpg","biography":"Senior reporter covering international affairs","link_website":"https://johndoe.com","link_x":"https://x.com/johndoe"}

Edit User

All fields are optional except user_id.

{"resource":"user","action":"edit","user_id":3,"firstname":"John Updated","biography":"Updated bio","user_role":2,"account_suspended":0}

Delete User

{"resource":"user","action":"delete","user_id":3}
Copied to clipboard!