MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=chatsendpm
(main | chatsendpm)
- This module requires read rights.
- This module only accepts POST requests.
- Source: MediaWikiChat
- License: GPL-2.0-or-later
Send a private message to a user
Parameters:
- message
The message to send
- This parameter is required.
- id
The user ID to send a PM to
- This parameter is required.
- Type: integer
Example:
- Send "Hello World!" to user with ID 5
- api.php?action=chatsendpm&id=5&message=Hello%20World! [open in sandbox]