Public Documentation

Lawie Docs

guideDifficulty: intermediateTime: 25mVersion: v1Services: contracts-apiSDK: @lawie/sdkReviewed: 2025-01-20Reviewer: Docs PlatformTags: contracts, tagging

Tag Contracts with Clause Tags

Apply clause tags to contracts and filter lists by tag.

Overview

Use the Contracts API to apply clause tags and filter results.

Prerequisites

  • API key with contracts.write scope
  • Contract IDs available in sandbox

Architecture Diagram

Contracts updates flow from ingestion to tagging and downstream filters.

Steps

  1. Fetch a contract with GET /contracts/v1/{id}.
  2. Apply tags via PATCH /contracts/v1/{id}.
  3. Filter using GET /contracts/v1?tag=nda.

API Calls Referenced

  • GET /contracts/v1/{id}
  • PATCH /contracts/v1/{id}
  • GET /contracts/v1

Troubleshooting

  • 404 → Contract ID not found.
  • 422 → Invalid tag format.