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

# Sign In

> Sign in a user and return authentication tokens.



## OpenAPI

````yaml post /auth/signin
openapi: 3.1.0
info:
  title: Flow API
  description: Content-addressing backend with Git-like versioning
  version: 1.0.0
servers:
  - url: https://api.yertle.com
    description: Production
security: []
paths:
  /auth/signin:
    post:
      tags:
        - authentication
      summary: Sign In
      description: Sign in a user and return authentication tokens.
      operationId: sign_in_auth_signin_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignInRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignInResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SignInRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
          description: User email address
        password:
          type: string
          minLength: 1
          title: Password
          description: User password
      type: object
      required:
        - email
        - password
      title: SignInRequest
      description: Request model for user sign in.
    SignInResponse:
      properties:
        message:
          type: string
          title: Message
          description: Success message
        user:
          additionalProperties: true
          type: object
          title: User
          description: User information
        accessToken:
          type: string
          title: Accesstoken
          description: Access token for API requests
        idToken:
          type: string
          title: Idtoken
          description: ID token with user claims
        refreshToken:
          type: string
          title: Refreshtoken
          description: Refresh token for token renewal
        tokenType:
          type: string
          title: Tokentype
          description: Token type
          default: Bearer
        expiresIn:
          type: integer
          title: Expiresin
          description: Token expiry time in seconds
        tokens:
          $ref: '#/components/schemas/TokenResponse'
          description: Authentication tokens (for backward compatibility)
      type: object
      required:
        - message
        - user
        - accessToken
        - idToken
        - refreshToken
        - expiresIn
        - tokens
      title: SignInResponse
      description: Response model for successful sign in.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TokenResponse:
      properties:
        accessToken:
          type: string
          title: Accesstoken
          description: JWT access token
        idToken:
          type: string
          title: Idtoken
          description: JWT ID token
        refreshToken:
          type: string
          title: Refreshtoken
          description: JWT refresh token
        tokenType:
          type: string
          title: Tokentype
          description: Token type
          default: Bearer
        expiresIn:
          type: integer
          title: Expiresin
          description: Access token expiry in seconds
      type: object
      required:
        - accessToken
        - idToken
        - refreshToken
        - expiresIn
      title: TokenResponse
      description: Response model for authentication tokens (mimics Cognito response).
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````