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

# Request A Resource Loan

> Requests to borrow an available shared resource. Repeated active requests are idempotent.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/community/resources/{resource}/loans
openapi: 3.1.0
info:
  title: TheFaithApp Partner API
  version: 1.0.0
  description: >-
    The v1 API for third-party apps that sign in TheFaithApp members and access
    church-scoped content and workflows.
  contact:
    name: TheFaithApp Support
    email: support@thefaithapp.com
servers:
  - url: https://api.thefaithapp.com
    description: Production
security:
  - apiKeyAuth: []
    bearerAuth: []
tags:
  - name: Hosted Auth
    description: Sign members in through the hosted TheFaithApp authentication flow.
  - name: Core Experience
    description: Load member context and the personalized home experience.
  - name: Content
    description: >-
      Read sermons, media, YouTube videos, devotionals, and streaming
      configuration.
  - name: Engagement
    description: Manage member favorites and devotional bookmarks.
  - name: Churches
    description: Read church profiles, public directory records, and branch information.
  - name: Events & Volunteers
    description: >-
      Browse events and volunteer opportunities, then manage registrations and
      commitments.
  - name: Notifications & Bulletins
    description: Read church and member notifications and published bulletins.
  - name: Prayer
    description: Submit a prayer request for the authenticated member.
  - name: Member Connections
    description: Manage the member’s campus and ministry connections.
  - name: Community Groups
    description: >-
      Discover groups and manage membership, feeds, attendance, study guides,
      and leader notes.
  - name: Community Preferences & Research
    description: >-
      Manage community preferences, summaries, and consent-based research
      participation.
  - name: Resource Sharing
    description: Offer shared resources and manage member loan requests and transitions.
  - name: Mutual Aid
    description: >-
      Manage needs and offers, private responses, safety reports, and member
      activity.
  - name: Analytics
    description: Record product analytics events and retrieve aggregate metrics.
  - name: Notification Analytics
    description: Record and summarize notification delivery, open, and click events.
paths:
  /v1/community/resources/{resource}/loans:
    post:
      tags:
        - Resource Sharing
      summary: Request A Resource Loan
      description: >-
        Requests to borrow an available shared resource. Repeated active
        requests are idempotent.
      operationId: requestCommunityResourceLoan
      parameters:
        - name: resource
          in: path
          required: true
          description: Shared resource identifier.
          schema:
            type: integer
            minimum: 1
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                private_note:
                  type:
                    - string
                    - 'null'
                  maxLength: 500
            example:
              private_note: Needed for a family visit next weekend.
      responses:
        '201':
          description: Loan request created or existing active request returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunityResourceLoanResponse'
              examples:
                success:
                  summary: Loan request created or existing active request returned.
                  value:
                    status: Success
                    data:
                      loan:
                        id: 511
                        status: requested
                        private_note: Needed for a family visit next weekend.
                        requested_at: '2026-07-18T09:30:00.000000Z'
                        checked_out_at: null
                        due_at: null
                        returned_at: null
                        chat_channel_id: null
                        resource:
                          id: 206
                          type: lending_item
                          title: Folding wheelchair
                          description: >-
                            A lightweight folding wheelchair available for
                            short-term use.
                          condition: good
                          status: available
                          default_loan_days: 14
                          approximate_area: Central Campus
                          is_owner: false
                          managed_by: member
                          created_at: '2026-07-18T09:30:00.000000Z'
        '401':
          description: Missing or invalid API key or member bearer token.
        '403':
          description: The member is not eligible for community resources.
        '404':
          description: The resource was not found or community resources are disabled.
        '409':
          description: The resource is not currently available.
        '422':
          description: The member owns the item or the private note is invalid.
components:
  schemas:
    CommunityResourceLoanResponse:
      type: object
      properties:
        status:
          type: string
          const: Success
        data:
          type: object
          properties:
            loan:
              $ref: '#/components/schemas/CommunityResourceLoan'
    CommunityResourceLoan:
      type: object
      properties:
        id:
          type: integer
        status:
          type: string
          enum:
            - requested
            - approved
            - declined
            - checked_out
            - overdue
            - returned
            - cancelled
        private_note:
          type:
            - string
            - 'null'
        requested_at:
          type:
            - string
            - 'null'
          format: date-time
        checked_out_at:
          type:
            - string
            - 'null'
          format: date-time
        due_at:
          type:
            - string
            - 'null'
          format: date-time
        returned_at:
          type:
            - string
            - 'null'
          format: date-time
        chat_channel_id:
          type:
            - integer
            - 'null'
        resource:
          type:
            - object
            - 'null'
          description: >-
            Summary of the resource associated with the loan. Nested loan
            history is omitted.
        borrower:
          type:
            - object
            - 'null'
          description: >-
            Borrower summary when the authenticated member or church role may
            view it.
          properties:
            id:
              type: integer
            name:
              type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Client API key copied from Developer Access in the TheFaithApp
        dashboard.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum
      description: Member access token returned by `POST /v1/auth/token`.

````