> ## 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

> This endpoint create the session id.



## OpenAPI

````yaml api-reference/openapi3.json post /3/authentication/session/new
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/session/new:
    post:
      tags:
        - AUTHENTICATION
      summary: Create session
      description: This endpoint create the session id.
      operationId: createSession
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                request_token:
                  type: string
                  example: 97e8b69a2897f0b530ccb46c5cb352dd0a387e7c
                  description: >-
                    This is a temporary credential used in the authentication
                    process.
            examples:
              Create session:
                value:
                  request_token: 97e8b69a2897f0b530ccb46c5cb352dd0a387e7c
      responses:
        '200':
          description: create session
          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: Fri, 03 Jan 2025 16:30:40 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 de2ed3c94563fee614f35f9bc3f52d1c.cloudfront.net
                  (CloudFront)
            X-Amz-Cf-Id:
              schema:
                type: string
                example: 7-l9AZ89mkLTLezrS3bB3tPyC4vrvvicP1d1Q1FKMebx_XQ3hH9ovw==
            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/"6733ee53bb8edf180e9cf7cab97da591"
            vary:
              schema:
                type: string
                example: accept-encoding
          content:
            application/json:
              schema:
                type: object
                properties:
                  session_id:
                    type: string
                    example: 7274a757c27767f63eda2c6599afd5b280047f2d
                    description: >-
                      A token that represents a logged-in user's session after
                      they have authenticated with their TMDB account.
                  success:
                    type: boolean
                    example: true
                    description: This shows whether the output was a success or failure.
              examples:
                create session:
                  value:
                    session_id: 7274a757c27767f63eda2c6599afd5b280047f2d
                    success: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````