Sorry for the following in google translation.
I’d like to create a direct message chat bot using the API,
A response that looks like authentication failure is returned and the welcome message can not be registered.
https://developer.twitter.com/en/docs/direct-messages/welcome-messages/guides/setting-default-welcome-message
request
{“name”: “simple_welcome-message 01”, “welcome_message”: {“message_data”: {“text” “twist” : “hello”}}} ’
response
{“errors”: [{“code”: 32, “message”: “Could not authenticate you.”}]}
A question
Do I need special settings and permissions to use this API? (The use of direct message is set on the setting screen of the application)
- The Twitter account you use is a regular personal account.