openapi: 3.0.3 info: title: dotloop Public API v2 Account Documents API description: The dotloop Public API v2 is a documented, OAuth2-secured JSON REST API for the dotloop real estate transaction management platform (a Zillow Group company). It exposes the authenticated account, profiles, loops (transactions) and their structured details, folders, documents, participants, tasks, activities, contacts, loop templates, and webhook subscriptions, plus a Loop-It facade that creates and populates a loop in a single call. All requests and responses are `application/json` (document upload uses multipart form-data). Access is currently restricted to INDIVIDUAL profiles. Endpoints and paths in this document are grounded in the published developer guide at https://dotloop.github.io/public-api/. termsOfService: https://www.dotloop.com/terms-of-service/ contact: name: dotloop Developer Support url: https://dotloop.github.io/public-api/ version: '2.0' servers: - url: https://api-gateway.dotloop.com/public/v2 description: dotloop Public API v2 security: - oauth2: [] tags: - name: Documents description: Documents within a loop folder. paths: /profile/{profile_id}/loop/{loop_id}/folder/{folder_id}/document: parameters: - $ref: '#/components/parameters/ProfileId' - $ref: '#/components/parameters/LoopId' - $ref: '#/components/parameters/FolderId' get: operationId: listDocuments tags: - Documents summary: List documents. description: Lists the documents within a loop folder (scope loop:read). responses: '200': description: A list of documents. post: operationId: uploadDocument tags: - Documents summary: Upload a document. description: Uploads a new document into a loop folder using multipart form-data (scope loop:write). requestBody: required: true content: multipart/form-data: schema: type: object properties: file: type: string format: binary responses: '201': description: The uploaded document. /profile/{profile_id}/loop/{loop_id}/folder/{folder_id}/document/{document_id}: parameters: - $ref: '#/components/parameters/ProfileId' - $ref: '#/components/parameters/LoopId' - $ref: '#/components/parameters/FolderId' - $ref: '#/components/parameters/DocumentId' get: operationId: getDocument tags: - Documents summary: Get a document. description: Retrieves a single document within a loop folder; can be downloaded as a PDF (scope loop:read). responses: '200': description: The document. components: parameters: FolderId: name: folder_id in: path required: true schema: type: integer DocumentId: name: document_id in: path required: true schema: type: integer ProfileId: name: profile_id in: path required: true schema: type: integer LoopId: name: loop_id in: path required: true schema: type: integer securitySchemes: oauth2: type: oauth2 description: OAuth2 authorization code flow. Access tokens are short-lived (typically 12 hours) and passed as a Bearer token. Scopes include account:read, profile:read, profile:write, loop:read, loop:write, contact:read, contact:write, and template:read. flows: authorizationCode: authorizationUrl: https://auth.dotloop.com/oauth/authorize tokenUrl: https://auth.dotloop.com/oauth/token scopes: account:read: Read account details. profile:read: Read profiles. profile:write: Create and update profiles. loop:read: Read loops, details, folders, documents, participants, tasks, and activities. loop:write: Create and update loops and their contents. contact:read: Read contacts. contact:write: Create, update, and delete contacts. template:read: Read loop templates.