ThaiProps Resources Agreements API

The Resources Agreements API from ThaiProps — 39 operation(s) for resources agreements.

GitHub OpenAPI

Operations 42

POST /resources/agreements/extract-id Extract Identity File #
POST /resources/agreements/identity/pdf-preview Identity Pdf Preview #
POST /resources/agreements/{agreement_id}/signature-setup Save Signature Setup #
GET /resources/agreements/{agreement_id}/signature-setup Get Signature Setup #
POST /resources/agreements/upload-template Upload Agreement Template #
GET /resources/agreements/editor-image/{file_id}/{filename} Get Agreement Editor Image #
GET /resources/agreements/working-drafts List Working Agreement Drafts #
GET /resources/agreements/working-drafts/{draft_id} Load Working Agreement Draft #
PUT /resources/agreements/working-drafts/{draft_id} Save Working Agreement Draft #
DELETE /resources/agreements/working-drafts/{draft_id} Delete Unused Agreement Draft #
GET /resources/agreements/draft-reviews List Draft Reviews #
GET /resources/agreements/draft-reviews/public/{token} Read Public Draft Review #
GET /resources/agreements/draft-reviews/public/{token}/assets/{asset_id} Read Public Review Asset #
POST /resources/agreements/draft-reviews/public/{token}/actions Act On Public Review #
POST /resources/agreements/draft-reviews/{draft_id}/share Share Draft Review #
GET /resources/agreements/draft-reviews/{draft_id} Read Review Status #
POST /resources/agreements/draft-reviews/{draft_id}/revoke Revoke Draft Review #
POST /resources/agreements/working-drafts/{draft_id}/archive-completed Archive Completed Agreement #
GET /resources/agreements/completed-attachments List Completed Agreement Attachments #
GET /resources/agreements/completed-attachments/{archive_id} Load Completed Agreement Attachments #
POST /resources/agreements/export-editable-docx Export Editable Agreement Docx #
POST /resources/agreements/render-edited-pdf Render Edited Agreement Pdf #
POST /resources/agreements/render-pdf Render Agreement Pdf #
POST /resources/agreements/append-inventory-pdf Append Inventory Pdf #
GET /resources/agreements/pdf/{file_id} Get Agreement Pdf #
POST /resources/agreements/signing-links Create Thaiprops Signing Links #
GET /resources/agreements/signing-receipt/{token} Get Signing Receipt Status #
POST /resources/agreements/signing-links/{token}/complete Complete Thaiprops Signing Link #
POST /resources/agreements/draft/send-esign Send Draft Esign #
POST /resources/agreements/send-esign-draft Send Esign Draft #
POST /resources/agreements/{agreement_id}/send-esign Send Esign #
POST /resources/agreements/documenso-send/{document_id} Send Existing Documenso Document #
GET /resources/agreements/signed-pdf/{draft_id} Get Signed Agreement Pdf #
POST /resources/agreements/signed-share/{draft_id} Create Signed Agreement Share #
GET /resources/agreements/signed-share/{token} Open Signed Agreement Share #
GET /resources/agreements/documenso-status/{document_id} Get Documenso Status #
GET /resources/agreements/{agreement_id}/esign-status Esign Status #
POST /resources/agreements/{agreement_id}/esign-refresh Esign Refresh #
GET /resources/agreements/{agreement_id}/signed-document Signed Document #
POST /resources/agreements/webhooks/docuseal Docuseal Webhook #

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/thaiprops-com:thaiprops-com-resources-agreements-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

thaiprops-com-resources-agreements-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThaiProps Admin Resources Agreements API
  version: 0.1.0
