PropSWOT Gpt API

The Gpt API from PropSWOT — 16 operation(s) for gpt.

GitHub OpenAPI

Operations 16

POST /api/gpt/tools/what_needs_attention What needs my attention today? #
POST /api/gpt/tools/get_org_snapshot Portfolio health snapshot (red/yellow/green) #
POST /api/gpt/tools/list_open_triages List open work orders #
POST /api/gpt/tools/get_work_order Get a single work order #
POST /api/gpt/tools/get_troubleshooting_steps Generate tenant troubleshooting steps (bilingual) #
POST /api/gpt/tools/check_self_help_eligibility Check if tenant self-help is allowed for this issue #
POST /api/gpt/tools/lookup_appliance Look up appliance make, model, and age #
POST /api/gpt/tools/get_asset_context Get enriched maintenance context for a unit #
POST /api/gpt/tools/list_vendors List org vendors #
POST /api/gpt/tools/get_vendor_suggestions Get ranked vendor suggestions for an issue #
POST /api/gpt/tools/assign_vendor Assign a vendor to a work order (two-step) #
POST /api/gpt/tools/create_work_order Create a new work order (two-step) #
POST /api/gpt/tools/update_work_order_status Update work order status (two-step) #
POST /api/gpt/tools/sms_tenant Send an SMS to a tenant (two-step) #
POST /api/gpt/tools/update_snapshot_preferences Update org health snapshot thresholds #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/propswot-com:propswot-com-gpt-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

propswot-com-gpt-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PropSWOT Maintenance Intelligence Gpt API
  description: PropSWOT is a maintenance triage and dispatch platform for property managers. This API exposes 16 tools for work order lookups, vendor intelligence, bilingual tenant self-help, and confirmed write actions. All data is scoped to the property manager's organization via API key.
  version: 1.0.0
  contact:
    name: PropSWOT Support
    url: https://www.propswot.com/mcp
servers:
- url: https://pm.propswot.com
  description: PropSWOT PM portal
