Steps for User Authentication with TMDB API

1

Step 1

Get your Bearer token:

Visit the Authentication page to know how to get your bearer token

2

Step 2

Create a Request Token:

  • Call the https://api.themoviedb.org/3/authentication/token/new endpoint to generate a request token.

Your Request token expires after 60 minutes (1 hour) if not used.

3

Step 3

Ask User to Approve the Token:

  • Redirect the user to TMDB’s authentication page to approve the request token:
https://www.themoviedb.org/authenticate/{REQUEST_TOKEN}

Replace the {REQUEST_TOKEN} with your request_token

4

Step 4

Create a Session ID:

  • Once the user approves the request token, call the https://api.themoviedb.org/3/authentication/session/new endpoint with the approved token to create a session ID.

In our quickstart page we will be making an API request using our bearer token to one of the endpoint