What ended and when
ended 2018-09-17 X API v1.1 legacy Direct Message endpoints ended 2018-09-17.
The X changelog entry of 17 September 2018 says the legacy Direct Message endpoints were fully retired. The newer direct_messages/events paths are not covered.
Source notice, read 2026-11-23.
Old call and revived code
direct_messages (legacy): GET /1.1/direct_messages.json
The old call
- Method
- GET
- Host
api.twitter.com; the registry also listsapi.x.com- Path
/1.1/direct_messages.json- Parameters
- none listed
paths from the old API reference, not re-read; the changelog names the group only
Example call built from the registry
JavaScript
async function oldCall() {
const res = await fetch(`https://api.twitter.com/1.1/direct_messages.json`, { method: "GET" });
return res.json();
}
Python
def old_call():
response = requests.get(f"https://api.twitter.com/1.1/direct_messages.json")
return response.json()
curl
curl -X GET "https://api.twitter.com/1.1/direct_messages.json"
No FoxAPIs equivalent
FoxAPIs has no direct message endpoint. Nothing is mapped.
The example call is left as it is, with the engine's marker.
JavaScript
async function oldCall() {
// RESURRECT: no FoxAPIs equivalent
const res = await fetch(`https://api.twitter.com/1.1/direct_messages.json`, { method: "GET" });
return res.json();
}
Python
def old_call():
# RESURRECT: no FoxAPIs equivalent
response = requests.get(f"https://api.twitter.com/1.1/direct_messages.json")
return response.json()
curl
# RESURRECT: no FoxAPIs equivalent
curl -X GET "https://api.twitter.com/1.1/direct_messages.json"
Try it
There is no sample button on this page, because no compat route with a recorded sample exists for it.
direct_messages(legacy): No FoxAPIs equivalent. FoxAPIs has no direct message endpoint. Nothing is mapped.