> ## 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 an Access Token

> This endpoint is used to obtain an access token for authentication.



## OpenAPI

````yaml post /4/auth/access_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/access_token:
    post:
      tags:
        - AUTH
      summary: Create an Access Token
      description: This endpoint is used to obtain an access token for authentication.
      operationId: createAnAccessToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                request_token:
                  description: The request token for authentication
                  type: string
                  example: >-
                    eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxMzk5ZTI4YjczZjA4M2U0ZTQzMmZmYzUxOTc1YWFmYSIsIm5iZiI6MTc0MDk5MjcyMS4zMDg3MjMsImp0aSI6IjY3YzU3MGQxNjQ1ZDZjMmVjNTRhOWFhNiIsInNjb3BlcyI6WyJwZW5kaW5nX3JlcXVlc3RfdG9rZW4iXSwidmVyc2lvbiI6MiwiZXhwIjoxNzQwOTkzNjIxLCJyZWRpcmVjdF90byI6Imh0dHBzOi8vd3d3LnRoZW1vdmllZGIub3JnLyJ9.dnITyB2RQO4UbilSqTJzFt9XZ-SYxovjqdjfeyewhFqrf
            examples:
              Create an Access Token:
                value:
                  request_token: >-
                    eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxMzk5ZTI4YjczZjA4M2U0ZTQzMmZmYzUxOTc1YWFmYSIsIm5iZiI6MTc0MDk5MjcyMS4zMDg3MjMsImp0aSI6IjY3YzU3MGQxNjQ1ZDZjMmVjNTRhOWFhNiIsInNjb3BlcyI6WyJwZW5kaW5nX3JlcXVlc3RfdG9rZW4iXSwidmVyc2lvbiI6MiwiZXhwIjoxNzQwOTkzNjIxLCJyZWRpcmVjdF90byI6Imh0dHBzOi8vd3d3LnRoZW1vdmllZGIub3JnLyJ9.dnITyB2RQO4UbilSqTJzFt9XZ-SYxovjqdjfeyewhFqrf
      responses:
        '200':
          description: Create a Access 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:12:44 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: zZ3_PIcA1D30OQMnxKY1LZdqMQ0P0WvMzMP3U4te4eLlNJiorjidSA==
            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/"8daf579541a6123989548464849abc7a"
            vary:
              schema:
                type: string
                example: accept-encoding
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    description: The access token you want to logout
                    type: string
                    example: >-
                      eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxMzk5ZTI4YjczZjA4M2U0ZTQzMmZmYzUxOTc1YWFmYSIsIm5iZiI6MTc0MDk5MzE2NC45MjI4NzQyLCJqdGkiOiI2N2M1NzBkMTY0NWQ2YzJlYzU0YTlhYTYiLCJzdWIiOiI2NzZhOTUwYmY2OGRjMTE4Zjc3ZWNjMmEiLCJzY29wZXMiOlsiYXBpX3JlYWQiLCJhcGlfd3JpdGUiXSwidmVyc2lvbiI6Mn0.zVFZWfs3wz25844GjtZh41x9J4-8r_-xJRppJr2ehsadQ
                  account_id:
                    type: string
                    example: 676a950bf68dehye3u9120
                  status_code:
                    type: number
                    example: 1
                  status_message:
                    type: string
                    example: Success.
                  success:
                    type: boolean
                    example: true
              examples:
                Create a Access Token:
                  value:
                    access_token: >-
                      eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxMzk5ZTI4YjczZjA4M2U0ZTQzMmZmYzUxOTc1YWFmYSIsIm5iZiI6MTc0MDk5MzE2NC45MjI4NzQyLCJqdGkiOiI2N2M1NzBkMTY0NWQ2YzJlYzU0YTlhYTYiLCJzdWIiOiI2NzZhOTUwYmY2OGRjMTE4Zjc3ZWNjMmEiLCJzY29wZXMiOlsiYXBpX3JlYWQiLCJhcGlfd3JpdGUiXSwidmVyc2lvbiI6Mn0.zVFZWfs3wz25844GjtZh41x9J4-8r_-xJRppJr2ehsadQ
                    account_id: 676a950bf68dehye3u9120
                    status_code: 1
                    status_message: Success.
                    success: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````