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

> This endpoint is used to create a new session.

<Info>
  This is step 3 from the [How do I generate a session id?](/the-basics/quickstart#creating-a-session-id-version-3) guide to create a fully valid session ID once a user has validated the request token.
</Info>


## OpenAPI

````yaml post /3/authentication/session/new
openapi: 3.0.3
info:
  title: The Movie Database
  description: Reference
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.themoviedb.org
security:
  - bearerAuth: []
tags:
  - name: ACCOUNT
  - name: AUTHENTICATION
  - name: CERTIFICATION
  - name: CHANGES
  - name: COLLECTION
  - name: COMPANIES
  - name: CONFIGURATION
  - name: CREDITS
  - name: DISCOVER
  - name: FIND
  - name: GENRES
  - name: GUEST SESSION
  - name: KEYWORDS
  - name: LISTS
  - name: MOVIE LISTS
  - name: MOVIES
  - name: NETWORK
  - name: PEOPLE
  - name: PEOPLE LISTS
  - name: REVIEWS
  - name: SEARCH
  - name: TRENDING
  - name: TV SERIES LIST
  - name: TV SERIES
  - name: TV SEASONS
  - name: TV EPISODES
  - name: TV EPISODES GROUPS
  - name: WATCH PROVIDERS
paths:
  /3/authentication/session/new:
    post:
      tags:
        - AUTHENTICATION
      summary: Create Session
      description: This endpoint is used to create a new session.
      operationId: createSession
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                request_token:
                  description: A temporary credential used in the authentication process
                  type: string
                  example: 0609d2cbb31c2329a39455d843492a57f088cfd8
            examples:
              Create Session:
                value:
                  request_token: 0609d2cbb31c2329a39455d843492a57f088cfd8
      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: Thu, 26 Dec 2024 14:15:30 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 b2ba542a917451d9d85e07dba0cfd9a4.cloudfront.net
                  (CloudFront)
            X-Amz-Cf-Id:
              schema:
                type: string
                example: zWnLAoMdaokarT984Ma6zrx3G-GF-vNdMb0EN9lv4s0xmj37MizNVw==
            X-Amz-Cf-Pop:
              schema:
                type: string
                example: DFW57-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/"9c18424af545e6c26361d53bbdd08db0"
            vary:
              schema:
                type: string
                example: accept-encoding
          content:
            application/json:
              schema:
                type: object
                properties:
                  session_id:
                    type: string
                    example: 3bebb91255e4341eb34bd8910da4dfbfefdb4a88
                  success:
                    type: boolean
                    example: true
              examples:
                Create session:
                  value:
                    session_id: 3bebb91255e4341eb34bd8910da4dfbfefdb4a88
                    success: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````