Legal & Contracts (Lawyer-Backed,Not Legal Advice)

Legal & Contracts (Lawyer-Backed,Not Legal Advice) · Actions GPT

Inhouse API

API for generating documents and submitting referral leads.

  • POST /gpt/airesearch/generate-documentGenerate a link to continue document generation on Inhouse

    Sends a summary of the conversation to Inhouse so the document generation can continue there.

  • POST /gpt/airesearch/get-lawyer-adviceGenerate a link to continue on with a professional on Inhouse

    Sends a summary of the conversation to Inhouse to continue with the process of connecting with a professional.

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Inhouse API",
    "description": "API for generating documents and submitting referral leads.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.inhouse.app",
      "description": "Inhouse API server"
    }
  ],
  "paths": {
    "/gpt/airesearch/generate-document": {
      "post": {
        "operationId": "generate_document",
        "summary": "Generate a link to continue document generation on Inhouse",
        "description": "Sends a summary of the conversation to Inhouse so the document generation can continue there.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_requirements": {
                    "type": "string",
                    "description": "A description of user requirements for document generation. Make sure you add all the details provided by the user"
                  },
                  "document_title": {
                    "type": "string",
                    "description": "A title for the document being generated"
                  },
                  "document_uploaded": {
                    "type": "boolean",
                    "description": "True if the user uploaded a document during the conversation which was not shared on this API call. False if the user did not upload a document."
                  }
                },
                "required": [
                  "user_requirements",
                  "document_title",
                  "document_uploaded"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully generated the document request and returned an access URL.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "A URL to continue document generation in Inhouse."
                    }
                  },
                  "required": [
                    "url"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad request, invalid input."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/gpt/airesearch/get-lawyer-advice": {
      "post": {
        "operationId": "getLawyerAdvice",
        "summary": "Generate a link to continue on with a professional on Inhouse",
        "description": "Sends a summary of the conversation to Inhouse to continue with the process of connecting with a professional.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_requirements": {
                    "type": "string",
                    "description": "A description of user requirements for consultation, analysis or guidance request. Make sure you add all the details provided by the user"
                  },
                  "document_uploaded": {
                    "type": "boolean",
                    "description": "True if the user uploaded a document during the conversation which was not shared on this API call. False if the user did not upload a document."
                  }
                },
                "required": [
                  "user_requirements",
                  "document_uploaded"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully generated the professional review or consultation request and returned an access URL.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "A URL to continue with Inhouse"
                    }
                  },
                  "required": [
                    "url"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad request, invalid input."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    }
  }
}