Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion x-api/direct-messages/manage/integrate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -268,6 +268,10 @@ Conversation and event IDs are shared between v1.1 and v2 endpoints. This enable
<Accordion title="Group creation failed">
Verify all participant IDs are valid and the users allow group DM invites.
</Accordion>

<Accordion title="Message did not pass a safety check">
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.
</Accordion>
</AccordionGroup>

---
Expand Down
3 changes: 3 additions & 0 deletions x-api/fundamentals/response-codes-and-errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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) |

---

Expand Down
Loading