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

# Login

> Authenticates a user by submitting an accessKey (email) and secretKey (password) to get a bearer token.



## OpenAPI

````yaml open-api-yaml/reconciliation-api/login.json POST /auth/login
openapi: 3.0.0
info:
  title: Reconciliation API
  version: 1.0.0
servers:
  - url: https://merchants-api.pandablue.com/v1
    description: Production Server
  - url: https://merchants-api-stg.pandablue.com/v1
    description: Staging Server
security: []
paths:
  /auth/login:
    post:
      tags:
        - Authentication
      summary: Login Endpoint
      description: >-
        Authenticates a user by submitting an accessKey (email) and secretKey
        (password) to get a bearer token.
      operationId: loginUser
      requestBody:
        description: User credentials for authentication
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                accessKey:
                  type: string
                  description: Configured API User email address
                secretKey:
                  type: string
                  description: Configured API User's password
      responses:
        '200':
          description: >-
            OK - Login success. A BEARER_TOKEN cookie is set in the response
            headers.
          content:
            application/json:
              schema:
                type: object
                properties:
                  idUser:
                    type: integer
                  username:
                    type: string
                  idMerchant:
                    type: integer
        '403':
          description: 'Forbidden - Failure: invalid location'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  description:
                    type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.