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

# Exchange credentials for a bearer token.



## OpenAPI

````yaml https://raw.githubusercontent.com/Dallas-Peters-Design-Co/photo-portfolio/main/openapi.json post /api/auth/login
openapi: 3.1.0
info:
  description: >-
    Generated from the handlers in `api/` and the schemas in `schemas/`. Do not
    edit by hand — run `pnpm openapi`.
  title: Photo portfolio API
  version: 1.0.0
servers:
  - description: Local
    url: http://localhost:3006
  - description: Production
    url: https://app.dallaspeters.com
security: []
paths:
  /api/auth/login:
    post:
      tags:
        - auth
      summary: Exchange credentials for a bearer token.
      operationId: post_api_auth_login
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Credentials'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticatedUser'
        4XX:
          description: Request rejected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        5XX:
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security: []
components:
  schemas:
    Credentials:
      $ref: '#/components/schemas/Credentials'
    AuthenticatedUser:
      $ref: '#/components/schemas/AuthenticatedUser'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
      required:
        - error
      additionalProperties: false
      description: Every failing endpoint answers with this shape.

````

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