Upload a Document

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://apidocs.lwolf.com/doc/transactiondesk-api/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "TransactionDesk API MCP server": {
    "url": "https://apidocs.lwolf.com/doc/transactiondesk-api/mcp"
  }
}

Close
POST /v2/transactions/{id}/documents

Uploads a new document to a specific transaction. The document binary must be Base64 encoded.

Path parameters

  • id string(uuid) Required

    TransactionGUID

application/json

Body Required

  • documentName string Required
  • binary string Required

    Base64 encoded document binary

  • fileTypeId string(uuid) Required

    File type GUID. See Glossary for values.

Responses

  • 200 application/json

    Document uploaded successfully

    Hide response attribute Show response attribute object
    • id string(uuid)
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • details array
    • data
POST /v2/transactions/{id}/documents
curl \
 --request POST 'https://api.pre.transactiondesk.com/v2/transactions/{id}/documents' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"documentName":"Purchase Agreement","binary":"string","fileTypeId":"string"}'
Request examples
{
  "documentName": "Purchase Agreement",
  "binary": "string",
  "fileTypeId": "string"
}
Response examples (200)
{
  "id": "string"
}
Response examples (401)
{
  "code": 401,
  "message": "Unauthorized. The user is not authenticated.",
  "details": []
}