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

# Create Session (with login)

> This endpoint create the session id with its login details.



## OpenAPI

````yaml api-reference/openapi3.json post /3/authentication/token/validate_with_login
openapi: 3.0.3
info:
  title: The Movie Database
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.themoviedb.org
security:
  - bearerAuth: []
tags:
  - name: AUTHENTICATION
  - name: ACCOUNT
  - name: CERTIFICATIONS
  - name: CHANGES
  - name: COLLECTIONS
  - name: COMPANY
  - name: CONFIGURATION
  - name: CREDIT
  - name: DISCOVER
  - name: FIND
  - name: GENRES
  - name: GUEST SESSIONS
  - name: KEYWORDS
  - name: LISTS
  - name: MOVIE LISTS
  - name: MOVIES
  - name: NETWORKS
  - name: PEOPLE LIST
  - name: PEOPLE
  - name: REVIEWS
  - name: SEARCH
  - name: TRENDING
  - name: TV SERIES LIST
  - name: TV SERIES
  - name: TV SEASONS
  - name: TV EPISODES
  - name: TV EPISODE GROUP
  - name: WATCH PROVIDERS
paths:
  /3/authentication/token/validate_with_login:
    post:
      tags:
        - AUTHENTICATION
      summary: Create Session (with login)
      description: This endpoint create the session id with its login details.
      operationId: createSessionWithLogin
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                password:
                  type: string
                  example: test123
                  description: The password used to create the account.
                request_token:
                  type: string
                  example: 9cd2a6e7bb16e67e55bc695c87d9d63e0727057b
                  description: A temporary credential used in the authentication process.
                username:
                  type: string
                  example: johnny_appleseed
                  description: The username used to create the account
            examples:
              Create Session (with login):
                value:
                  password: test123
                  request_token: 9cd2a6e7bb16e67e55bc695c87d9d63e0727057b
                  username: johnny_appleseed
      responses:
        '200':
          description: create session (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: Sat, 14 Dec 2024 16:10:03 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 1fa3f854976309f3d11907ad7125291a.cloudfront.net
                  (CloudFront)
            X-Amz-Cf-Id:
              schema:
                type: string
                example: tbkAj4DwKpVW0TyZeKDjhfY7YJ_a8NagMvZoMRawmHqjXExGJImOVQ==
            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/"b612f766ca97c2289354c0108f65de9b"
            vary:
              schema:
                type: string
                example: accept-encoding
          content:
            application/json:
              schema:
                type: object
                properties:
                  expires_at:
                    type: string
                    example: 2024-12-14 17:06:53 UTC
                    description: This is when the request token will expire.
                  request_token:
                    type: string
                    example: 9cd2a6e7bb16e67e55bc695c87d9d63e0727057b
                    description: A temporary credential used in the authentication process.
                  success:
                    type: boolean
                    example: true
                    description: This is the success or failure of our request.
              examples:
                create session (with login):
                  value:
                    expires_at: 2024-12-14 17:06:53 UTC
                    request_token: 9cd2a6e7bb16e67e55bc695c87d9d63e0727057b
                    success: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````