Upload a document (user-scoped)

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/transact-api/mcp

Standard setup for AI tools providing an mcp.json file

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

Close
POST /transact-workflow/v1/users/{userId}/documents

Uploads a document file to a transaction under the specified user's path. Equivalent to POST /transact-workflow/v1/Documents with the user supplied in the path instead of the form body. The request is sent as multipart/form-data.

Path parameters

  • userId string(uuid) Required

    Unique identifier (GUID) of the acting user.

multipart/form-data

Body Required

  • name string Required

    Display name of the document.

  • file string(binary) Required

    The document file to upload.

  • transactionId string(uuid) Required

    GUID of the transaction the document belongs to.

  • parentId string(uuid)

    Optional GUID of the folder to place the document in.

  • formId string(uuid)

    Optional GUID of a form to associate the document with.

Responses

  • 201

    Document uploaded.

  • 400 application/json

    The request is malformed or contains invalid parameters.

    Hide response attributes Show response attributes object
    • error string

      Error code or short error name.

    • message string

      Human-readable error description.

  • 401 application/json

    The access token is missing, invalid, or expired.

    Hide response attributes Show response attributes object
    • error string

      Error code or short error name.

    • message string

      Human-readable error description.

  • 403 application/json

    The caller is not permitted to perform this operation.

    Hide response attributes Show response attributes object
    • error string

      Error code or short error name.

    • message string

      Human-readable error description.

  • 404 application/json

    The requested resource does not exist.

    Hide response attributes Show response attributes object
    • error string

      Error code or short error name.

    • message string

      Human-readable error description.

POST /transact-workflow/v1/users/{userId}/documents
curl \
 --request POST 'https://api.pre.lwolf.com/transact-workflow/v1/users/{userId}/documents' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "lw-subscription-key: $API_KEY" \
 --header "Content-Type: multipart/form-data" \
 --form "name=string" \
 --form "file=@file" \
 --form "transactionId=string" \
 --form "parentId=string" \
 --form "formId=string"
Response examples (400)
{
  "error": "string",
  "message": "string"
}
Response examples (401)
{
  "error": "string",
  "message": "string"
}
Response examples (403)
{
  "error": "string",
  "message": "string"
}
Response examples (404)
{
  "error": "string",
  "message": "string"
}