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

# generate session token



## OpenAPI

````yaml /api-reference/openapi.json post /v1/onboarding/session-token/generate
openapi: 3.0.0
info:
  title: WattShift API
  description: An API for the WattShift Service (https://wattshift.com/partners)
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/onboarding/session-token/generate:
    post:
      tags:
        - onboarding
      summary: generate session token
      operationId: OnboardingController_generateSessionToken_v1
      parameters:
        - name: x-ws-api-key
          in: header
          description: WattShift API Key
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateSessionTokenRequestDto'
            example:
              userId: user_123456789
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateSessionTokenResponseDto'
              example:
                sessionToken: session_token_abc123
      security:
        - x-ws-api-key: []
components:
  schemas:
    GenerateSessionTokenRequestDto:
      type: object
      properties:
        userId:
          type: string
    GenerateSessionTokenResponseDto:
      type: object
      properties:
        sessionToken:
          description: session token
          type: string
      required:
        - sessionToken
  securitySchemes:
    x-ws-api-key:
      type: apiKey
      in: header
      name: x-ws-api-key
      description: WattShift API key

````