tags:
- name: Resources Agreements
paths:
  /resources/agreements/extract-id:
    post:
      tags:
      - Resources Agreements
      summary: Extract Identity File
      operationId: extract_identity_file_resources_agreements_extract_id_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_extract_identity_file_resources_agreements_extract_id_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/identity/pdf-preview:
    post:
      tags:
      - Resources Agreements
      summary: Identity Pdf Preview
      operationId: identity_pdf_preview_resources_agreements_identity_pdf_preview_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_identity_pdf_preview_resources_agreements_identity_pdf_preview_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/{agreement_id}/signature-setup:
    post:
      tags:
      - Resources Agreements
      summary: Save Signature Setup
      operationId: save_signature_setup_resources_agreements__agreement_id__signature_setup_post
      parameters:
      - name: agreement_id
        in: path
        required: true
        schema:
          type: string
          title: Agreement Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignatureSetupPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Resources Agreements
      summary: Get Signature Setup
      operationId: get_signature_setup_resources_agreements__agreement_id__signature_setup_get
      parameters:
      - name: agreement_id
        in: path
        required: true
        schema:
          type: string
          title: Agreement Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/upload-template:
    post:
      tags:
      - Resources Agreements
      summary: Upload Agreement Template
      operationId: upload_agreement_template_resources_agreements_upload_template_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_upload_agreement_template_resources_agreements_upload_template_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/editor-image/{file_id}/{filename}:
    get:
      tags:
      - Resources Agreements
      summary: Get Agreement Editor Image
      operationId: get_agreement_editor_image_resources_agreements_editor_image__file_id___filename__get
      parameters:
      - name: file_id
        in: path
        required: true
        schema:
          type: string
          title: File Id
      - name: filename
        in: path
        required: true
        schema:
          type: string
          title: Filename
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/working-drafts:
    get:
      tags:
      - Resources Agreements
      summary: List Working Agreement Drafts
      operationId: list_working_agreement_drafts_resources_agreements_working_drafts_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /resources/agreements/working-drafts/{draft_id}:
    get:
      tags:
      - Resources Agreements
      summary: Load Working Agreement Draft
      operationId: load_working_agreement_draft_resources_agreements_working_drafts__draft_id__get
      parameters:
      - name: draft_id
        in: path
        required: true
        schema:
          type: string
          title: Draft Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Resources Agreements
      summary: Save Working Agreement Draft
      operationId: save_working_agreement_draft_resources_agreements_working_drafts__draft_id__put
      parameters:
      - name: draft_id
        in: path
        required: true
        schema:
          type: string
          title: Draft Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Resources Agreements
      summary: Delete Unused Agreement Draft
      operationId: delete_unused_agreement_draft_resources_agreements_working_drafts__draft_id__delete
      parameters:
      - name: draft_id
        in: path
        required: true
        schema:
          type: string
          title: Draft Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/draft-reviews:
    get:
      tags:
      - Resources Agreements
      summary: List Draft Reviews
      operationId: list_draft_reviews_resources_agreements_draft_reviews_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /resources/agreements/draft-reviews/public/{token}:
    get:
      tags:
      - Resources Agreements
      summary: Read Public Draft Review
      operationId: read_public_draft_review_resources_agreements_draft_reviews_public__token__get
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/draft-reviews/public/{token}/assets/{asset_id}:
    get:
      tags:
      - Resources Agreements
      summary: Read Public Review Asset
      operationId: read_public_review_asset_resources_agreements_draft_reviews_public__token__assets__asset_id__get
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          title: Token
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/draft-reviews/public/{token}/actions:
    post:
      tags:
      - Resources Agreements
      summary: Act On Public Review
      operationId: act_on_public_review_resources_agreements_draft_reviews_public__token__actions_post
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/draft-reviews/{draft_id}/share:
    post:
      tags:
      - Resources Agreements
      summary: Share Draft Review
      operationId: share_draft_review_resources_agreements_draft_reviews__draft_id__share_post
      parameters:
      - name: draft_id
        in: path
        required: true
        schema:
          type: string
          title: Draft Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/draft-reviews/{draft_id}:
    get:
      tags:
      - Resources Agreements
      summary: Read Review Status
      operationId: read_review_status_resources_agreements_draft_reviews__draft_id__get
      parameters:
      - name: draft_id
        in: path
        required: true
        schema:
          type: string
          title: Draft Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/draft-reviews/{draft_id}/revoke:
    post:
      tags:
      - Resources Agreements
      summary: Revoke Draft Review
      operationId: revoke_draft_review_resources_agreements_draft_reviews__draft_id__revoke_post
      parameters:
      - name: draft_id
        in: path
        required: true
        schema:
          type: string
          title: Draft Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/working-drafts/{draft_id}/archive-completed:
    post:
      tags:
      - Resources Agreements
      summary: Archive Completed Agreement
      description: Freeze reusable attachments only after Documenso reports COMPLETED.
      operationId: archive_completed_agreement_resources_agreements_working_drafts__draft_id__archive_completed_post
      parameters:
      - name: draft_id
        in: path
        required: true
        schema:
          type: string
          title: Draft Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/completed-attachments:
    get:
      tags:
      - Resources Agreements
      summary: List Completed Agreement Attachments
      operationId: list_completed_agreement_attachments_resources_agreements_completed_attachments_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /resources/agreements/completed-attachments/{archive_id}:
    get:
      tags:
      - Resources Agreements
      summary: Load Completed Agreement Attachments
      operationId: load_completed_agreement_attachments_resources_agreements_completed_attachments__archive_id__get
      parameters:
      - name: archive_id
        in: path
        required: true
        schema:
          type: string
          title: Archive Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/export-editable-docx:
    post:
      tags:
      - Resources Agreements
      summary: Export Editable Agreement Docx
      description: Download editable Word contract + inventory/pre-move pages, never alter Documenso.
      operationId: export_editable_agreement_docx_resources_agreements_export_editable_docx_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /resources/agreements/render-edited-pdf:
    post:
      tags:
      - Resources Agreements
      summary: Render Edited Agreement Pdf
      description: Render ONLY sanitized uploaded Word editor HTML to a new signing PDF.
      operationId: render_edited_agreement_pdf_resources_agreements_render_edited_pdf_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /resources/agreements/render-pdf:
    post:
      tags:
      - Resources Agreements
      summary: Render Agreement Pdf
      operationId: render_agreement_pdf_resources_agreements_render_pdf_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /resources/agreements/append-inventory-pdf:
    post:
      tags:
      - Resources Agreements
      summary: Append Inventory Pdf
      description: Append inventory PDF pages to an uploaded/edited agreement without modifying its pages.
      operationId: append_inventory_pdf_resources_agreements_append_inventory_pdf_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /resources/agreements/pdf/{file_id}:
    get:
      tags:
      - Resources Agreements
      summary: Get Agreement Pdf
      operationId: get_agreement_pdf_resources_agreements_pdf__file_id__get
      parameters:
      - name: file_id
        in: path
        required: true
        schema:
          type: string
          title: File Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/signing-links:
    post:
      tags:
      - Resources Agreements
      summary: Create Thaiprops Signing Links
      operationId: create_thaiprops_signing_links_resources_agreements_signing_links_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /resources/agreements/signing-receipt/{token}:
    get:
      tags:
      - Resources Agreements
      summary: Get Signing Receipt Status
      description: Bearer-token access to one document's live signing progress, no emails.
      operationId: get_signing_receipt_status_resources_agreements_signing_receipt__token__get
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/workspace-link/{token}:
    get:
      tags:
      - Resources Agreements
      summary: Resolve Workspace Signing Link
      description: Public bearer link. No source PDF or private identity files are exposed.
      operationId: resolve_workspace_signing_link_resources_agreements_workspace_link__token__get
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/signing-links/{token}:
    get:
      tags:
      - Resources Agreements
      summary: Get Thaiprops Signing Link
      operationId: get_thaiprops_signing_link_resources_agreements_signing_links__token__get
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/signing-links/{token}/complete:
    post:
      tags:
      - Resources Agreements
      summary: Complete Thaiprops Signing Link
      operationId: complete_thaiprops_signing_link_resources_agreements_signing_links__token__complete_post
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/draft/send-esign:
    post:
      tags:
      - Resources Agreements
      summary: Send Draft Esign
      operationId: send_draft_esign_resources_agreements_draft_send_esign_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /resources/agreements/send-esign-draft:
    post:
      tags:
      - Resources Agreements
      summary: Send Esign Draft
      operationId: send_esign_draft_resources_agreements_send_esign_draft_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /resources/agreements/{agreement_id}/send-esign:
    post:
      tags:
      - Resources Agreements
      summary: Send Esign
      operationId: send_esign_resources_agreements__agreement_id__send_esign_post
      parameters:
      - name: agreement_id
        in: path
        required: true
        schema:
          type: string
          title: Agreement Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendEsignPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/documenso-send/{document_id}:
    post:
      tags:
      - Resources Agreements
      summary: Send Existing Documenso Document
      operationId: send_existing_documenso_document_resources_agreements_documenso_send__document_id__post
      parameters:
      - name: document_id
        in: path
        required: true
        schema:
          type: integer
          title: Document Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/signed-pdf/{draft_id}:
    get:
      tags:
      - Resources Agreements
      summary: Get Signed Agreement Pdf
      description: Return a short-lived signed PDF URL to the verified workspace owner only.
      operationId: get_signed_agreement_pdf_resources_agreements_signed_pdf__draft_id__get
      parameters:
      - name: draft_id
        in: path
        required: true
        schema:
          type: string
          title: Draft Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/signed-share/{draft_id}:
    post:
      tags:
      - Resources Agreements
      summary: Create Signed Agreement Share
      description: Create a 14-day, read-only capability URL for a completed agreement.
      operationId: create_signed_agreement_share_resources_agreements_signed_share__draft_id__post
      parameters:
      - name: draft_id
        in: path
        required: true
        schema:
          type: string
          title: Draft Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/signed-share/{token}:
    get:
      tags:
      - Resources Agreements
      summary: Open Signed Agreement Share
      description: Serve only the completed PDF; a capability token grants no account access.
      operationId: open_signed_agreement_share_resources_agreements_signed_share__token__get
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/documenso-status/{document_id}:
    get:
      tags:
      - Resources Agreements
      summary: Get Documenso Status
      operationId: get_documenso_status_resources_agreements_documenso_status__document_id__get
      parameters:
      - name: document_id
        in: path
        required: true
        schema:
          type: integer
          title: Document Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/{agreement_id}/esign-status:
    get:
      tags:
      - Resources Agreements
      summary: Esign Status
      operationId: esign_status_resources_agreements__agreement_id__esign_status_get
      parameters:
      - name: agreement_id
        in: path
        required: true
        schema:
          type: string
          title: Agreement Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/{agreement_id}/esign-refresh:
    post:
      tags:
      - Resources Agreements
      summary: Esign Refresh
      operationId: esign_refresh_resources_agreements__agreement_id__esign_refresh_post
      parameters:
      - name: agreement_id
        in: path
        required: true
        schema:
          type: string
          title: Agreement Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/{agreement_id}/signed-document:
    get:
      tags:
      - Resources Agreements
      summary: Signed Document
      operationId: signed_document_resources_agreements__agreement_id__signed_document_get
      parameters:
      - name: agreement_id
        in: path
        required: true
        schema:
          type: string
          title: Agreement Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /resources/agreements/webhooks/docuseal:
    post:
      tags:
      - Resources Agreements
      summary: Docuseal Webhook
      operationId: docuseal_webhook_resources_agreements_webhooks_docuseal_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    Body_extract_identity_file_resources_agreements_extract_id_post:
      properties:
        file:
          type: string
          format: binary
          title: File
        party_type:
          type: string
          title: Party Type
        party_index:
          anyOf:
          - type: integer
          - type: 'null'
          title: Party Index
      type: object
      required:
      - file
      - party_type
      title: Body_extract_identity_file_resources_agreements_extract_id_post
    SendEsignPayload:
      properties:
        title:
          type: string
          title: Title
          default: ThaiProps Agreement
        source:
          type: string
          title: Source
          default: thaiprops_template
        body:
          type: string
          title: Body
          default: ''
        signature_setup:
          additionalProperties: true
          type: object
          title: Signature Setup
          default: {}
        send_email:
          type: boolean
          title: Send Email
          default: true
      type: object
      title: SendEsignPayload
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    Body_identity_pdf_preview_resources_agreements_identity_pdf_preview_post:
      properties:
        file:
          type: string
          format: binary
          title: File
        party_type:
          type: string
          title: Party Type
          default: tenant
        party_index:
          anyOf:
          - type: integer
          - type: 'null'
          title: Party Index
      type: object
      required:
      - file
      title: Body_identity_pdf_preview_resources_agreements_identity_pdf_preview_post
    Body_upload_agreement_template_resources_agreements_upload_template_post:
      properties:
        file:
          type: string
          format: binary
          title: File
        title:
          type: string
          title: Title
          default: ''
      type: object
      required:
      - file
      title: Body_upload_agreement_template_resources_agreements_upload_template_post
    SignatureSetupPayload:
      properties:
        active_signer_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Active Signer Id
        signers:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Signers
          default: []
        pages:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Pages
          default: []
        fields:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Fields
          default: []
      type: object
      title: SignatureSetupPayload
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError