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

# List Resources

> List resources with cursor pagination and an optional location filter

Returns a paginated list of resources for your company, newest first. Use this endpoint to sync your Flashquotes resource catalog with an external system, populate a picker in a custom booking tool, or check what equipment is assigned to a given location.

```bash theme={null}
curl "https://app.flashquotes.com/api/resources?limit=25&location_id=loc_7H2pQ9" \
  -H "x-api-key: $FLASHQUOTES_API_KEY"
```

## Pagination

Resources use cursor-based pagination — pass the `id` of the last resource in the previous page as `starting_after`:

```bash theme={null}
# First page
GET /api/resources?limit=25

# Next page
GET /api/resources?limit=25&starting_after=res_5M2wQ8
```

The response includes a `hasMore` flag indicating whether further pages exist.

## Filtering by location

Pass `location_id` to return only resources attached to that location. This filter combines with pagination — you can page through resources for a single location by repeating `location_id` alongside `starting_after`.

```
?location_id=loc_7H2pQ9&limit=25
```

## Expand

Resources have no expandable relations. Any `expand[]` value returns `400` with the offending path echoed as `param`.

## Sort order

Results are always sorted by `createdAt desc`. Sort order is not configurable.


## OpenAPI

````yaml GET /resources
openapi: 3.0.1
info:
  title: Flashquotes API
  description: API for accessing event, form, and invoice data from Flashquotes
  version: 1.0.0
  contact:
    name: Flashquotes Support
    email: support@flashquotes.com
servers:
  - url: https://app.flashquotes.com/api
    description: Production server
security:
  - apiKey: []
paths:
  /resources:
    get:
      summary: List Resources
      description: >-
        Paginated list of resources for your company, newest first. Supports an
        equality filter on location_id and cursor pagination. Resources have no
        expandable relations — any expand[] value returns 400.
      parameters:
        - name: limit
          in: query
          required: false
          description: Page size. Default 10, maximum 100.
          example: 25
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
        - name: starting_after
          in: query
          required: false
          description: Cursor — the id of the last resource from the previous page.
          example: res_5M2wQ8
          schema:
            type: string
        - name: location_id
          in: query
          required: false
          description: Filter to resources at this location.
          example: loc_7H2pQ9
          schema:
            type: string
      responses:
        '200':
          description: Resources retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceList'
              examples:
                Default:
                  summary: Default list response
                  value:
                    object: list
                    url: /api/resources
                    hasMore: true
                    data:
                      - object: resource
                        id: res_5M2wQ8
                        name: Espresso Cart
                        description: Mobile espresso bar with barista station
                        imageUrl: >-
                          https://cdn.flashquotes.com/resources/espresso-cart.jpg
                        category: Beverage
                        status: Active
                        locationId: loc_7H2pQ9
                        createdAt: '2026-04-12T10:15:00.000Z'
                        updatedAt: '2026-05-02T08:44:31.000Z'
        '400':
          description: Invalid query parameter (limit, starting_after, or expand path)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                InvalidLimit:
                  summary: limit out of range
                  value:
                    error:
                      type: invalid_request_error
                      code: invalid_parameter
                      message: limit must be an integer between 1 and 100
                      param: limit
                InvalidExpand:
                  summary: expand[] not accepted on resources
                  value:
                    error:
                      type: invalid_request_error
                      code: invalid_parameter
                      message: 'Unknown expand path: ''data.location'''
                      param: expand
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  type: authentication_error
                  code: missing_or_invalid_api_key
                  message: Unauthorized, invalid or missing API key
components:
  schemas:
    ResourceList:
      type: object
      example:
        object: list
        url: /api/resources
        hasMore: false
        data:
          - object: resource
            id: res_5M2wQ8
            name: Espresso Cart
            description: Mobile espresso bar with barista station
            imageUrl: https://cdn.flashquotes.com/resources/espresso-cart.jpg
            category: Beverage
            status: Active
            locationId: loc_7H2pQ9
            createdAt: '2026-04-12T10:15:00.000Z'
            updatedAt: '2026-05-02T08:44:31.000Z'
      properties:
        object:
          type: string
          enum:
            - list
        url:
          type: string
          example: /api/resources
        hasMore:
          type: boolean
          description: >-
            Whether more pages are available. If true, use the id of the last
            item in `data` as `starting_after` to fetch the next page.
        data:
          type: array
          items:
            $ref: '#/components/schemas/Resource'
      required:
        - object
        - url
        - hasMore
        - data
    ErrorResponse:
      type: object
      example:
        error:
          type: invalid_request_error
          code: invalid_parameter
          message: limit must be an integer between 1 and 100
          param: limit
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - api_error
                - invalid_request_error
                - authentication_error
                - permission_error
                - rate_limit_error
                - idempotency_error
            code:
              type: string
              description: >-
                Machine-readable error code (e.g. `not_found`,
                `invalid_parameter`, `missing_or_invalid_api_key`).
            message:
              type: string
            param:
              type: string
              description: Name of the offending parameter, when applicable.
              nullable: true
          required:
            - type
            - code
            - message
      required:
        - error
    Resource:
      type: object
      description: >-
        Default response includes all fields below. Resources have no expandable
        relations.
      properties:
        object:
          type: string
          enum:
            - resource
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        status:
          type: string
        locationId:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - object
        - id
        - locationId
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication

````