Skip to main content
POST
/
4
/
auth
/
request_token
Create Request Token
curl --request POST \
  --url https://api.themoviedb.org/4/auth/request_token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "redirect_to": "https://www.themoviedb.org/"
}
'
{
  "success": true,
  "status_code": 1,
  "status_message": "Success",
  "request_token": "1e2345678"
}

This method generates a new request token that you can ask a user to approve. Read more

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
redirect_to
string
required

Redirect URL or callback.

Response

200 - application/json

Successful response

success
boolean

Indicates success

status_code
integer

A numeric code indicating the result of the request.

status_message
string

A message providing additional details about the response status.

request_token
string

Token for request