diff --git a/x-api/direct-messages/manage/integrate.mdx b/x-api/direct-messages/manage/integrate.mdx index e345c45a6..551f915d0 100644 --- a/x-api/direct-messages/manage/integrate.mdx +++ b/x-api/direct-messages/manage/integrate.mdx @@ -251,7 +251,7 @@ Conversation and event IDs are shared between v1.1 and v2 endpoints. This enable |:-------|:------|:---------| | 400 | Invalid request | Check request body format | | 401 | Unauthorized | Verify access token | -| 403 | Forbidden | Check scopes and user permissions | +| 403 | Forbidden | Check scopes and user permissions. A `type` of `https://api.x.com/2/problems/dm-safety-rejected` means the message content did not pass a safety check | | 429 | Too Many Requests | Wait and retry | ### Common issues @@ -268,6 +268,10 @@ Conversation and event IDs are shared between v1.1 and v2 endpoints. This enable Verify all participant IDs are valid and the users allow group DM invites. + + + A 403 with `type` `https://api.x.com/2/problems/dm-safety-rejected` means the message content did not pass X's spam and safety checks for Direct Messages. The specific check is not disclosed. Instead of retrying the same message, edit the content, for example by removing or changing links, before sending again. See [Response codes and errors](/x-api/fundamentals/response-codes-and-errors#error-types) for other Direct Message problem types. + --- diff --git a/x-api/fundamentals/response-codes-and-errors.mdx b/x-api/fundamentals/response-codes-and-errors.mdx index 0b2b5b7fa..f777cda43 100644 --- a/x-api/fundamentals/response-codes-and-errors.mdx +++ b/x-api/fundamentals/response-codes-and-errors.mdx @@ -80,6 +80,9 @@ Additional fields may be present depending on the error type. | `.../rule-cap` | Too many filtered stream rules | | `.../invalid-rules` | Rule syntax error | | `.../duplicate-rules` | Rule already exists | +| `.../dm-safety-rejected` | Direct Message content did not pass X's spam and safety checks (403). The specific check is not disclosed. Edit the content, for example by removing or changing links, instead of retrying the same message | +| `.../dm-safety-limited` | Direct Message sending is temporarily limited by X's safety checks (403). Wait before sending more Direct Messages | +| `.../dm-bad-url` | A URL in the Direct Message could not be processed or is invalid (403) | ---