Twitter API request_token
<p>I am trying to make a POST request to this endpoint: <a href="https://api.twitter.com/oauth/request_token" rel="nofollow noreferrer">https://api.twitter.com/oauth/request_token</a> (as a first step of implementing Twitter sign in)</p>

<p>As it says in the docs: <a href="https://dev.twitter.com/oauth/reference/post/oauth/request_token" rel="nofollow noreferrer">https://dev.twitter.com/oauth/reference/post/oauth/request_token</a> that does not require authentication. However, when I try it, I get the following response:</p>

<pre><code>{
    "errors": [
        {
            "code": 215,
            "message": "Bad Authentication data."
        }
    ]
}
</code></pre>

<p>Obviously I'm doing something wrong. I have a registered app and the consumer key/secret that goes with it and I'm not sure whether I need to use those somehow (in which case it's odd that it says in the docs that this endpoint does not require authentication).</p>

<p>Anyone has experience with this?</p>

<p>EDIT: Request example</p>

<pre><code>curl -X POST -d "{'oauth_callback':'http://www.callback-url.com/'}" --header "Content-Type:application/json" https://api.twitter.com/oauth/request_token
</code></pre>

<p>Also tried without setting the Content-Type header.</p>