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

# Create Session ID(with login)

> This endpoint allows you to validate a request token by using a username and password.



## OpenAPI

````yaml api-reference/openapi.yaml post /3/authentication/token/validate_with_login
openapi: 3.0.3
info:
  title: The Movie Database API
  description: >-
    Welcome to the third version of The Movie Database (TMDB) API. Our API
    provides you with vast access to a range of movies, TV shows, actor
    information, and images.


    With the TMDB API, you can easily integrate any of these functionalities in
    your application.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.themoviedb.org
  - url: Collection
security:
  - bearerAuth: []
tags:
  - name: Validate Key
  - name: Authentication
  - name: Guest Sessions
  - name: Configuration
  - name: Account
  - name: Search
  - name: Discover
  - name: Find
  - name: Keyword
  - name: Lists
  - name: V3 vs V4
    description: >-
      There is version 4 (v4) for our list API. It contains several advanced
      improvements that differentiate it from the version 3 (v3) list. Although
      v3 lists will continue to work, you can only access these features if you
      switch to v4 lists.


      Some of the new improvements you can access on v4 lists include:


      - You can Import "unlimited" items in a single request
          
      - You can use mixed-type (movie and TV) lists
          
      - You can use private lists
          
      - You can add and use comments per item
          
      - There are more sort options
          
      - They are faster
          

      Check the v4 [documentation
      ](https://developer.themoviedb.org/v4/docs/getting-started) for more
      information.  
  - name: Collections
  - name: Companies
  - name: Networks
  - name: Trending
  - name: Movies
  - name: Movie Lists
  - name: TV Series
  - name: TV Series Lists
  - name: TV Seasons
  - name: TV Providers
  - name: TV Episode Groups
  - name: Watch Providers
  - name: People
  - name: People List
  - name: Genre
  - name: Changes
  - name: Credits
  - name: Certifications
paths:
  /3/authentication/token/validate_with_login:
    post:
      tags:
        - Authentication
      summary: Create Session ID(with login)
      description: >-
        This endpoint allows you to validate a request token by using a username
        and password.
      operationId: createSessionIdWithLogin
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                password:
                  type: string
                  example: '@Nov022003'
                  description: This represents your password.
                request_token:
                  type: string
                  example: 7ae547a16d3bba575359ceb2d6aa9e23525b1f17
                  description: This represents your request token.
                username:
                  type: string
                  example: gloriaSilver
                  description: This represents your user name.
            examples:
              Create Session ID(with login):
                value:
                  password: '@Nov022003'
                  request_token: 7ae547a16d3bba575359ceb2d6aa9e23525b1f17
                  username: gloriaSilver
      responses:
        '200':
          description: Create session ID(with login)
          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: Tue, 17 Dec 2024 22:16:02 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 ba82151bf51e4c722c5305c983d8b71e.cloudfront.net
                  (CloudFront)
            X-Amz-Cf-Id:
              schema:
                type: string
                example: S85iVIGn-mxd2EDLkUCTvUVuqnyNXeY4VEMnq7wCN-AnhwQW6kRS7g==
            X-Amz-Cf-Pop:
              schema:
                type: string
                example: IAD89-C3
            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/"9641c5dd0831165b45f4daadf4cf493a"
            vary:
              schema:
                type: string
                example: accept-encoding
          content:
            application/json:
              schema:
                type: object
                properties:
                  expires_at:
                    type: string
                    example: 2024-12-17 23:15:51 UTC
                  request_token:
                    type: string
                    example: 7ae547a16d3bba575359ceb2d6aa9e23525b1f17
                  success:
                    type: boolean
                    example: true
              examples:
                Create session ID(with login):
                  value:
                    expires_at: 2024-12-17 23:15:51 UTC
                    request_token: 7ae547a16d3bba575359ceb2d6aa9e23525b1f17
                    success: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````