Change DM settings
Change who can message you, read receipts and call settings. Settings you leave out stay as they are.
The API reads your current settings, applies the fields you send and saves the full set, like x.com does. Send at least one setting. No passcode needed.
Reference: https://www.twittrapi.com/docs/account-actions/client-dm-settings-update
Request
- Base URL: https://api.twittrapi.com
- URL: https://api.twittrapi.com/client/dm/settings/update
- Auth: API key in header X-API-KEY
Query parameters
raw (default): X's JSON passed through. simple: flat camelCase JSON with a fixed schema and a {data, nextCursor, previousCursor, hasNextPage} envelope. Same price. The header X-Response-Format: simple does the same.
Request body
Response
Your DM settings after the change, like /client/dm/settings.
With format=simple: {data: {allowDmsFrom, readReceipts, qualityFilter, calls: {enabled, fromEveryone, fromFollowing, fromVerified, fromAddressBook}}}.
X's own JSON (raw format, the default), passed through unchanged. The shape is X's and can change; see https://www.twittrapi.com/docs/response-format.
Changes
No recorded changes to this operation across all 1 revision of this API.