> ## Documentation Index
> Fetch the complete documentation index at: https://ileolami.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Request Token

> This endpoint is used to request a new authentication token.



## OpenAPI

````yaml post /4/auth/request_token
openapi: 3.0.3
info:
  title: Version 4
  description: This API is the version 4 of TMDB API
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.themoviedb.org
security:
  - bearerAuth: []
tags:
  - name: ACCOUNT
  - name: AUTH
  - name: LISTS
    description: For this folder, you will need to create an access token
paths:
  /4/auth/request_token:
    post:
      tags:
        - AUTH
      summary: Create a Request Token
      description: This endpoint is used to request a new authentication token.
      operationId: createARequestToken
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                redirect_to:
                  description: The URL to redirect to after authentication
                  type: string
                  example: https://www.themoviedb.org/
            examples:
              Create a Request Token:
                value:
                  redirect_to: https://www.themoviedb.org/
      responses:
        '200':
          description: Create a  Request Token
          headers:
            Alt-Svc:
              schema:
                type: string
                example: h3=":443"; ma=86400
            Connection:
              schema:
                type: string
                example: keep-alive
            Content-Encoding:
              schema:
                type: string
                example: br
            Date:
              schema:
                type: string
                example: Mon, 03 Mar 2025 09:05:21 GMT
            Server:
              schema:
                type: string
                example: openresty
            Transfer-Encoding:
              schema:
                type: string
                example: chunked
            Vary:
              schema:
                type: string
                example: Origin
            Via:
              schema:
                type: string
                example: >-
                  1.1 ef1e6a56c85755f5099e202abc002990.cloudfront.net
                  (CloudFront)
            X-Amz-Cf-Id:
              schema:
                type: string
                example: L6tIiB9HPP7SlUdja-GvngKOSf2vciMyEJ9DZLpnSoLj7JxCNq9BXA==
            X-Amz-Cf-Pop:
              schema:
                type: string
                example: LOS50-P2
            X-Cache:
              schema:
                type: string
                example: Miss from cloudfront
            cache-control:
              schema:
                type: string
                example: public, max-age=0
            etag:
              schema:
                type: string
                example: W/"0916d12af4e71b2b39dc11191825b66a"
            vary:
              schema:
                type: string
                example: accept-encoding
          content:
            application/json:
              schema:
                type: object
                properties:
                  request_token:
                    type: string
                    example: >-
                      eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxMzk5ZTI4YjczZjA4M2U0ZTQzMmZmYzUxOTc1YWFmYSIsIm5iZiI6MTc0MDk5MjcyMS4zMDg3MjMsImp0aSI6IjY3YzU3MGQxNjQ1ZDZjMmVjNTRhOWFhNiIsInNjb3BlcyI6WyJwZW5kaW5nX3JlcXVlc3RfdG9rZW4iXSwidmVyc2lvbiI6MiwiZXhwIjoxNzQwOTkzNjIxLCJyZWRpcmVjdF90byI6Imh0dHBzOi8vd3d3LnRoZW1vdmllZGIub3JnLyJ9.dnITyB2RQO4UbilSqTJzFt9XZ-SYxovjqSVlSDI4DIg
                  status_code:
                    type: number
                    example: 1
                  status_message:
                    type: string
                    example: Success.
                  success:
                    type: boolean
                    example: true
              examples:
                Create a  Request Token:
                  value:
                    request_token: >-
                      eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxMzk5ZTI4YjczZjA4M2U0ZTQzMmZmYzUxOTc1YWFmYSIsIm5iZiI6MTc0MDk5MjcyMS4zMDg3MjMsImp0aSI6IjY3YzU3MGQxNjQ1ZDZjMmVjNTRhOWFhNiIsInNjb3BlcyI6WyJwZW5kaW5nX3JlcXVlc3RfdG9rZW4iXSwidmVyc2lvbiI6MiwiZXhwIjoxNzQwOTkzNjIxLCJyZWRpcmVjdF90byI6Imh0dHBzOi8vd3d3LnRoZW1vdmllZGIub3JnLyJ9.dnITyB2RQO4UbilSqTJzFt9XZ-SYxovjqSVlSDI4DIg
                    status_code: 1
                    status_message: Success.
                    success: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````