security:
- ApiKeyAuth: []
tags:
- name: Gpt
paths:
  /api/gpt/tools/what_needs_attention:
    post:
      operationId: whatNeedsAttention
      summary: What needs my attention today?
      description: Returns a prioritized list of stalled work orders and unresponsive tenants. Call this at the start of every session for a property manager morning briefing. No parameters required.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Prioritized attention list
          content:
            application/json:
              schema:
                type: object
                properties:
                  unresponsive_tenants:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        address:
                          type: string
                        issue:
                          type: string
                        sms_sent_hours_ago:
                          type: integer
                        secure_token:
                          type: string
                  pending_vendor:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        address:
                          type: string
                        issue:
                          type: string
                        open_hours:
                          type: integer
                  summary:
                    type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/get_org_snapshot:
    post:
      operationId: getOrgSnapshot
      summary: Portfolio health snapshot (red/yellow/green)
      description: Returns the org's traffic-light health view. Red = needs immediate action (stalled >72h). Yellow = needs attention (24–72h). Green = on track.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Health snapshot
          content:
            application/json:
              schema:
                type: object
                properties:
                  red:
                    type: object
                    properties:
                      count:
                        type: integer
                      items:
                        type: array
                        items:
                          type: object
                  yellow:
                    type: object
                    properties:
                      count:
                        type: integer
                  green:
                    type: object
                    properties:
                      count:
                        type: integer
                  summary_text:
                    type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/list_open_triages:
    post:
      operationId: listOpenTriages
      summary: List open work orders
      description: Returns a filtered list of open work orders / triages. Filter by status or address.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  enum:
                  - pending
                  - in_progress
                  - escalated
                  - tenant_unresponsive
                  - all
                  description: Filter by status. Defaults to all open.
                limit:
                  type: integer
                  minimum: 1
                  maximum: 50
                  default: 20
                property_address:
                  type: string
                  description: Partial address to filter by, e.g. "123 Main".
      responses:
        '200':
          description: Open triages list
          content:
            application/json:
              schema:
                type: object
                properties:
                  triages:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        status:
                          type: string
                        address:
                          type: string
                        issue:
                          type: string
                        tenant:
                          type: string
                          nullable: true
                        vendor_assigned:
                          type: boolean
                        vendor_name:
                          type: string
                          nullable: true
                        open_hours:
                          type: integer
                  total:
                    type: integer
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/get_work_order:
    post:
      operationId: getWorkOrder
      summary: Get a single work order
      description: Fetch a work order by numeric ID or secure token. Returns full details including tenant and vendor info.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - id
              properties:
                id:
                  description: Numeric triage ID or secure token string.
                  oneOf:
                  - type: integer
                  - type: string
      responses:
        '200':
          description: Work order details
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  status:
                    type: string
                  address:
                    type: string
                  issue:
                    type: string
                  tenant:
                    type: string
                    nullable: true
                  vendor_name:
                    type: string
                    nullable: true
                  open_hours:
                    type: integer
                  self_help_link_sent:
                    type: boolean
                  self_help_link_clicked:
                    type: boolean
                  tenant_indicated_fixed:
                    type: boolean
                  self_help_url:
                    type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/get_troubleshooting_steps:
    post:
      operationId: getTroubleshootingSteps
      summary: Generate tenant troubleshooting steps (bilingual)
      description: AI-generated safe troubleshooting steps a tenant can try before a vendor is dispatched. Resolves ~30% of issues without a service call. Supports English and Spanish.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - issue_description
              properties:
                issue_description:
                  type: string
                  description: Plain language description, e.g. "AC not cooling".
                language:
                  type: string
                  enum:
                  - en
                  - es
                  default: en
                appliance_context:
                  type: string
                  description: Optional appliance brand/model for targeted steps.
      responses:
        '200':
          description: Troubleshooting steps
          content:
            application/json:
              schema:
                type: object
                properties:
                  issue:
                    type: string
                  language:
                    type: string
                  troubleshooting_steps:
                    type: string
                  self_help_eligible:
                    type: boolean
                  disclaimer:
                    type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/check_self_help_eligibility:
    post:
      operationId: checkSelfHelpEligibility
      summary: Check if tenant self-help is allowed for this issue
      description: Checks whether the org allows self-help deflection for a given maintenance category.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - issue_description
              properties:
                issue_description:
                  type: string
                category:
                  type: string
                  description: Optional explicit category (hvac, plumbing, electrical, appliance, general).
      responses:
        '200':
          description: Eligibility result
          content:
            application/json:
              schema:
                type: object
                properties:
                  issue:
                    type: string
                  detected_category:
                    type: string
                  self_help_eligible:
                    type: boolean
                  notes:
                    type: string
                    nullable: true
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/generate_self_help_link:
    post:
      operationId: generateSelfHelpLink
      summary: Generate a tenant self-help link
      description: Returns the PropSWOT tenant microsite URL for a work order. Share via SMS or email so the tenant can upload photos and try self-help steps. Supports bilingual display (en/es).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - triage_id
              properties:
                triage_id:
                  type: integer
                language:
                  type: string
                  enum:
                  - en
                  - es
                  default: en
      responses:
        '200':
          description: Self-help link
          content:
            application/json:
              schema:
                type: object
                properties:
                  triage_id:
                    type: integer
                  self_help_url:
                    type: string
                  language:
                    type: string
                  suggested_sms_en:
                    type: string
                  suggested_sms_es:
                    type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/lookup_appliance:
    post:
      operationId: lookupAppliance
      summary: Look up appliance make, model, and age
      description: Returns the make, model, and age of an appliance at a specific unit. Call this before dispatching a vendor so they arrive with the right parts.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - property_address
              - unit_number
              - appliance_type
              properties:
                property_address:
                  type: string
                unit_number:
                  type: string
                appliance_type:
                  type: string
                  description: hvac, water_heater, dishwasher, refrigerator, oven, garbage_disposal, washer, dryer, microwave, or other
      responses:
        '200':
          description: Appliance record
          content:
            application/json:
              schema:
                type: object
                properties:
                  found:
                    type: boolean
                  brand:
                    type: string
                    nullable: true
                  model:
                    type: string
                    nullable: true
                  age_years:
                    type: integer
                    nullable: true
                  installation_date:
                    type: string
                    nullable: true
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/get_asset_context:
    post:
      operationId: getAssetContext
      summary: Get enriched maintenance context for a unit
      description: Returns appliance records and the last 5 triage events for a unit. Use this when preparing a vendor pre-arrival brief to improve One-Trip Fix rates.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                triage_id:
                  type: integer
                  description: If provided, resolves address and unit automatically.
                property_address:
                  type: string
                unit_number:
                  type: string
                issue_description:
                  type: string
      responses:
        '200':
          description: Asset context
          content:
            application/json:
              schema:
                type: object
                properties:
                  address:
                    type: string
                  unit:
                    type: string
                  appliances_on_file:
                    type: array
                    items:
                      type: object
                  recent_triage_history:
                    type: array
                    items:
                      type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/list_vendors:
    post:
      operationId: listVendors
      summary: List org vendors
      description: Returns the org's vendor list with contact details and performance data.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                trade:
                  type: string
                  description: 'Filter by trade: plumbing, hvac, electrical, appliance, general, roofing, etc.'
                preferred_only:
                  type: boolean
                  default: false
                limit:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 30
      responses:
        '200':
          description: Vendor list
          content:
            application/json:
              schema:
                type: object
                properties:
                  vendors:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        trade:
                          type: string
                        phone:
                          type: string
                          nullable: true
                        is_preferred:
                          type: boolean
                        rating:
                          type: number
                          nullable: true
                  total:
                    type: integer
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/get_vendor_suggestions:
    post:
      operationId: getVendorSuggestions
      summary: Get ranked vendor suggestions for an issue
      description: Returns up to 5 ranked vendor suggestions for a maintenance issue. Accounts for org rules (exclusive/preferred/blocked), trade match, and performance history. Use this when deciding who to assign to a work order.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - issue_description
              properties:
                issue_description:
                  type: string
                property_address:
                  type: string
                  description: Optional — used to apply property-specific vendor rules.
      responses:
        '200':
          description: Ranked vendor suggestions
          content:
            application/json:
              schema:
                type: object
                properties:
                  detected_trade:
                    type: string
                    nullable: true
                  suggested:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        trade:
                          type: string
                        score:
                          type: number
                        suggestion_reason:
                          type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/assign_vendor:
    post:
      operationId: assignVendor
      summary: Assign a vendor to a work order (two-step)
      description: 'Assigns a vendor to a work order. Requires "write" scope. STEP 1: Call without confirmation_id → PropSWOT returns a summary + confirmation_id. Show the summary to the user and ask them to confirm. STEP 2: Re-call with the confirmation_id to execute. PropSWOT will never assign a vendor without this confirmation.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - triage_id
              - vendor_name_or_id
              properties:
                triage_id:
                  type: integer
                vendor_name_or_id:
                  type: string
                  description: Vendor name (fuzzy match) or UUID.
                confirmation_id:
                  type: string
                  description: From step 1. Include to execute.
      responses:
        '200':
          description: Pending confirmation or execution result
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ConfirmationResponse'
                - type: object
                  properties:
                    executed:
                      type: boolean
                    result:
                      type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Write scope required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/create_work_order:
    post:
      operationId: createWorkOrder
      summary: Create a new work order (two-step)
      description: 'Creates a new maintenance work order. Requires "write" scope. STEP 1: Call without confirmation_id → returns summary + confirmation_id. Show to user. STEP 2: Re-call with confirmation_id to create.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - property_address
              - issue_description
              properties:
                property_address:
                  type: string
                unit_number:
                  type: string
                issue_description:
                  type: string
                  minLength: 10
                tenant_name:
                  type: string
                tenant_phone:
                  type: string
                vendor_name_or_id:
                  type: string
                  description: Optionally assign a vendor at creation time.
                confirmation_id:
                  type: string
      responses:
        '200':
          description: Pending confirmation or new work order
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ConfirmationResponse'
                - type: object
                  properties:
                    executed:
                      type: boolean
                    result:
                      type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Write scope required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/update_work_order_status:
    post:
      operationId: updateWorkOrderStatus
      summary: Update work order status (two-step)
      description: 'Updates the status of a work order. Requires "write" scope. STEP 1: Call without confirmation_id → returns summary. STEP 2: Re-call with confirmation_id.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - triage_id
              - status
              properties:
                triage_id:
                  type: integer
                status:
                  type: string
                  enum:
                  - resolved
                  - closed
                  - in_progress
                  - pending
                  - escalated
                notes:
                  type: string
                confirmation_id:
                  type: string
      responses:
        '200':
          description: Pending confirmation or updated status
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ConfirmationResponse'
                - type: object
                  properties:
                    executed:
                      type: boolean
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/sms_tenant:
    post:
      operationId: smsTenant
      summary: Send an SMS to a tenant (two-step)
      description: 'Sends an SMS to the tenant of a work order. Requires "write" scope. STEP 1: Call without confirmation_id → returns message preview + confirmation_id. Show the message text to the user for approval. STEP 2: Re-call with confirmation_id to send.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - triage_id
              - message
              properties:
                triage_id:
                  type: integer
                message:
                  type: string
                  minLength: 5
                  maxLength: 320
                confirmation_id:
                  type: string
      responses:
        '200':
          description: Pending confirmation or send result
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ConfirmationResponse'
                - type: object
                  properties:
                    executed:
                      type: boolean
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
  /api/gpt/tools/update_snapshot_preferences:
    post:
      operationId: updateSnapshotPreferences
      summary: Update org health snapshot thresholds
      description: Adjusts portfolio health thresholds (how quickly items go red/yellow). Requires "admin" scope.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - field
              - value
              properties:
                field:
                  type: string
                  enum:
                  - red_no_vendor_hours
                  - red_overdue_hours
                  - red_tenant_sms_hours
                  - red_mir_unreviewed_hours
                  - yellow_aging_hours
                  - yellow_mir_hours
                value:
                  type: integer
                  minimum: 1
                  description: New threshold value in hours.
                description:
                  type: string
      responses:
        '200':
          description: Updated preferences
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Admin scope required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gpt
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
      required:
      - error
    ConfirmationResponse:
      type: object
      description: Returned by write tools on the first call (before confirmation).
      properties:
        status:
          type: string
          enum:
          - pending_confirmation
        confirmation_id:
          type: string
          description: Pass this back in the next call to execute the action.
        summary:
          type: string
          description: Plain-language description of what will happen. Show this to the user before confirming.
        expires_in_seconds:
          type: integer
          example: 300
        instruction:
          type: string
      required:
      - status
      - confirmation_id
      - summary
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'PropSWOT MCP API key. Generate one at pm.propswot.com/dashboard/settings/mcp. Format: ps_live_xxxxxxxx

        '