API Reference
PORTREX Public API
PORTREX Public API — MF-1 strip (P1 surface). 12-month deprecation guarantee on breaking changes. Full reference: developers.portrex.io
- Version
- 1
- Paths
- 546
- Operations
- 644
Integrations121
Staff77
Projects49
Billing39
Finance38
Untagged30
Partners23
HvacPriceCatalog21
Contracts20
Webhooks20
Leads18
Documents17
Operations
Live OpenAPI Surface
| Method | Path | Summary | Operation ID | Tags |
|---|---|---|---|---|
| GET | /accounts/{accountId}/lead-assignment-policy | Get account lead-assignment fallback policy | getLeadAssignmentPolicy | Accounts |
| PATCH | /accounts/{accountId}/lead-assignment-policy | Update account lead-assignment fallback policy | updateLeadAssignmentPolicy | Accounts |
| PATCH | /accounts/{accountId}/stage-probability | Replace the account's per-stage win probabilities | updateAccountStageProbability | Accounts |
| GET | /accounts/public-branding | Resolve safe public account branding by host | getPublicAccountBranding | Accounts |
| GET | /activities | List activities for an entity | listActivities | Activities |
| PUT | /activities/calls/{ownerType}/{ownerId}/{callId} | Replace the editable details of a call log | updateRecordCallLog | Activities |
| DELETE | /activities/calls/{ownerType}/{ownerId}/{callId} | Remove a call log from the record | removeRecordCallLog | Activities |
| POST | /affiliate-invitations/opt-out | Opt out of partner invitation outreach | optOutOfPartnerInvitations | Partners |
| GET | /affiliate/activity | List this partner's activity | listPartnerActivity | Partners |
| POST | /affiliate/activity/seen | Mark this partner user's activity feed as seen | markPartnerActivitySeen | Partners |
| POST | /affiliate/agreement/accept | Accept a partner agreement version | acceptPartnerAgreement | Partners |
| GET | /affiliate/dashboard | Referral partner dashboard summary | getPartnerDashboard | Partners |
| GET | /affiliate/invitations | List this partner's invitations | listPartnerInvitations | Partners |
| POST | /affiliate/invitations/{id}/replace | Generate a new invitation link | replacePartnerInvitation | Partners |
| POST | /affiliate/invitations/{id}/revoke | Revoke an invitation | revokePartnerInvitation | Partners |
| GET | /affiliate/me | Referral partner session projection | getPartnerMe | Partners |
| GET | /affiliate/profile | Referral partner profile | getPartnerProfile | Partners |
| PATCH | /affiliate/profile | Update the referral partner profile | updatePartnerProfile | Partners |
| POST | /affiliate/profile/avatar | Upload the referral partner's photo | setPartnerAvatar | Partners |
| DELETE | /affiliate/profile/avatar | Remove the referral partner's photo | clearPartnerAvatar | Partners |
| POST | /affiliate/profile/email-change | Request a partner email change | requestPartnerEmailChange | Partners |
| POST | /affiliate/profile/email-change/confirm | Confirm a partner email change | confirmPartnerEmailChange | Partners |
| GET | /affiliate/referrals | List this partner's referrals | listPartnerReferrals | Partners |
| POST | /affiliate/referrals | Register one or more referrals | createPartnerReferrals | Partners |
| GET | /affiliate/referrals/{id} | Read one referral | getPartnerReferral | Partners |
| PATCH | /affiliate/referrals/{id} | Edit a pending referral | updatePartnerReferral | Partners |
| POST | /affiliate/referrals/{id}/invitations | Issue an invitation for a referral | issuePartnerInvitation | Partners |
| POST | /affiliate/step-up/request | Request a partner step-up code | requestPartnerStepUp | Partners |
| POST | /affiliate/step-up/verify | Verify a partner step-up code | verifyPartnerStepUp | Partners |
| GET | /agreements | List agreements (central register, cursor paginated) | listAgreements | Contracts |
| GET | /agreements/{id}/artifacts | Read stored agreement stages and proposal acknowledgment together | listAgreementArtifacts | Agreements |
| GET | /agreements/{id}/artifacts/{artifactId}/{kind}/download | Download stored PDF bytes or decrypt authorized staff evidence | downloadAgreementArtifact | Agreements |
| GET | /agreements/{id}/artifacts/{artifactId}/{kind}/preview | Preview an authorized stored PDF or completion certificate | previewAgreementArtifact | Agreements |
| GET | /agreements/{id}/pdf | Live PDF preview of a saved estimate agreement (POR-2456) | previewEstimateAgreementPdf | Contracts |
| GET | /agreements/contracts/{contractId}/cockpit | Get a contract agreement in the Deal Cockpit shape (POR-2437) | getContractAgreementCockpit | Contracts |
| GET | /api-keys | List API keys for the current Account | listApiKeys | API Keys |
| POST | /api-keys | Create an API key (scope-capped per tier; sensitive scopes forbidden) | createApiKey | API Keys |
| PATCH | /api-keys/{id} | Update mutable API key metadata (`name`, `ip_allowlist`) | updateApiKey | API Keys |
| DELETE | /api-keys/{id} | Revoke an API key | revokeApiKey | API Keys |
| POST | /api-keys/{id}/rotate | Rotate an API key secret | rotateApiKey | API Keys |
| POST | /auth/house-handoff/redeem | Redeem a one-time house CRM handoff code on the tenant web origin | redeemHouseCrmHandoff | Untagged |
| GET | /auth/me | Hydrate the current Tenant User / Integration User session | getAuthMe | Auth |
| GET | /billing/banner-state | Past-due / suspended banner state (used site-wide) | getBillingBannerState | Billing |
| POST | /billing/cancel | Cancel the company's Portrex subscription (Owner only) | cancelPlatformBillingOnSquare | Billing |
| POST | /billing/checkout-session | Create Stripe Checkout Session for tier subscription (Owner only) | createBillingCheckoutSession | Billing |
| POST | /billing/customer-portal | Create Stripe Customer Portal session (Owner only) | createBillingCustomerPortal | Billing |
| GET | /billing/invoices | List account invoices (cursor-paginated) | listBillingInvoices | Billing |
| GET | /billing/me | The signed-in member's own subscription status | getMyBillingStatus | Billing |
| POST | /billing/me/cancel | Cancel the member's subscription | cancelMyBillingSubscription | Billing |
| POST | /billing/me/checkout-session | Start a Checkout Session on the tenant's Stripe account | createMyBillingCheckoutSession | Billing |
| POST | /billing/me/checkout-sync | Settle the Checkout return leg without waiting for a webhook | syncMyBillingCheckout | Billing |
| GET | /billing/me/invoices | The member's own subscription invoices | listMyBillingInvoices | Billing |
| POST | /billing/me/pay | Pay the member's open Square invoice with the payer present | payMyBillingInvoiceOnSquare | Billing |
| PUT | /billing/me/payment-method | Replace the card on file of the member's Square subscription | replaceMyBillingCardOnSquare | Billing |
| POST | /billing/me/portal-session | Open the Stripe Billing Portal for the member | createMyBillingPortalSession | Billing |
| POST | /billing/me/resume | Keep the member's subscription — undo a cancel before the period end | resumeMyBillingSubscription | Billing |
| POST | /billing/me/subscribe | Save the member's card on Square and start the subscription | subscribeMyBillingOnSquare | Billing |
| GET | /billing/member-deadlines | The member payment deadline card | getMemberBillingDeadlines | Billing |
| PUT | /billing/member-deadlines | Set, move or clear the company member payment deadline | setMemberBillingDeadline | Billing |
| POST | /billing/member-reminders | Send a payment reminder to one member, one branch, or every unpaid member | sendMemberBillingReminders | Billing |
| GET | /billing/members | Member list with the payment deadline, payment group and last reminder | listBillingMembers | Billing |
| POST | /billing/pay | Pay the company's open Portrex invoice with the payer present (Owner only) | payPlatformBillingInvoiceOnSquare | Billing |
| PUT | /billing/payment-method | Replace the card on file of the company's Portrex subscription on Square (Owner only) | replacePlatformBillingCardOnSquare | Billing |
| PUT | /billing/plan | Set the seat count of the next period of the company's Portrex subscription (Owner only) | changePlatformBillingSeats | Billing |
| POST | /billing/resume | Keep the company's Portrex subscription — undo a cancel before the period end (Owner only) | resumePlatformBilling | Billing |
| GET | /billing/sub-companies | List sub-company payer obligations | listSubCompanyBillingObligations | Billing |
| POST | /billing/sub-companies/{subAccountId}/cancel | Cancel a sub-company payer subscription at period end | cancelSubCompanyBillingSubscription | Billing |
| POST | /billing/sub-companies/{subAccountId}/checkout-session | Start a sub-company payer Checkout Session | createSubCompanyBillingCheckoutSession | Billing |
| POST | /billing/sub-companies/{subAccountId}/checkout-sync | Sync a completed sub-company Checkout Session | syncSubCompanyBillingCheckout | Billing |
| PUT | /billing/sub-companies/{subAccountId}/deadline | Set or clear the dues date of one sub-company | setSubCompanyDuesDeadline | Billing |
| POST | /billing/sub-companies/{subAccountId}/pay | Pay the open Square dues invoice of a sub-company with the payer present | paySubCompanyDuesInvoiceOnSquare | Billing |
| PUT | /billing/sub-companies/{subAccountId}/payment-method | Replace the card on file of a sub-company's Square dues | replaceSubCompanyDuesCardOnSquare | Billing |
| POST | /billing/sub-companies/{subAccountId}/portal-session | Open the sub-company payer Billing Portal | createSubCompanyBillingPortalSession | Billing |
| POST | /billing/sub-companies/{subAccountId}/reminder | Remind the admins of one sub-company to pay its dues | sendSubCompanyDuesReminder | Billing |
| POST | /billing/sub-companies/{subAccountId}/resume | Keep the renewal of a sub-company's dues (the undo of a cancel) | resumeSubCompanyBillingSubscription | Billing |
| POST | /billing/sub-companies/{subAccountId}/subscribe | Save the sub-company's card on Square and start its dues | subscribeSubCompanyDuesOnSquare | Billing |
| POST | /billing/subscribe | Save the company's card on Square and start its Portrex subscription (Owner only) | subscribePlatformBillingOnSquare | Billing |
| GET | /billing/subscription | Current account subscription + seat counts | getBillingSubscription | Billing |
| GET | /bulk/jobs/{jobId} | Get a bulk lead job and row results | getBulkLeadJob | Bulk Leads |
| POST | /bulk/leads | Import up to 1,000 leads in one authenticated request with per-account backpressure | createBulkLeadJob | Bulk Leads |
| POST | /cel/parse | Compile CEL source for Monaco LSP (stateless; rate-limited) | celParse | Pricebook |
| GET | /contractors | List contractors (cursor paginated) | listContractors | Contractors |
| POST | /contractors | Create a contractor | createContractor | Contractors |
| GET | /contractors/{id} | Get a contractor | getContractor | Contractors |
| PATCH | /contractors/{id} | Update a contractor | patchContractor | Contractors |
| POST | /contractors/{id}/archive | Archive a contractor | archiveContractor | Contractors |
| POST | /contractors/{id}/licenses | Add a license to a contractor | createContractorLicense | Contractors |
| PATCH | /contractors/{id}/licenses/{licenseId} | Update a contractor license | patchContractorLicense | Contractors |
| DELETE | /contractors/{id}/licenses/{licenseId} | Soft-delete a contractor license | deleteContractorLicense | Contractors |
| POST | /contractors/{id}/unarchive | Unarchive a contractor | unarchiveContractor | Contractors |
| POST | /contracts/{contractId}/void | Initiate a contract void & reissue (POR-60) | initiateContractVoid | Contracts |
| GET | /contracts/{id} | Get agreement (contract) detail (POR-595) | getAgreementDetail | Contracts |
| PATCH | /contracts/{id} | Update agreement admin label/notes (POR-1972) | patchContractAdminFields | Contracts |
| POST | /contracts/{id}/cancel-draft | Cancel a draft or sent (unsigned) agreement (POR-595) | cancelDraftAgreement | Contracts |
| POST | /contracts/{id}/cosigner-resend | Re-issue cosigner delivery (disabled) | resendCosignerLink | Contracts |
| GET | /contracts/{id}/pdf-preview | Check legacy PDF preview availability without rendering | headContractAgreementPdfPreview | Contracts |
| GET | /contracts/{id}/prepare-agreement | Preflight for preparing a Project-page contract draft for signing (POR-2479) | getContractPrepareAgreementPreflight | Contracts |
| POST | /contracts/{id}/prepare-agreement | Prepare a Project-page contract draft for signing (POR-2479) | prepareContractAgreement | Contracts |
| POST | /contracts/{id}/send | Send contract for signing (POR-51) | sendContract | Contracts |
| POST | /contracts/{id}/sign | Native primary signer contract signature | signContract | Contracts |
| POST | /contracts/{id}/sign-in-person | Attended in-person contract signing (rep-witnessed) | signContractInPerson | Contracts |
| GET | /contracts/{id}/signed-documents | Provider-signed agreement, completion certificate and envelope id | listContractSignedDocuments | Contracts |
| POST | /contracts/cosigner/{token}/sign | Legacy co-signer magic-link countersign (disabled) | cosignerSign | Contracts |
| GET | /contracts/provider-launch/{token} | Open the agreement signer's intentional continuation page | showAgreementProviderLaunch | Contracts |
| POST | /contracts/provider-launch/{token}/open | Continue from an active invitation to a fresh provider signing page | openAgreementProviderSigning | Contracts |
| POST | /customer-portal-invitations | Mint a customer portal magic-link invitation for a tenant-scoped customer person | createCustomerPortalInvitation | Portal |
| GET | /customers | List customers (cursor paginated) | listCustomers | Customers |
| GET | /customers/{customerId}/{childResource} | List a customer child resource | listCustomerChildResource | Customers |
| POST | /customers/{customerId}/estimates/{estimateId}/take-over | Take over an estimate (POR-2281) | takeOverCustomerEstimate | Customers |
| PATCH | /customers/{customerId}/invoices/{id} | Update a customer invoice | updateCustomerInvoice | Customers |
| DELETE | /customers/{customerId}/invoices/{id} | Delete a customer invoice | deleteCustomerInvoice | Customers |
| GET | /customers/{id} | Retrieve a customer by ID | getCustomer | Customers |
| PATCH | /customers/{id} | Update a customer | updateCustomer | Customers |
| DELETE | /customers/{id} | Soft-delete a customer | deleteCustomer | Customers |
| DELETE | /customers/{id}/collaborators/{userId} | Remove a customer collaborator (`customers:write`; manager rights rechecked on idempotent replay) | removeCustomerCollaborator | Customers |
| POST | /designs | Create or update a design | createDesign | Designs |
| GET | /documents | List and search vault documents (cursor paginated) | listDocuments | Documents |
| GET | /documents/{id} | Get a document with its newest uploaded versions | getDocument | Documents |
| PATCH | /documents/{id} | Edit a document's title, type, tags, notes, expiry or branch | updateDocument | Documents |
| DELETE | /documents/{id} | Delete a trashed document forever | deleteDocument | Documents |
| GET | /documents/{id}/preview | Preview URL for the current version | getDocumentPreview | Documents |
| GET | /documents/{id}/preview/content | Stream the current version inline (images and PDF only) | getDocumentPreviewContent | Documents |
| POST | /documents/{id}/restore | Restore a document from Trash | restoreDocument | Documents |
| GET | /documents/{id}/thumbnail | List thumbnail of the current version (images only) | getDocumentThumbnail | Documents |
| POST | /documents/{id}/trash | Move a document to Trash | trashDocument | Documents |
| GET | /documents/{id}/versions | Page through a document's older uploaded versions | listDocumentVersions | Documents |
| POST | /documents/{id}/versions/{versionId}/complete | Finish an upload | completeDocumentVersion | Documents |
| GET | /documents/{id}/versions/{versionId}/download | Signed download URL for one version | getDocumentDownload | Documents |
| POST | /documents/{id}/versions/{versionId}/upload-url | Re-sign the upload URL of a pending version | renewDocumentUploadUrl | Documents |
| POST | /documents/{id}/versions/upload-intents | Start uploading a new version of a document | createDocumentVersionUploadIntent | Documents |
| GET | /documents/summary | Counts for the Documents stat tiles | getDocumentsSummary | Documents |
| GET | /documents/tags | Suggest the company's existing document tags | listDocumentTags | Documents |
| POST | /documents/upload-intents | Start a document upload | createDocumentUploadIntent | Documents |
| GET | /email-templates | List CRM email templates | listEmailTemplates | EmailTemplates |
| POST | /email-templates | Create an email template | createEmailTemplate | EmailTemplates |
| GET | /email-templates/{id} | Get an email template | getEmailTemplate | EmailTemplates |
| PATCH | /email-templates/{id} | Edit an email template | updateEmailTemplate | EmailTemplates |
| DELETE | /email-templates/{id} | Archive an email template | archiveEmailTemplate | EmailTemplates |
| POST | /email-templates/{id}/preview | Render a template for a lead, a customer or sample values | previewEmailTemplate | EmailTemplates |
| GET | /estimates | List account-wide estimates (cursor paginated) | listAccountEstimates | Estimates |
| POST | /exports | Enqueue a tenant data export bundle (E35 / POR-59) | createDataExport | Exports |
| GET | /exports/{id} | Fetch a single data export's status / signed URL | getDataExport | Exports |
| GET | /finance/goodleap/cases | List GoodLeap finance cases | listGoodLeapFinanceCases | Finance |
| POST | /finance/goodleap/cases | Prepare one GoodLeap origination mode (202) | createGoodLeapFinanceCase | Finance |
| GET | /finance/goodleap/cases/{caseId} | GoodLeap case detail | getGoodLeapFinanceCase | Finance |
| POST | /finance/goodleap/cases/{caseId}/application | Submit one direct GoodLeap credit application synchronously | submitGoodLeapCreditApplication | Finance |
| GET | /finance/goodleap/cases/{caseId}/change-order-options | Read fresh loan-scoped change-order catalogs | getGoodLeapChangeOrderOptions | Finance |
| GET | /finance/goodleap/cases/{caseId}/credit-disclosure | Preview current direct-application disclosure | getGoodLeapCreditDisclosure | Finance |
| POST | /finance/goodleap/cases/{caseId}/documents/embedded | Mint one ephemeral GoodLeap embedded-signing capability | createGoodLeapEmbeddedSigningCapability | Finance |
| GET | /finance/goodleap/cases/{caseId}/events | GoodLeap case activity | listGoodLeapCaseEvents | Finance |
| GET | /finance/goodleap/cases/{caseId}/lifecycle | Read the authoritative post-approval lifecycle projection | getGoodLeapLoanLifecycle | Finance |
| POST | /finance/goodleap/cases/{caseId}/lifecycle-commands | Enqueue one post-approval GoodLeap command (durable, 202) | createGoodLeapLoanLifecycleCommand | Finance |
| GET | /finance/goodleap/cases/{caseId}/loan-stipulations | List privacy-safe loan stipulation summaries | listGoodLeapLoanStipulations | Finance |
| POST | /finance/goodleap/cases/{caseId}/milestones | Submit a GoodLeap completion milestone (durable, 202) | submitGoodLeapCompletionMilestone | Finance |
| POST | /finance/goodleap/cases/{caseId}/reconcile | Reconcile a GoodLeap case (durable, 202) | reconcileGoodLeapFinanceCase | Finance |
| POST | /finance/goodleap/cases/search | Search GoodLeap cases by reference or borrower email | searchGoodLeapFinanceCases | Finance |
| GET | /finance/goodleap/offers | Cached, state-filtered GoodLeap offers | getGoodLeapOffers | Finance |
| GET | /finance/goodleap/preflight | GoodLeap origination readiness | goodLeapOriginationPreflight | Finance |
| GET | /finance/palmetto/cases | List Palmetto finance cases | listPalmettoFinanceCases | Finance |
| POST | /finance/palmetto/cases | Prepare a Palmetto finance case (durable) | preparePalmettoFinanceCase | Finance |
| GET | /finance/palmetto/cases/{caseId} | Get Palmetto finance case detail | getPalmettoFinanceCase | Finance |
| POST | /finance/palmetto/cases/{caseId}/account-update | Queue an operational Palmetto account update | updatePalmettoFinanceAccount | Finance |
| POST | /finance/palmetto/cases/{caseId}/application-invitations | Send Palmetto hosted application invitation (durable) | sendPalmettoApplicationInvitation | Finance |
| GET | /finance/palmetto/cases/{caseId}/application-session | Consume a signed same-origin continuation | continuePalmettoHostedApplicationSession | Finance |
| POST | /finance/palmetto/cases/{caseId}/application-session | Prepare a same-origin hosted-application continuation | startPalmettoHostedApplicationSession | Finance |
| GET | /finance/palmetto/cases/{caseId}/documents | List safe Palmetto document metadata and durable submissions | listPalmettoFinanceDocuments | Finance |
| POST | /finance/palmetto/cases/{caseId}/documents | Queue a durable Palmetto Documents v2 upload | uploadPalmettoFinanceDocuments | Finance |
| GET | /finance/palmetto/cases/{caseId}/documents/{documentId} | Get safe Palmetto document metadata | getPalmettoFinanceDocument | Finance |
| PATCH | /finance/palmetto/cases/{caseId}/documents/{documentId} | Queue an optimistic Palmetto document metadata update | updatePalmettoFinanceDocument | Finance |
| DELETE | /finance/palmetto/cases/{caseId}/documents/{documentId} | Queue an optimistic Palmetto document archive | archivePalmettoFinanceDocument | Finance |
| GET | /finance/palmetto/cases/{caseId}/documents/{documentId}/files/{ordinal}/content | Relay one Palmetto document file ordinal same-origin | getPalmettoFinanceDocumentFileContent | Finance |
| POST | /finance/palmetto/cases/{caseId}/documents/reconcile | Queue durable Palmetto document reconciliation | reconcilePalmettoFinanceDocuments | Finance |
| GET | /finance/palmetto/cases/{caseId}/events | List Palmetto finance case events | listPalmettoFinanceCaseEvents | Finance |
| POST | /finance/palmetto/cases/{caseId}/quotes | Create a Palmetto quote intent (durable) | createPalmettoFinanceQuote | Finance |
| POST | /finance/palmetto/cases/{caseId}/reconcile | Reconcile a Palmetto finance case (durable) | reconcilePalmettoFinanceCase | Finance |
| POST | /finance/palmetto/cases/search | Sensitive Palmetto finance case search | searchPalmettoFinanceCases | Finance |
| GET | /finance/palmetto/preflight | Preflight Palmetto finance source readiness | preflightPalmettoFinanceSource | Finance |
| POST | /finance/palmetto/showroom-existing-case | Find an open LightReach showroom application | findExistingPalmettoShowroomCase | Finance |
| PATCH | /finance/palmetto/showroom-sources/{leadId} | Persist LightReach showroom source corrections | updatePalmettoShowroomSource | Finance |
| PATCH | /finance/palmetto/showroom-sources/customers/{customerId} | Persist selected-customer LightReach showroom corrections | updatePalmettoCustomerShowroomSource | Finance |
| GET | /hvac-price-catalog | Read the HVAC price catalog | getHvacPriceCatalog | HvacPriceCatalog |
| PATCH | /hvac-price-catalog/brands/{brand} | Rename a brand across its product lines | renameHvacPriceCatalogBrand | HvacPriceCatalog |
| DELETE | /hvac-price-catalog/brands/{brand} | Remove a brand with all its product lines | deleteHvacPriceCatalogBrand | HvacPriceCatalog |
| PUT | /hvac-price-catalog/default-overrides/company | Set or clear the company default override percent | putHvacPriceCatalogCompanyDefaultOverride | HvacPriceCatalog |
| PUT | /hvac-price-catalog/default-overrides/mine | Set or clear the caller's own default override percent | putHvacPriceCatalogMyDefaultOverride | HvacPriceCatalog |
| POST | /hvac-price-catalog/lines | Create a product line with an empty All states table | createHvacPriceCatalogLine | HvacPriceCatalog |
| PATCH | /hvac-price-catalog/lines/{lineId} | Rename a product line, change its sub type, its series aliases or its additional zone price | updateHvacPriceCatalogLine | HvacPriceCatalog |
| DELETE | /hvac-price-catalog/lines/{lineId} | Delete a product line with its tables and sizes | deleteHvacPriceCatalogLine | HvacPriceCatalog |
| POST | /hvac-price-catalog/lines/{lineId}/duplicate | Duplicate a product line with all its tables, sizes and fees | duplicateHvacPriceCatalogLine | HvacPriceCatalog |
| POST | /hvac-price-catalog/lines/{lineId}/installer-tables | Add installer install-cost tables to a product line | createHvacPriceCatalogInstallerTables | HvacPriceCatalog |
| POST | /hvac-price-catalog/lines/{lineId}/tables | Add state override tables to a product line | createHvacPriceCatalogOverrides | HvacPriceCatalog |
| GET | /hvac-price-catalog/overrides | List the open overrides (company and personal) with who set them | listHvacPriceCatalogOverrides | HvacPriceCatalog |
| GET | /hvac-price-catalog/overrides/history | The last 200 override changes | listHvacPriceCatalogOverrideHistory | HvacPriceCatalog |
| DELETE | /hvac-price-catalog/personal-overrides/{userId} | Reset all of a rep's personal overrides, or one table's | deleteHvacPriceCatalogPersonalOverridesForUser | HvacPriceCatalog |
| PUT | /hvac-price-catalog/personal-overrides/{userId}/tables/{tableId} | Set or reset a rep's personal overrides on one table | putHvacPriceCatalogPersonalOverridesForUser | HvacPriceCatalog |
| DELETE | /hvac-price-catalog/sub-account-overrides | Reset the caller's sub-account (branch) prices | resetHvacPriceCatalogSubAccountOverrides | HvacPriceCatalog |
| DELETE | /hvac-price-catalog/sub-account-overrides/branches/{subAccountId} | Reset all of a branch's prices, or one table's (owner or admin) | deleteHvacPriceCatalogBranchOverridesByAdmin | HvacPriceCatalog |
| PUT | /hvac-price-catalog/sub-account-overrides/tables/{tableId} | Set or clear the caller's sub-account (branch) price on a table's stored sizes | putHvacPriceCatalogSubAccountPrices | HvacPriceCatalog |
| PUT | /hvac-price-catalog/tables/{tableId} | Replace a price table's sizes and fees | putHvacPriceCatalogTable | HvacPriceCatalog |
| DELETE | /hvac-price-catalog/tables/{tableId} | Delete a state override table | deleteHvacPriceCatalogTable | HvacPriceCatalog |
| PUT | /hvac-price-catalog/tables/{tableId}/prices | Set the caller's personal overrides on a table's stored sizes | putHvacPriceCatalogTablePrices | HvacPriceCatalog |
| GET | /hvac-pricebook/catalog | List the curated HVAC reference catalog (price_cents is always null; tenants price equipment in their price book) | listHvacPricebookCatalog | HvacPricebook |
| GET | /hvac-pricebook/catalog/{sku} | Get one curated SKU (price_cents is always null) | getHvacPricebookCatalogItem | HvacPricebook |
| GET | /hvac-pricebook/compliance | Get the compliance ruleset (R-454B, federal EXPIRED, HEAR DOE, 35-ton) | getHvacPricebookCompliance | HvacPricebook |
| GET | /hvac-pricebook/cross-state/nehpa | Get the NEHPA cross-state umbrella row(s) | getHvacPricebookNehpa | HvacPricebook |
| GET | /hvac-pricebook/income-screening/{state} | List account-effective, state-aware coarse income screening choices | getHvacIncomeScreeningBands | HvacPricebook |
| GET | /hvac-pricebook/pathways | List the distinct application pathways with program counts | listHvacPricebookPathways | HvacPricebook |
| GET | /hvac-pricebook/programs | List all rebate programs across the 13 states | listHvacPricebookPrograms | HvacPricebook |
| GET | /hvac-pricebook/programs/{state} | List rebate programs for one two-letter state code | listHvacPricebookProgramsByState | HvacPricebook |
| GET | /hvac-pricebook/snapshot | Get the snapshot header metadata (content-hash pin + effective date) | getHvacPricebookSnapshot | HvacPricebook |
| GET | /hvac-rebate-program-settings | List account-effective rebate program settings | listHvacRebateProgramSettings | HvacRebateSettings |
| PATCH | /hvac-rebate-program-settings/{programExternalId} | Append a new account-scoped rebate program setting version | updateHvacRebateProgramSetting | HvacRebateSettings |
| GET | /hvac-rebate-program-settings/{programExternalId}/history | List append-only account override versions for one program | listHvacRebateProgramSettingHistory | HvacRebateSettings |
| GET | /hvac-rebate-program-settings/knowledge-base | Read canonical rebate research with Pricebook authorization | getRebateKnowledgeDocument | HvacRebateSettings |
| POST | /impersonation/elevations/{id}/approve | Approve an elevation as a tenant Owner or Admin | approveImpersonationElevation | Untagged |
| POST | /impersonation/elevations/{id}/deny | Deny an elevation as a tenant Owner or Admin | denyImpersonationElevation | Untagged |
| POST | /impersonation/elevations/{id}/revoke | Revoke an approved or active elevation as a tenant Owner or Admin | revokeTenantImpersonationElevation | Untagged |
| GET | /impersonation/elevations/pending | List pending elevation approvals for the authenticated tenant Owner or Admin | listPendingImpersonationElevations | Untagged |
| POST | /impersonation/end | End the exact authenticated staff impersonation session | endCurrentImpersonationSession | Untagged |
| GET | /imports/history | The account's pricebook imports (Items, Showroom catalog, Rate card), newest first | listImportHistory | Imports |
| POST | /imports/pricebook/_internal/expire-grants | Internal cron sweep — sets expires_at and revokes expired grants | pricebookExpireGrantsCron | Imports |
| GET | /imports/pricebook/{id} | Get import status + AI suggestions + human-confirmed mappings | getPricebookImport | Imports |
| POST | /imports/pricebook/{id}/analyze | Parse the staged workbook and detect table units (heuristic + AI-refined) | analyzeXlsxPricebookImport | Imports |
| POST | /imports/pricebook/{id}/commit | Persist the import (idempotent; refuses without human-confirmed mappings) | pricebookCommit | Imports |
| POST | /imports/pricebook/{id}/dry-run | Compute import diff without writing | pricebookDryRun | Imports |
| POST | /imports/pricebook/{id}/mappings | Human-confirm column→field mappings (AI confidence is not consent) | confirmPricebookMappings | Imports |
| POST | /imports/pricebook/{id}/parse | Re-parse the upload CSV (RFC 4180) and refresh AI-1 suggestions | parsePricebookImport | Imports |
| POST | /imports/pricebook/{id}/undo | Undo a committed import (items, showroom catalog or rate card) | pricebookImportUndo | Imports |
| GET | /imports/pricebook/{id}/undo-preview | What undoing this import would do now, without doing it | pricebookImportUndoPreview | Imports |
| PUT | /imports/pricebook/{id}/units/{unitId}/interpretation | Edit/confirm a detected unit (region, shape, mappings — the human gate) | updatePricebookImportUnitInterpretation | Imports |
| GET | /imports/pricebook/{id}/units/{unitId}/preview | Grid slice + compiler-computed normalized output for one unit | previewPricebookImportUnit | Imports |
| PUT | /imports/pricebook/{id}/workbook | Upload the workbook through the API (same-origin; base64 payload) | uploadXlsxPricebookWorkbook | Imports |
| POST | /imports/pricebook/csv | Start a generic CSV pricebook import (upload + AI-1 column suggestions) | createCsvPricebookImport | Imports |
| POST | /imports/pricebook/jobnimbus | Start a JobNimbus pricebook import (upload + AI-1 column suggestions) | createJobnimbusPricebookImport | Imports |
| POST | /imports/pricebook/xlsx | Start an xlsx pricebook import (returns a presigned workbook upload URL) | createXlsxPricebookImport | Imports |
| POST | /inbound/leads/{sourceKey} | Receive a signed public lead-source delivery | receiveInboundLead | Lead Sources |
| GET | /integration-users | List Integration Users for the current account | listIntegrationUsers | Integration Users |
| POST | /integration-users | Provision a dedicated Integration User for OAuth 2.1 client_credentials | createIntegrationUser | Integration Users |
| GET | /integration-users/{id} | Fetch one Integration User by ID | getIntegrationUser | Integration Users |
| PATCH | /integration-users/{id} | Update Integration User metadata, scopes, token lifetime, or active/suspended status | updateIntegrationUser | Integration Users |
| DELETE | /integration-users/{id} | Permanently revoke an Integration User and all of its active tokens | revokeIntegrationUser | Integration Users |
| GET | /integrations | List integration provider states for the current account | listIntegrationConnections | Integrations |
| GET | /integrations/{provider}/callback | Complete an OAuth connection callback for an integration provider | completeIntegrationOAuth | Integrations |
| GET | /integrations/{provider}/connect | Redirect the browser into an OAuth connection flow | redirectIntegrationOAuth | Integrations |
| POST | /integrations/{provider}/connect | Start an OAuth connection flow for an integration provider | startIntegrationOAuth | Integrations |
| PATCH | /integrations/{provider}/credential-binding | Set credential binding mode (Owner/Admin) | patchIntegrationCredentialBinding | Integrations |
| GET | /integrations/{provider}/credential-commands/{commandId} | Poll credential command status (Owner/Admin) | getIntegrationCredentialCommand | Integrations |
| GET | /integrations/{provider}/credential-requirements | Field metadata for tenant BYO financing credentials (Owner/Admin) | getIntegrationCredentialRequirements | Integrations |
| PATCH | /integrations/{provider}/credential-scope | Set an explicit Palmetto branch credential decision (Owner/Admin) | patchPalmettoCredentialScope | Integrations |
| GET | /integrations/{provider}/credentials | List safe credential set status (Owner/Admin) | listIntegrationCredentials | Integrations |
| POST | /integrations/{provider}/credentials | Accept sealed tenant BYO credentials (Owner/Admin) | acceptIntegrationCredentials | Integrations |
| POST | /integrations/{provider}/credentials/{setId}/reveal | Show saved GHL Client ID and Client Secret (Owner/Admin) | revealIntegrationCredentials | Integrations |
| POST | /integrations/{provider}/credentials/{setId}/revoke | Revoke a credential set (Owner/Admin) | revokeIntegrationCredentials | Integrations |
| POST | /integrations/{provider}/credentials/{setId}/rotate | Rotate a credential set (Owner/Admin) | rotateIntegrationCredentials | Integrations |
| POST | /integrations/{provider}/disable | Disable an integration provider for the current account | disableIntegrationConnection | Integrations |
| POST | /integrations/{provider}/enable | Enable an integration provider for the current account | enableIntegrationConnection | Integrations |
| POST | /integrations/ghl/consent-ack | Record the GoHighLevel connect-time disclosure acknowledgement | ackGhlConsent | Integrations |
| POST | /integrations/ghl/disconnect | Disconnect the GoHighLevel integration (remote revoke + token and sync teardown) | disconnectGhlIntegration | Integrations |
| GET | /integrations/ghl/sync/appointments/{appointmentId}/notes | Live GHL notes read for a linked appointment | getGhlAppointmentNotes | Integrations |
| POST | /integrations/ghl/sync/backfill | Trigger an initial backfill for one entity pair | triggerGhlSyncBackfill | Integrations |
| GET | /integrations/ghl/sync/calendar-catalog | GHL calendar/group/resource catalogs + branch mappings | getGhlCalendarCatalog | Integrations |
| GET | /integrations/ghl/sync/calendar-catalog/calendars/{remoteCalendarId}/blocked-slots | Live blocked-slot read for a cataloged GHL calendar | getGhlCalendarBlockedSlots | Integrations |
| PUT | /integrations/ghl/sync/calendar-catalog/calendars/{remoteCalendarId}/branch | Set or clear a GHL calendar's Portrex branch mapping | setGhlCalendarBranchMapping | Integrations |
| GET | /integrations/ghl/sync/calendar-catalog/calendars/{remoteCalendarId}/free-slots | Live free-slot read for a cataloged GHL calendar | getGhlCalendarFreeSlots | Integrations |
| POST | /integrations/ghl/sync/calendar-catalog/refresh | Refresh the GHL calendar catalog for this connection | refreshGhlCalendarCatalog | Integrations |
| GET | /integrations/ghl/sync/capabilities | Per-capability GoHighLevel sync state, health, and needs-review rollup | getGhlSyncCapabilities | Integrations |
| GET | /integrations/ghl/sync/config | Read per-entity-pair sync configuration | getGhlSyncConfig | Integrations |
| PUT | /integrations/ghl/sync/config | Update sync configuration for one entity pair | updateGhlSyncConfig | Integrations |
| POST | /integrations/ghl/sync/contact-address-enrichment | Repair GHL contact address and source timestamp metadata | triggerGhlContactAddressEnrichment | Integrations |
| POST | /integrations/ghl/sync/data-inventory | Request a read-only GHL data coverage inventory | triggerGhlDataInventory | Integrations |
| GET | /integrations/ghl/sync/errors | List failed / dead / needs_review sync-journal rows (cursor-paginated) | listGhlSyncErrors | Integrations |
| POST | /integrations/ghl/sync/errors/{journalId}/resolve | Mark a failed / dead / needs_review sync-journal row resolved | resolveGhlSyncError | Integrations |
| POST | /integrations/ghl/sync/errors/{journalId}/retry | Re-enqueue a legacy-core inbound failed / dead / needs_review sync-journal row | retryGhlSyncError | Integrations |
| GET | /integrations/ghl/sync/forecast | Per-stage forecast of open GHL opportunities | getGhlForecast | Integrations |
| GET | /integrations/ghl/sync/health | GoHighLevel sync health (connection status, counts, timestamps) | getGhlSyncHealth | Integrations |
| GET | /integrations/ghl/sync/lost-reasons | Live GHL lost-reason catalog for this location | getGhlLostReasons | Integrations |
| POST | /integrations/ghl/sync/opportunities/{leadId}/followers | Add followers on the linked GHL opportunity | addGhlOpportunityFollowers | Integrations |
| DELETE | /integrations/ghl/sync/opportunities/{leadId}/followers | Remove followers on the linked GHL opportunity | removeGhlOpportunityFollowers | Integrations |
| PUT | /integrations/ghl/sync/opportunities/{leadId}/lost-reason | Attach a lost reason on the linked GHL opportunity | pushGhlOpportunityLostReason | Integrations |
| GET | /integrations/ghl/sync/pipelines | List the connected GoHighLevel location's pipelines and stages | getGhlSyncPipelines | Integrations |
| POST | /integrations/ghl/sync/principal-catalog/refresh | Refresh the remote GHL user catalog for this connection | refreshGhlPrincipalCatalog | Integrations |
| GET | /integrations/ghl/sync/principal-mappings | List remote GHL users, mappable memberships, and their mappings | listGhlPrincipalMappings | Integrations |
| POST | /integrations/ghl/sync/principal-mappings | Propose a remote GHL user → Portrex membership mapping | proposeGhlPrincipalMapping | Integrations |
| POST | /integrations/ghl/sync/principal-mappings/{mappingId}/confirm | Confirm a principal mapping (the admin verification step) | confirmGhlPrincipalMapping | Integrations |
| POST | /integrations/ghl/sync/principal-mappings/{mappingId}/revoke | Revoke a principal mapping | revokeGhlPrincipalMapping | Integrations |
| GET | /integrations/goodleap | GoodLeap connection health (Owner/Admin) | getGoodLeapConnectionHealth | Integrations |
| PATCH | /integrations/goodleap/credential-binding | Set GoodLeap credential binding without step-up (Owner/Admin) | patchGoodLeapCredentialBinding | Integrations |
| PATCH | /integrations/goodleap/credential-scope | Reject unsupported GoodLeap branch credential scope without step-up | rejectGoodLeapCredentialScope | Integrations |
| POST | /integrations/goodleap/credentials | Accept sealed GoodLeap credentials without step-up (Owner/Admin) | acceptGoodLeapIntegrationCredentials | Integrations |
| POST | /integrations/goodleap/credentials/{setId}/reveal | Reject unsupported GoodLeap credential reveal without step-up | rejectGoodLeapCredentialReveal | Integrations |
| POST | /integrations/goodleap/credentials/{setId}/revoke | Revoke GoodLeap credentials without step-up (Owner/Admin) | revokeGoodLeapIntegrationCredentials | Integrations |
| POST | /integrations/goodleap/credentials/{setId}/rotate | Rotate GoodLeap credentials without step-up (Owner/Admin) | rotateGoodLeapIntegrationCredentials | Integrations |
| GET | /integrations/goodleap/mappings | List GoodLeap organization mappings (Owner/Admin) | listGoodLeapOrganizationMappings | Integrations |
| POST | /integrations/goodleap/mappings | Create a GoodLeap organization mapping (Owner/Admin) | createGoodLeapOrganizationMapping | Integrations |
| PATCH | /integrations/goodleap/mappings/{mappingId} | Update a GoodLeap organization mapping (Owner/Admin) | updateGoodLeapOrganizationMapping | Integrations |
| POST | /integrations/goodleap/preflight | Validate a GoodLeap mapping locally (Owner/Admin) | preflightGoodLeapMapping | Integrations |
| PUT | /integrations/hubspot/branches/{subAccountId}/policy | Update a branch HubSpot inheritance policy (`inherit` or `disabled`) and branch tag | updateHubSpotBranchPolicy | Integrations |
| GET | /integrations/hubspot/connect/oauth | Start HubSpot OAuth 2.0 authorization (redirect mode) | startHubSpotOAuthRedirect | Integrations |
| POST | /integrations/hubspot/connect/oauth | Start HubSpot OAuth 2.0 authorization (JSON URL mode) | startHubSpotOAuthPost | Integrations |
| POST | /integrations/hubspot/connect/private-app | Connect HubSpot using a Private App access token | connectHubSpotPrivateApp | Integrations |
| POST | /integrations/hubspot/disconnect | Disconnect a HubSpot connection (parent company or branch) | disconnectHubSpotIntegration | Integrations |
| GET | /integrations/hubspot/metadata/owners | List live HubSpot CRM owners | listHubSpotRemoteOwners | Integrations |
| GET | /integrations/hubspot/metadata/pipelines | List live HubSpot deal pipelines and stages | listHubSpotPipelines | Integrations |
| GET | /integrations/hubspot/metadata/properties | List live HubSpot CRM properties for Contacts or Deals | listHubSpotProperties | Integrations |
| GET | /integrations/hubspot/owner-mappings | List saved HubSpot owner to Portrex user mappings | listHubSpotOwnerMappings | Integrations |
| PUT | /integrations/hubspot/owner-mappings | Upsert a HubSpot owner to Portrex user mapping | upsertHubSpotOwnerMapping | Integrations |
| DELETE | /integrations/hubspot/owner-mappings/{hubspotOwnerId} | Delete a HubSpot owner mapping | deleteHubSpotOwnerMapping | Integrations |
| GET | /integrations/hubspot/summary | HubSpot multi-branch connection summary (parent company + branches) | getHubSpotIntegrationSummary | Integrations |
| POST | /integrations/hubspot/sync/backfill | Trigger a resumable HubSpot backfill for enabled entity pairs | triggerHubSpotBackfill | Integrations |
| GET | /integrations/hubspot/sync/config | Get HubSpot entity sync configuration for the parent or branch scope | getHubSpotSyncConfig | Integrations |
| PUT | /integrations/hubspot/sync/config | Update HubSpot entity sync directions, conflict policies, and pipeline stage mapping | updateHubSpotSyncConfig | Integrations |
| GET | /integrations/hubspot/sync/errors | List unresolved HubSpot sync journal errors | listHubSpotSyncErrors | Integrations |
| POST | /integrations/hubspot/sync/errors/{journalId}/resolve | Mark a HubSpot sync journal error as resolved | resolveHubSpotSyncError | Integrations |
| POST | /integrations/hubspot/sync/errors/{journalId}/retry | Retry a failed HubSpot sync journal entry | retryHubSpotSyncError | Integrations |
| GET | /integrations/hubspot/sync/health | Get HubSpot sync health metrics (linked counts, cursor status, open errors) | getHubSpotSyncHealth | Integrations |
| POST | /integrations/hubspot/test | Verify live HubSpot connectivity for the parent or branch connection | testHubSpotConnection | Integrations |
| GET | /integrations/mattermost | Mattermost integration settings (Owner/Admin) | getMattermostIntegrationSettings | Integrations |
| PUT | /integrations/mattermost | Save Mattermost settings with live probe (Owner/Admin) | saveMattermostIntegrationSettings | Integrations |
| GET | /integrations/mattermost/channels | List Mattermost team channels visible to the bot | listMattermostTeamChannels | Integrations |
| POST | /integrations/mattermost/health | Probe Mattermost connectivity (alias of /test) | checkMattermostIntegrationHealth | Integrations |
| POST | /integrations/mattermost/hooks/{accountId} | mm-inbound-relay ingress (VPS websocket → HMAC JSON) | receiveMattermostInboundRelayHook | Integrations |
| GET | /integrations/mattermost/members | Compare Portrex members with the Mattermost team (Owner/Admin, read-only) | reconcileMattermostMembers | Integrations |
| POST | /integrations/mattermost/members/sync | Add existing Mattermost users to the team (Owner/Admin, step-up) | syncMattermostMembers | Integrations |
| GET | /integrations/mattermost/notifications | Mattermost business notification settings | getMattermostNotificationSettings | Integrations |
| PUT | /integrations/mattermost/notifications | Save Mattermost business notification settings | saveMattermostNotificationSettings | Integrations |
| POST | /integrations/mattermost/notifications/test | Post a fixed test message to a Mattermost channel | sendMattermostNotificationTestPost | Integrations |
| GET | /integrations/mattermost/support-channels | Read Mattermost channel mapping for Portrex Support and Tenant Support (Owner/Admin) | getMattermostSupportChannels | Integrations |
| PUT | /integrations/mattermost/support-channels | Save Mattermost channel mapping for Portrex Support and Tenant Support (Owner/Admin, step-up) | saveMattermostSupportChannels | Integrations |
| POST | /integrations/mattermost/test | Probe Mattermost connectivity (Owner/Admin) | testMattermostIntegrationToken | Integrations |
| POST | /integrations/mattermost/webhook-secret/reveal | Reveal inbound webhook HMAC secret for mm-inbound-relay (Owner/Admin) | revealMattermostInboundWebhookSecret | Integrations |
| GET | /integrations/palmetto | Palmetto Finance connection health (Owner/Admin) | getPalmettoConnectionHealth | Integrations |
| GET | /integrations/palmetto/host | Read the tenant Palmetto host (Owner/Admin) | getPalmettoHost | Integrations |
| PATCH | /integrations/palmetto/host | Save the tenant Palmetto host (Owner/Admin) | patchPalmettoHost | Integrations |
| PATCH | /integrations/palmetto/mapping-scope | Authorize account-default mapping inheritance for one sub-account | setPalmettoMappingScope | Integrations |
| POST | /integrations/palmetto/mappings | Save a pending Palmetto organization mapping | createPalmettoOrganizationMapping | Integrations |
| PATCH | /integrations/palmetto/mappings/{mappingId} | Rename, disable, or verify and activate a Palmetto mapping | updatePalmettoOrganizationMapping | Integrations |
| POST | /integrations/palmetto/mappings/{mappingId}/equipment-catalog/refresh | Refresh approved-vendor equipment catalog mappings | refreshPalmettoEquipmentCatalog | Integrations |
| GET | /integrations/palmetto/organizations-catalog | Read Palmetto organization hierarchy and licenses catalog (Owner/Admin) | getPalmettoOrganizationsCatalog | Integrations |
| POST | /integrations/palmetto/preflight | Preflight a saved Palmetto organization mapping | preflightPalmettoMapping | Integrations |
| POST | /integrations/palmetto/remote-organizations | Look up a Palmetto company by alias | lookupPalmettoRemoteOrganization | Integrations |
| POST | /integrations/palmetto/webhook-registration/verify | Verify Palmetto webhook registration configuration | verifyPalmettoWebhookRegistration | Integrations |
| GET | /integrations/square | Tenant Square connection status (Owner/Admin, branch admins see their own branch) | getSquareConnectionStatus | Integrations |
| GET | /integrations/square/callback | Square OAuth callback (browser redirect from Square) | completeSquareOAuth | Integrations |
| GET | /integrations/square/connect | Start Square OAuth as a browser redirect | redirectToSquareOAuth | Integrations |
| POST | /integrations/square/connect | Start Square OAuth and return the authorization URL | startSquareOAuth | Integrations |
| POST | /integrations/square/disconnect | Cancel open payment links and revoke Portrex's access to a Square account | disconnectSquareAccount | Integrations |
| PUT | /integrations/square/location | Choose the Square location that takes payments | setSquarePaymentLocation | Integrations |
| GET | /integrations/square/locations | Locations of one connected Square account | listSquareLocations | Integrations |
| PUT | /integrations/square/scope | Choose one company Square account or one per sub-company (Owner/Admin) | setSquareConnectionScope | Integrations |
| POST | /integrations/square/subscription-agreement | Record the tenant's agreement to member billing on Square (Owner/Admin) | agreeToSquareMemberBilling | Integrations |
| POST | /integrations/square/sync | Refresh the connected Square account's status | syncSquareConnectAccountSnapshot | Integrations |
| GET | /integrations/stripe | Tenant Stripe connection status (Owner/Admin, branch admins see their own branch) | getStripeConnectionStatus | Integrations |
| GET | /integrations/stripe/callback | Stripe Connect OAuth callback (browser redirect from Stripe) | completeStripeConnectOAuth | Integrations |
| GET | /integrations/stripe/connect | Start Stripe Connect OAuth as a browser redirect | redirectToStripeConnectOAuth | Integrations |
| POST | /integrations/stripe/connect | Start Stripe Connect OAuth and return the authorization URL | startStripeConnectOAuth | Integrations |
| POST | /integrations/stripe/disconnect | Cancel open payment links and revoke Portrex's access to a Stripe account | disconnectStripeAccount | Integrations |
| POST | /integrations/stripe/member-subscriptions/confirm-ended | Confirm that the Stripe member and dues subscriptions of a connection that is not active ended (Owner/Admin) | confirmStripeMemberSubscriptionsEnded | Integrations |
| GET | /integrations/stripe/members | Per-member subscription rollup for the Stripe settings page | listStripeMemberBilling | Integrations |
| PUT | /integrations/stripe/scope | Choose company-wide or per-sub-company Stripe billing (Owner/Admin) | setStripeConnectionScope | Integrations |
| POST | /integrations/stripe/sync | Refresh the connected account's Stripe flags | syncStripeConnectAccountSnapshot | Integrations |
| POST | /internal/billing/charge-due | Internal: charge, or recover the open attempt of, one due Square payer | billingRunChargeDue | Billing |
| POST | /internal/billing/reconcile | Internal: the daily reconcile of Square subscriptions | billingRunReconcile | Billing |
| POST | /internal/billing/tick | Internal: sweep stale attempts and list the due Square payers | billingRunTick | Billing |
| POST | /internal/esign/docusign/status | Internal worker report of a DocuSign envelope state | esignDocusignStatusReport | Contracts |
| POST | /internal/esign/zoho/status | Internal worker report of a Zoho Sign request state | esignZohoStatusReport | Contracts |
| GET | /join/{token} | Resolve a partner invitation for the join landing page | resolvePartnerInvitation | Partners |
| GET | /lead-sources | List lead-source definitions and delivery health | listLeadSources | Lead Sources |
| POST | /lead-sources | Create a lead source and reveal its secret once | createLeadSource | Lead Sources |
| PATCH | /lead-sources/{id} | Update lead-source routing defaults or status | updateLeadSource | Lead Sources |
| DELETE | /lead-sources/{id} | Revoke a lead source credential | revokeLeadSource | Lead Sources |
| POST | /lead-sources/{id}/rotate-secret | Rotate a lead-source secret and reveal the new secret once | rotateLeadSourceSecret | Lead Sources |
| POST | /lead-sources/{id}/test | Dry-run or commit-test a lead intake payload | testLeadSource | Lead Sources |
| GET | /leads | List leads (cursor paginated) | listLeads | Leads |
| POST | /leads | Create a lead (person-first; customer_id rejected until fully signed) | createLead | Leads |
| GET | /leads/{id} | Get a lead by ID | getLead | Leads |
| PATCH | /leads/{id} | Update a lead | updateLead | Leads |
| DELETE | /leads/{id} | Soft-delete a lead | deleteLead | Leads |
| DELETE | /leads/{id}/collaborators/{userId} | Remove a lead collaborator (`leads:write`; manager rights rechecked on idempotent replay) | removeLeadCollaborator | Leads |
| POST | /leads/{id}/consents | Record a TCPA consent for a contact on this lead | recordLeadConsent | Consent |
| DELETE | /leads/{id}/consents/{consentId} | Revoke an active TCPA consent record | revokeLeadConsent | Consent |
| POST | /leads/{id}/convert | Convert a lead into a project | convertLead | Leads |
| GET | /leads/{id}/duplicate-candidates | List open possible duplicates of a lead | listLeadDuplicateCandidates | Leads |
| POST | /leads/{id}/duplicate-candidates/{candidateId}/dismiss | Mark a possible duplicate as "Not a duplicate | dismissLeadDuplicateCandidate | Leads |
| POST | /leads/{id}/link-customer | Link a lead to a customer or create a customer from reviewed lead data | linkLeadCustomer | Leads |
| POST | /leads/{id}/unlink-customer | Remove a customer link from a lead | unlinkLeadCustomer | Leads |
| GET | /leads/import | List lead-import batches for the current account | listLeadImportBatches | Leads |
| POST | /leads/import | Start a CSV lead-import batch (idempotent) | createLeadImportBatch | Leads |
| GET | /leads/import/{batchId} | Get a lead-import batch status + counters | getLeadImportBatch | Leads |
| GET | /leads/import/{batchId}/conflicts | List unresolved conflicts for a batch (cursor paginated) | listLeadImportConflicts | Leads |
| POST | /leads/import/conflicts/{id}/resolve | Resolve a lead-import conflict (skip / create_new / merge_into:<leadId>) | resolveLeadImportConflict | Leads |
| GET | /leads/pipeline-summary | Lead pipeline aggregates by status (dashboard KPIs) | getLeadPipelineSummary | Leads |
| GET | /leads/stage-definitions | Lead stage definitions with win probability | getLeadStageDefinitions | Leads |
| POST | /marketing/affiliate-requests | Submit a public referral-partner application or referral registration | submitMarketingPartnerRequest | Marketing |
| POST | /marketing/contact-requests | Submit a public marketing contact request | submitMarketingContactRequest | Marketing |
| GET | /me | Introspect the authenticated credential, tenant, and granted scopes | getCredentialMe | Auth |
| GET | /me/email-accounts | List caller's personal email connections | listPersonalEmailAccounts | Untagged |
| POST | /me/email-accounts | Verify and save a personal IMAP/SMTP email connection | createPersonalEmailAccount | Untagged |
| PATCH | /me/email-accounts/{id} | Update display name, server settings, or credentials for a personal email connection | updatePersonalEmailAccount | Untagged |
| DELETE | /me/email-accounts/{id} | Disconnect and wipe a personal email connection | deletePersonalEmailAccount | Untagged |
| POST | /me/email-accounts/{id}/send | Send an email through a connected personal mailbox | sendPersonalEmail | Untagged |
| POST | /me/email-accounts/{id}/sync | Synchronize recent inbox messages for a personal email connection | syncPersonalEmailAccount | Untagged |
| POST | /me/email-accounts/{id}/verify | Re-verify saved IMAP and SMTP credentials for a personal email connection | verifyPersonalEmailAccount | Untagged |
| GET | /oauth/authorize | OAuth authorization endpoint (PKCE S256 required) | oauthAuthorize | OAuth |
| POST | /oauth/authorize/decision | Submit explicit user consent (approve or deny) for an OAuth 2.1 request | decideOAuthAuthorization | OAuth |
| GET | /oauth/clients | List active OAuth 2.1 clients for the current account | listOAuthClients | OAuth |
| POST | /oauth/clients | Register an OAuth 2.1 client (PKCE or client_credentials) | registerOAuthClient | OAuth |
| DELETE | /oauth/clients/{id} | Revoke an OAuth 2.1 client and all of its active tokens | revokeOAuthClient | OAuth |
| POST | /oauth/introspect | Introspect an OAuth 2.1 access or refresh token (RFC 7662) | oauthIntrospect | OAuth |
| POST | /oauth/revoke | Revoke an access token (RFC 7009) | oauthRevoke | OAuth |
| POST | /oauth/token | Exchange authorization_code for access token (PKCE verified) | oauthToken | OAuth |
| POST | /onboarding/pay | Pay the first Portrex invoice in the onboarding wizard (Owner only) | payOnboardingFirstInvoiceOnSquare | Onboarding |
| GET | /payment-processor | The tenant's invoice payment processor (Stripe or Square) | getInvoicePaymentProcessor | Integrations |
| PUT | /payment-processor | Choose Stripe or Square for new invoice payment links (Owner/Admin) | setInvoicePaymentProcessor | Integrations |
| POST | /portal/accept | Redeem a customer portal invitation token and mint a portal session | acceptCustomerPortalInvitation | Portal |
| GET | /portal/me | Hydrate the current Customer Portal session | getPortalMe | Portal |
| POST | /portal/sign-in | Request a customer portal return-visit OTP | requestCustomerPortalSignIn | Portal |
| POST | /portal/sign-in/verify | Verify a customer portal OTP and mint a portal session | verifyCustomerPortalSignIn | Portal |
| GET | /pricebook/generac | Read the company Generac pricebook and starting prices for missing entries | getGeneracPricebook | Pricebook |
| PUT | /pricebook/generac | Save all company Generac entries atomically and link the showroom | saveGeneracPricebook | Pricebook |
| POST | /pricebook/rules | Author a new CEL pricing rule | createPricebookRule | Pricebook |
| GET | /pricebook/rules/{id} | Fetch a rule with its pending dry-run (if any) | getPricebookRule | Pricebook |
| PATCH | /pricebook/rules/{id} | Edit a rule (cel_source bumps version) | updatePricebookRule | Pricebook |
| DELETE | /pricebook/rules/{id} | Soft-delete (enabled=false). 423 if locked. | softDeletePricebookRule | Pricebook |
| POST | /pricebook/rules/{id}/commit | Apply a previously-stored dry-run | pricebookRuleCommit | Pricebook |
| POST | /pricebook/rules/{id}/dry-run | Preview a proposed cel_source against synthetic context (TTL 15 min) | pricebookRuleDryRun | Pricebook |
| GET | /pricebook/rules/{id}/versions | Append-only version history for a rule | listPricebookRuleVersions | Pricebook |
| GET | /pricebook/solar | Read the company Solar pricebook and starting prices for missing entries | getSolarPricebook | Pricebook |
| PUT | /pricebook/solar | Save all company Solar entries atomically and link the showroom | saveSolarPricebook | Pricebook |
| GET | /pricebook/water | Read the company Water Filtration pricebook and starting prices for missing entries | getWaterPricebook | Pricebook |
| PUT | /pricebook/water | Save all company Water Filtration entries atomically and link the showroom | saveWaterPricebook | Pricebook |
| GET | /project-discovery | Discover visible project IDs | listVisibleProjectDiscovery | Projects |
| GET | /project-files | Discover project files by HW365 kind (C25/C84/C87/C89/C92) | listProjectFiles | Projects |
| GET | /project-files/{fileId}/download | Download one project file by id (C25/C84/C87/C89/C92) | downloadProjectFile | Projects |
| GET | /project-files/signed-agreement | Select the signed agreement file for a project (C25) | getProjectFileSignedAgreement | Projects |
| GET | /project-snapshots | List read-only project snapshots (cursor paginated) | listProjectSnapshots | Projects |
| GET | /project-snapshots/{id} | Get one read-only project snapshot | getProjectSnapshot | Projects |
| GET | /projects | List projects visible to the caller | listProjects | Projects |
| POST | /projects | Create a project | createProject | Projects |
| GET | /projects/{id} | Get a project | getProject | Projects |
| PATCH | /projects/{id} | Update a project | updateProject | Projects |
| GET | /projects/{id}/agreement | Read one project agreement/people projection (C21-C34, C75-C76) | getProjectAgreement | Projects |
| GET | /projects/{id}/appointments | List project-scoped appointments | listProjectAppointments | Projects |
| POST | /projects/{id}/appointments | Create a project-scoped appointment | createProjectAppointment | Projects |
| PATCH | /projects/{id}/appointments/{appointmentId} | Update a project-scoped appointment | updateProjectAppointment | Projects |
| GET | /projects/{id}/collaborators | List project people | listProjectCollaborators | Projects |
| POST | /projects/{id}/collaborators | Add a project collaborator (`projects:read` floor; manager/Primary checked in handler) | addProjectCollaborator | Projects |
| PATCH | /projects/{id}/collaborators/{userId} | Update collaborator access or promote Primary (`projects:read` floor; manager/Primary checked in handler) | updateProjectCollaborator | Projects |
| DELETE | /projects/{id}/collaborators/{userId} | Remove a project collaborator (`projects:read` floor; manager/Primary checked in handler) | removeProjectCollaborator | Projects |
| GET | /projects/{id}/contracts | List project-scoped contract drafts | listProjectContracts | Projects |
| POST | /projects/{id}/contracts | Create a project-scoped contract draft from an accepted estimate | createProjectContractDraft | Projects |
| GET | /projects/{id}/estimates | List project-scoped estimates | listProjectEstimates | Projects |
| POST | /projects/{id}/estimates | Create a project-scoped estimate | createProjectEstimate | Projects |
| PATCH | /projects/{id}/estimates/{estimateId} | Update a project-scoped estimate | updateProjectEstimate | Projects |
| POST | /projects/{id}/estimates/{estimateId}/accept | Accept a project-scoped estimate | acceptProjectEstimate | Projects |
| GET | /projects/{id}/finance | Read one project finance projection (C35-C47) | getProjectFinance | Projects |
| GET | /projects/{id}/identity | Read one project identity/site projection (C5-C20) | getProjectIdentity | Projects |
| GET | /projects/{id}/invoices | List project-scoped invoices | listProjectInvoices | Projects |
| POST | /projects/{id}/invoices | Create a project-scoped invoice | createProjectInvoice | Projects |
| PATCH | /projects/{id}/invoices/{invoiceId} | Update a project-scoped invoice | updateProjectInvoice | Projects |
| POST | /projects/{id}/invoices/{invoiceId}/mark_paid | Mark a project-scoped invoice paid | markProjectInvoicePaid | Projects |
| GET | /projects/{id}/notes | List project-scoped notes | listProjectNotes | Projects |
| POST | /projects/{id}/notes | Create a project-scoped note and matching activity row | createProjectNote | Projects |
| PATCH | /projects/{id}/notes/{noteId} | Update a project-scoped note | updateProjectNote | Projects |
| DELETE | /projects/{id}/notes/{noteId} | Soft-delete a project-scoped note | deleteProjectNote | Projects |
| GET | /projects/{id}/tasks | List project-scoped tasks | listProjectTasks | Projects |
| POST | /projects/{id}/tasks | Create a project-scoped task | createProjectTask | Projects |
| PATCH | /projects/{id}/tasks/{taskId} | Update a project-scoped task | updateProjectTask | Projects |
| DELETE | /projects/{id}/tasks/{taskId} | Soft-delete a project-scoped task | deleteProjectTask | Projects |
| GET | /projects/{id}/workspace | Get the read-only project workspace aggregate | getProjectWorkspace | Projects |
| GET | /projects/{projectId}/estimates/{estimateId}/lines | Read selected-estimate pricing lines (C41-C44) | listProjectEstimateLines | Projects |
| GET | /projects/{projectId}/hvac-design | List HVAC final-design revisions for a project | listProjectHvacDesigns | Projects |
| POST | /projects/{projectId}/hvac-design | Create a draft HVAC final-design revision | createProjectHvacDesign | Projects |
| PUT | /projects/{projectId}/hvac-design | Create a draft HVAC final-design revision | upsertProjectHvacDesign | Projects |
| GET | /projects/{projectId}/hvac-design/{designId}/components | Cursor-paginated HVAC components for a design revision (non-cost fields) | listProjectHvacDesignComponents | Projects |
| GET | /projects/{projectId}/hvac-design/{designId}/systems | Cursor-paginated HVAC systems for a design revision (non-cost fields) | listProjectHvacDesignSystems | Projects |
| POST | /projects/{projectId}/hvac-design/finalize | Finalize a draft HVAC design revision (immutable thereafter) | finalizeProjectHvacDesign | Projects |
| GET | /projects/{projectId}/hvac-design/revisions | Cursor-paginated HVAC design revisions for a project | listProjectHvacDesignRevisions | Projects |
| POST | /projects/{projectId}/invoices/{invoiceId}/payment-link | Create a connected-merchant homeowner payment link | createProjectInvoicePaymentLink | Projects |
| POST | /projects/{projectId}/invoices/{invoiceId}/payment-link/cancel | Revoke an unpaid connected-merchant payment link | cancelProjectInvoicePaymentLink | Projects |
| POST | /rebate-quote | Persist an HVAC rebate quote (pins the snapshot + breakdown) | createRebateQuote | RebateQuote |
| POST | /rebate-quote/{id}/quote | Materialize a persisted rebate quote into an estimate | materializeRebateQuote | RebateQuote |
| POST | /rebate-quote/{id}/submit | Submit an HVAC rebate application (SENSITIVE; step-up + verified-email) | submitRebateApplication | RebateQuote |
| POST | /rebate-quote/preview | Preview an HVAC rebate quote (pure compute; nothing persisted) | previewRebateQuote | RebateQuote |
| POST | /rebate-quote/sku-override | Set a per-account price override for a curated HVAC SKU (SENSITIVE) | setRebateSkuOverride | RebateQuote |
| GET | /showroom-catalog/products | List showroom products for the account | listShowroomProducts | ShowroomCatalog |
| GET | /showroom-catalog/products/{id} | Get a showroom product with its full catalog | getShowroomCatalog | ShowroomCatalog |
| GET | /showroom-catalog/workspace | List all dashboard showrooms with grouped pricebook sections | getShowroomWorkspace | ShowroomCatalog |
| GET | /showroom-catalog/workspace/{key}/cpm-pricing | HVAC Company Price Master offers, systems, defaults and installers (POR-1897) | getShowroomHvacCpmPricing | ShowroomCatalog |
| GET | /showroom-catalog/workspace/{key}/financing | Financing partner cards for one dashboard showroom | getShowroomFinancing | ShowroomCatalog |
| PUT | /showroom-catalog/workspace/{key}/financing | Replace financing partner cards for one dashboard showroom | putShowroomFinancing | ShowroomCatalog |
| POST | /showroom-catalog/workspace/{key}/reset | Remove some or all of one showroom's catalog so it can be re-imported (POR-2421) | resetShowroomCatalog | ShowroomCatalog |
| POST | /showroom-catalog/workspace/bootstrap | Create linked showroom product shells for each trade | bootstrapShowroomWorkspace | ShowroomCatalog |
| POST | /showroom-catalog/workspace/hvac/price-quote | Server price for an HVAC quote (Step 2 price engine) | postShowroomHvacPriceQuote | ShowroomCatalog |
| POST | /showroom/agreement-pdf | Generate a Service Agreement PDF | generateShowroomAgreementPdf | Showroom |
| GET | /showroom/agreement-templates | List effective agreement template coverage (managed + system) for the tenant | listShowroomAgreementTemplates | Showroom |
| GET | /showroom/agreement-templates/effective | Resolve the managed-first effective template pack for a trade+state | getEffectiveShowroomAgreementTemplate | Showroom |
| POST | /showroom/agreements | Sell-to-sign orchestration - create customer + estimate + project + contract in one saga (POR-464) | createShowroomAgreement | Showroom |
| POST | /showroom/agreements/{leadId}/cancel-draft | Withdraw the current unsigned saved showroom proposal | cancelShowroomAgreementDraftByLead | Showroom |
| POST | /showroom/agreements/{leadId}/save | Persist the signature-free, version-fenced showroom agreement draft | saveShowroomAgreementByLead | Showroom |
| POST | /showroom/agreements/{leadId}/sign | Retired local agreement execution endpoint | signShowroomAgreementByLead | Showroom |
| POST | /showroom/agreements/proposal-acknowledgments | Save bilateral proposal consent without closing a deal | saveShowroomProposalAcknowledgment | Showroom |
| POST | /showroom/client-start | Mint a linked lead, customer, draft estimate, and agreement-pending skeleton from the showroom New Lead/Customer form | startShowroomClient | Showroom |
| DELETE | /showroom/estimate-recoveries/{id} | Explicitly discard a caller-owned stale showroom recovery record | discardShowroomEstimateRecovery | Showroom |
| GET | /showroom/estimates/{id}/history | Quote history for a visible showroom estimate family | getShowroomQuoteHistory | Showroom |
| POST | /showroom/estimates/{id}/history/{recoveryId}/restore | Put pending unsaved changes back into the current quote | putBackShowroomQuoteChanges | Showroom |
| GET | /showroom/estimates/{id}/restore | Return the saved showroom configuration for Open in Showroom | restoreShowroomEstimate | Showroom |
| POST | /showroom/estimates/{id}/versions | Create a version from a historical estimate or resolve caller-owned stale edits | createShowroomEstimateVersion | Showroom |
| POST | /showroom/estimates/initialize | Initialize or resume the versioned showroom estimate for a visible lead | initializeShowroomLead | Showroom |
| POST | /showroom/estimates/sync | Persist the current showroom configuration onto the lead's draft estimate | syncShowroomEstimate | Showroom |
| POST | /showroom/rebate-research/quote-refresh | Request bounded research for one quote state without quote facts | unassigned | Untagged |
| POST | /showroom/rebate-research/rewiring-live-result | Save a held public-building Rewiring America result from the authenticated web server | unassigned | Untagged |
| POST | /showroom/rebate-research/runs | Request bounded manual public research | unassigned | Untagged |
| GET | /showroom/rebate-research/runs/{runId} | Read one tenant research run | unassigned | Untagged |
| POST | /showroom/rebate-research/runs/{runId}/cancel | Cancel pending public research scopes | unassigned | Untagged |
| POST | /showroom/rebate-research/runs/{runId}/retry | Retry failed or unattempted scopes in a new linked run | unassigned | Untagged |
| GET | /showroom/rebate-research/states | List all50 state coverage summaries | unassigned | Untagged |
| GET | /showroom/rebate-research/states/{state} | Read current effective public research and private review selection | unassigned | Untagged |
| GET | /showroom/rebate-research/states/{state}/versions/{versionId} | Read one immutable scope version | unassigned | Untagged |
| POST | /showroom/rebate-research/states/{state}/versions/{versionId}/review | Append a private account or branch evidence decision | unassigned | Untagged |
| GET | /sms/connection | State of the company's own Twilio account connection | getSmsConnection | SMS |
| PUT | /sms/connection | Submit the company's own Twilio account for checking (owner or admin) | putSmsConnection | SMS |
| DELETE | /sms/connection | Disconnect the company's Twilio account (owner or admin) | deleteSmsConnection | SMS |
| PATCH | /sms/connection/10dlc | Update the company's Twilio 10DLC status and optional campaign SID (head-office owner or admin) | patchSmsConnection10Dlc | SMS |
| GET | /sms/connection/branches | List per-branch Twilio SMS connections | listSmsBranchConnections | SMS |
| GET | /sms/connection/branches/{subAccountId} | State of one branch's Twilio SMS connection | getSmsBranchConnection | SMS |
| PUT | /sms/connection/branches/{subAccountId} | Submit a branch's own Twilio account for checking (head office or that branch's admin) | putSmsBranchConnection | SMS |
| DELETE | /sms/connection/branches/{subAccountId} | Disconnect a branch's own Twilio account (head office or that branch's admin) | deleteSmsBranchConnection | SMS |
| PATCH | /sms/connection/branches/{subAccountId}/10dlc | Update a branch's Twilio 10DLC status and optional campaign SID (head office or that branch's admin) | patchSmsBranchConnection10Dlc | SMS |
| POST | /sms/connection/branches/{subAccountId}/recheck | Check a branch's pending Twilio candidate again (head office or that branch's admin) | recheckSmsBranchConnection | SMS |
| POST | /sms/connection/recheck | Check the pending Twilio candidate again (owner or admin) | recheckSmsConnection | SMS |
| POST | /sms/inbound | Twilio inbound SMS webhook (STOP/HELP) | smsInboundWebhook | SMS |
| POST | /staff/accounts/{id}/billing-deadlines/clear | Clear a date that the tenant set (platform admin) | clearStaffAccountBillingDeadline | Staff |
| GET | /staff/accounts/{id}/billing-policy | Read a tenant's per-user billing policy and Stripe connections | getStaffAccountBillingPolicy | Staff |
| PUT | /staff/accounts/{id}/billing-policy | Set a tenant's per-user billing policy (platform admin) | setStaffAccountBillingPolicy | Staff |
| PUT | /staff/accounts/{id}/platform-billing-processor | Change the processor through which one company pays Portrex (platform admin) | setStaffAccountPlatformBillingProcessor | Staff |
| GET | /staff/accounts/{id}/user-subscriptions | Per-member subscription rows for one tenant | listStaffAccountUserSubscriptions | Staff |
| GET | /staff/affiliates | Partner directory | listStaffPartners | Staff |
| POST | /staff/affiliates | Create and invite a partner | createStaffPartner | Staff |
| GET | /staff/affiliates/{id} | Partner detail | getStaffPartner | Staff |
| GET | /staff/affiliates/{id}/activity | Partner audit trail | listStaffPartnerActivity | Staff |
| PUT | /staff/affiliates/{id}/caps | Set partner invitation caps | setStaffPartnerCaps | Staff |
| POST | /staff/affiliates/{id}/close | Close a partner | closeStaffPartner | Staff |
| POST | /staff/affiliates/{id}/reactivate | Reactivate a suspended partner | reactivateStaffPartner | Staff |
| GET | /staff/affiliates/{id}/referrals | Referrals for one partner | listStaffPartnerReferralsForPartner | Staff |
| POST | /staff/affiliates/{id}/suspend | Suspend a partner | suspendStaffPartner | Staff |
| GET | /staff/affiliates/applications | List partner applications | listStaffPartnerApplications | Staff |
| GET | /staff/affiliates/applications/{id} | Read one partner application | getStaffPartnerApplication | Staff |
| PATCH | /staff/affiliates/applications/{id} | Edit a partner application's applicant-entered fields | updateStaffPartnerApplication | Staff |
| POST | /staff/affiliates/applications/{id}/approve | Approve a partner application | approveStaffPartnerApplication | Staff |
| GET | /staff/affiliates/applications/{id}/events | List an application's calendar events | listStaffPartnerApplicationEvents | Staff |
| POST | /staff/affiliates/applications/{id}/events | Add a calendar event to an application | createStaffPartnerApplicationEvent | Staff |
| PATCH | /staff/affiliates/applications/{id}/events/{eventId} | Update an application calendar event | updateStaffPartnerApplicationEvent | Staff |
| DELETE | /staff/affiliates/applications/{id}/events/{eventId} | Delete an application calendar event | deleteStaffPartnerApplicationEvent | Staff |
| GET | /staff/affiliates/applications/{id}/notes | List an application's notes | listStaffPartnerApplicationNotes | Staff |
| POST | /staff/affiliates/applications/{id}/notes | Add a note to an application | createStaffPartnerApplicationNote | Staff |
| DELETE | /staff/affiliates/applications/{id}/notes/{noteId} | Delete an application note | deleteStaffPartnerApplicationNote | Staff |
| POST | /staff/affiliates/applications/{id}/reject | Reject a partner application | rejectStaffPartnerApplication | Staff |
| POST | /staff/affiliates/applications/{id}/resend-setup | Resend a partner password setup link | resendStaffPartnerSetupMail | Staff |
| GET | /staff/affiliates/applications/{id}/tasks | List an application's tasks | listStaffPartnerApplicationTasks | Staff |
| POST | /staff/affiliates/applications/{id}/tasks | Add a task to an application | createStaffPartnerApplicationTask | Staff |
| PATCH | /staff/affiliates/applications/{id}/tasks/{taskId} | Update an application task | updateStaffPartnerApplicationTask | Staff |
| DELETE | /staff/affiliates/applications/{id}/tasks/{taskId} | Delete an application task | deleteStaffPartnerApplicationTask | Staff |
| GET | /staff/affiliates/invitations | Partner invitation queue | listStaffPartnerInvitations | Staff |
| POST | /staff/affiliates/invitations/{id}/revoke | Revoke an invitation as staff | revokeStaffPartnerInvitation | Staff |
| GET | /staff/affiliates/mismatches | Invitation-mismatch review queue | listStaffPartnerMismatches | Staff |
| GET | /staff/affiliates/referrals | Cross-partner referral review queue | listStaffPartnerReferrals | Staff |
| POST | /staff/affiliates/referrals/{id}/accept | Accept a referral | acceptStaffPartnerReferral | Staff |
| POST | /staff/affiliates/referrals/{id}/confirm-mismatch | Resolve an invitation mismatch | confirmStaffPartnerReferralMismatch | Staff |
| POST | /staff/affiliates/referrals/{id}/link-account | Link an account to a referral | linkStaffPartnerReferralAccount | Staff |
| POST | /staff/affiliates/referrals/{id}/mark-ineligible | Mark a referral ineligible | markStaffPartnerReferralIneligible | Staff |
| POST | /staff/affiliates/referrals/{id}/override-attribution | Override attribution for an account | overrideStaffPartnerReferralAttribution | Staff |
| POST | /staff/affiliates/referrals/{id}/set-stage | Set a referral stage | setStaffPartnerReferralStage | Staff |
| GET | /staff/affiliates/suppressions | Invitation-outreach suppression list | listStaffPartnerSuppressions | Staff |
| POST | /staff/affiliates/suppressions | Suppress invitation outreach to an address | addStaffPartnerSuppression | Staff |
| DELETE | /staff/affiliates/suppressions/{hash} | Remove a suppression | removeStaffPartnerSuppression | Staff |
| GET | /staff/billing/findings | The billing findings across the accounts the staff user can see | listStaffBillingFindings | Staff |
| POST | /staff/billing/findings/{findingId}/refund | Refund the payment of a billing finding that Portrex took by error (platform admin) | refundStaffBillingFinding | Staff |
| POST | /staff/billing/findings/{findingId}/resolve | Settle the attempt of a billing finding (platform admin) | resolveStaffBillingFinding | Staff |
| POST | /staff/house/handoff | Get a one-time handoff URL into the Portrex house account CRM (platform_admin and account_manager) | staffHouseCrmIssueHandoff | Untagged |
| POST | /staff/impersonation/elevations | Request a dual-approved impersonation elevation (assigned Account Manager only) | requestImpersonationElevation | Untagged |
| POST | /staff/impersonation/elevations/{id}/activate | Activate an approved elevation using the server-bound HttpOnly capability | activateImpersonationElevation | Untagged |
| POST | /staff/impersonation/elevations/{id}/revoke | Revoke an approved or active elevation as its requesting Account Manager | revokeStaffImpersonationElevation | Untagged |
| POST | /staff/impersonation/elevations/reissue | Perform the single proof-bound recovery rotation for a matching pending elevation | reissueImpersonationElevation | Untagged |
| POST | /staff/impersonation/handoff/redeem | Redeem a one-time owner-login handoff code on the tenant web origin | redeemStaffOwnerLoginHandoff | Untagged |
| POST | /staff/impersonation/login-as-owner | Sign in to a tenant as its owner (platform_admin only; no tenant consent, no step-up) | staffLoginAsOwner | Untagged |
| GET | /staff/me | Hydrate the current Portrex staff session | getStaffMe | Staff |
| GET | /staff/platform/billing-processor | The processor of new company subscriptions, and whether each processor is configured | getStaffPlatformBillingProcessor | Staff |
| PUT | /staff/platform/billing-processor | Set the processor of new company subscriptions (platform admin) | setStaffPlatformBillingProcessor | Staff |
| POST | /staff/releases/actions/bump-minor | Open the release-line minor bump PR with squash auto-merge | bumpStaffReleasesMinor | Staff |
| POST | /staff/releases/actions/flush | Dispatch a staging batch flush now | dispatchStaffReleasesFlush | Staff |
| POST | /staff/releases/actions/promote | Dispatch a production promotion of a sealed staging release | dispatchStaffReleasesPromotion | Staff |
| POST | /staff/releases/actions/rerun-failed | Re-run the failed jobs of one workflow run | rerunStaffReleasesFailedJobs | Staff |
| POST | /staff/releases/actions/rollback | Dispatch a coordinated production rollback to a sealed release | rollbackStaffReleases | Staff |
| POST | /staff/releases/actions/schedule | Create or cancel a production deploy schedule | mutateStaffReleasesSchedule | Staff |
| POST | /staff/releases/actions/set-batch-schedule | Update the staging batch schedule repo variables | setStaffReleasesBatchSchedule | Staff |
| POST | /staff/releases/actions/toggle | Flip a release pipeline repo-variable toggle | setStaffReleasesToggle | Staff |
| POST | /staff/releases/actions/waive-review | Apply the review:waive label to a pull request | waiveStaffReleasesReview | Staff |
| GET | /staff/releases/costs | Release pipeline cost telemetry (GitHub Actions, OpenRouter, GCP stub) | getStaffReleasesCosts | Staff |
| GET | /staff/releases/costs/breakdown | Daily Actions net-cost series and per-workflow cost estimates | getStaffReleasesCostsBreakdown | Staff |
| GET | /staff/releases/dora | DORA metrics computed from the release journal and run history | getStaffReleasesDora | Staff |
| GET | /staff/releases/events | Release event feed (merges, promotions, failures, blocked PRs, waivers) | listStaffReleasesEvents | Staff |
| GET | /staff/releases/failures | Categorized Failure Center feed over recent failed workflow runs | listStaffReleasesFailures | Staff |
| GET | /staff/releases/history | Staging batch and production promotion run history | listStaffReleasesHistory | Staff |
| GET | /staff/releases/journal | Sealed releases from the GCS release journal with environment truth | listStaffReleasesJournal | Staff |
| GET | /staff/releases/journal/{releaseId} | Full journal drill-down for one sealed release | getStaffReleasesJournalDetail | Staff |
| GET | /staff/releases/overview | Release Control Center overview (environments, toggles, live pipeline) | getStaffReleasesOverview | Staff |
| GET | /staff/releases/pending | Commits on main since the last sealed release | getStaffReleasesPending | Staff |
| GET | /staff/releases/prs | Pull-request feed with Jira keys for the Release Center PR panel | listStaffReleasesPrs | Staff |
| GET | /staff/releases/review-intel | AI review gate verdicts and waiver stats for recent PRs | getStaffReleasesReviewIntel | Staff |
| GET | /staff/releases/runs/{runId}/jobs | Job and step detail for one workflow run (with child release-run chase) | getStaffReleaseRunJobs | Staff |
| GET | /staff/releases/runs/{runId}/jobs/{jobId}/logs | Extracted log view for one job (errors, tail, or full) | getStaffReleaseJobLogs | Staff |
| GET | /staff/releases/schedules | Production deploy schedules from the release journal bucket | listStaffReleasesSchedules | Staff |
| GET | /staff/work/tasks | List marketing contact tasks assigned to the current staff admin | listStaffMarketingContactTasks | Staff |
| GET | /staff/work/tasks/{id} | Get one marketing contact task assigned to the current staff admin | getStaffMarketingContactTask | Staff |
| PATCH | /staff/work/tasks/{id}/status | Update one assigned marketing contact task status | updateStaffMarketingContactTaskStatus | Staff |
| GET | /sub-accounts/{id}/lead-assignment-policy | Get a branch lead-assignment override and effective policy | getSubAccountLeadAssignmentPolicy | Accounts |
| PUT | /sub-accounts/{id}/lead-assignment-policy | Completely replace a branch lead-assignment override | replaceSubAccountLeadAssignmentPolicy | Accounts |
| DELETE | /sub-accounts/{id}/lead-assignment-policy | Delete a branch lead-assignment override | deleteSubAccountLeadAssignmentPolicy | Accounts |
| GET | /sub-accounts/summary | List sub-account roll-up summaries | listSubAccountSummaries | Accounts |
| POST | /uploads/images | Upload a tenant image asset | uploadTenantImage | Uploads |
| GET | /uploads/images/{assetKey} | Serve an uploaded tenant image asset | getUploadedTenantImage | Uploads |
| GET | /void-events/{id}/diff | Diff between original contract and replacement payload | getVoidEventDiff | VoidEvents |
| POST | /void-events/{id}/fcra-notice/draft | Draft an FCRA Adverse Action Notice (DRAFT ONLY — never auto-sends) | createFcraNoticeDraft | VoidEvents |
| POST | /void-events/{id}/sign | Sign a void event (rep or homeowner countersign) | signVoidEvent | VoidEvents |
| GET | /webhooks | List webhook subscriptions for the current account | listWebhookSubscriptions | Webhooks |
| POST | /webhooks | Create a webhook subscription | createWebhookSubscription | Webhooks |
| GET | /webhooks/{id} | Get one webhook subscription by ID (secret never returned) | getWebhookSubscription | Webhooks |
| PATCH | /webhooks/{id} | Update webhook subscription URL, subscribed events, active state, or description | updateWebhookSubscription | Webhooks |
| DELETE | /webhooks/{id} | Soft-delete a webhook subscription | deleteWebhookSubscription | Webhooks |
| POST | /webhooks/{id}/restore | Restore a soft-deleted webhook subscription within the 30-day window | restoreWebhookSubscription | Webhooks |
| POST | /webhooks/{id}/rotate-secret | Generate a new HMAC secret for a subscription | rotateWebhookSecret | Webhooks |
| GET | /webhooks/deliveries | List delivery attempts (history) | listWebhookDeliveries | Webhooks |
| POST | /webhooks/deliveries/{id}/replay | Replay a single delivery — creates a new delivery row | replayWebhookDelivery | Webhooks |
| GET | /webhooks/dlq | List dead-lettered deliveries | listWebhookDlq | Webhooks |
| POST | /webhooks/dlq/replay | Batch replay deliveries from the dead-letter queue | replayWebhookDlqBatch | Webhooks |
| POST | /webhooks/documenso | Documenso inbound webhook (signature events) | documensoWebhook | Webhooks |
| GET | /webhooks/events | List supported webhook event types (public) | listWebhookEventTypes | Webhooks |
| POST | /webhooks/ghl | GoHighLevel marketplace inbound webhook | ghlWebhook | Webhooks |
| POST | /webhooks/goodleap | GoodLeap fetch-on-notify ingress | receiveGoodLeapWebhook | Webhooks |
| POST | /webhooks/hubspot | HubSpot CRM inbound webhook (v3 HMAC-SHA256 verified) | hubspotWebhook | Webhooks |
| POST | /webhooks/square | Square webhook for tenants' connected seller accounts | receiveSquareWebhook | Webhooks |
| POST | /webhooks/square/platform | Square webhook of Portrex's own Square account (the platform seller) | squarePlatformWebhook | Webhooks |
| POST | /webhooks/stripe | Stripe inbound webhook | stripeWebhook | Webhooks |
| POST | /webhooks/stripe/connect | Stripe webhook for tenants' connected accounts | receiveStripeConnectWebhook | Webhooks |