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

# Get bearer token

> Issue a short-lived bearer token for API authentication. The token expires in approximately 1 hour 
and provides access to the Housr API based on your client credentials and associated scopes.




## OpenAPI

````yaml openapi.yaml post /auth/token
openapi: 3.1.0
info:
  title: Housr API
  version: 1.0.0
  summary: Hourly-expiring bearer token auth with perks browse & redemption.
  description: >
    This API issues an hourly-expiring bearer token via HTTP Basic Auth and
    exposes endpoints

    for browsing, managing, and redeeming perks. Unless otherwise noted, all
    endpoints

    require `Authorization: Bearer <token>` over HTTPS.


    ## Authentication

    - Obtain a token with Basic Auth to /auth/token.

    - Token expires in 1 hour by default.

    - Optional "replicable per-hour" mode can be enabled server-side (see
    `hourly` flag).


    ## Pagination & Sorting

    - Use `page` (default 1) and `per_page` (default 25, max 100).

    - Responses include `X-Total-Count` and RFC5988 `Link` headers where
    applicable.

    - Sorting via `?sort=field,-otherField`.
servers:
  - url: https://v2.api.us.housr.com/partners
    description: Production
  - url: https://v2.staging.api.us.housr.com/partners
    description: Sandbox
security:
  - bearerAuth: []
tags:
  - name: Auth
  - name: Perks
  - name: Health Check
paths:
  /auth/token:
    post:
      tags:
        - Auth
      summary: Get bearer token
      description: >
        Issue a short-lived bearer token for API authentication. The token
        expires in approximately 1 hour 

        and provides access to the Housr API based on your client credentials
        and associated scopes.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
      responses:
        '200':
          description: Token issued
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                  expires_at:
                    type: string
                    format: date-time
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
        - basicAuth: []
components:
  responses:
    TooManyRequests:
      description: Rate limit exceeded
      headers:
        Retry-After:
          description: Seconds to wait before retrying
          schema:
            type: integer
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  schemas:
    Problem:
      type: object
      properties:
        response:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    basicAuth:
      type: http
      scheme: basic

````