Download OpenAPI specification:
The Pactly Public API provides programmatic access to contract lifecycle management capabilities, enabling integration with your existing systems. Key features include:
• Contract Management: Create, retrieve, update, and search contracts across your organization • Template Operations: Access and manage contract templates for consistent document generation • Document Generation: Generate contracts from templates with dynamic variable substitution • Text Extraction: Extract and analyze text content from contracts and documents • Workflow Automation: Trigger workflows and track contract lifecycle events
The API follows RESTful principles and returns JSON responses. All endpoints require authentication via API key.
Operations related to contract management including creation, retrieval, updates, and text extraction
Retrieve a paginated list of contracts accessible to the authenticated user. Supports filtering by type, status, and date ranges.
{- "contracts": [
- {
- "id": "507f1f77bcf86cd799439011",
- "type": "template",
- "name": "Software License Agreement - Acme Corp",
- "reference": "SLA-2024-001",
- "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-20T14:45:00Z",
- "status": "executed"
}, - {
- "id": "507f1f77bcf86cd799439014",
- "type": "playbook",
- "name": "Service Agreement - Beta Inc",
- "reference": "SA-2024-002",
- "createdAt": "2024-01-16T09:00:00Z",
- "updatedAt": "2024-01-18T11:30:00Z",
- "status": "draft"
}
]
}
Retrieve detailed information about a specific contract including all properties, metadata, and status information.
id required | string Route pattern variable |
{- "id": "507f1f77bcf86cd799439011",
- "type": "template",
- "name": "Software License Agreement - Acme Corp",
- "reference": "SLA-2024-001",
- "status": "executed",
- "createdAt": "2024-01-15T10:30:00Z",
- "updatedAt": "2024-01-20T14:45:00Z",
- "finalizedAt": "2024-01-20T14:45:00Z",
- "executedAt": "2024-01-20T15:00:00Z",
- "executionMethod": "docusign",
- "archived": false,
- "deleted": false,
- "aborted": false,
- "final": true,
- "hubRequestStatus": "completed",
- "properties": {
- "licenseType": {
- "value": "Enterprise",
- "meta": {
- "name": "License Type",
- "description": "Type of software license",
- "type": "select",
- "group": "License Details"
}
}, - "effectiveDate": {
- "value": "2024-02-01",
- "meta": {
- "name": "Effective Date",
- "description": "When the license becomes active",
- "type": "date",
- "group": "License Details"
}
}
}, - "user": "507f1f77bcf86cd799439012",
- "template": "507f1f77bcf86cd799439013"
}
Extract and return the full text content of a contract. Useful for search, analysis, and AI processing.
id required | string^[0-9a-fA-F]{24}$ Contract ID (MongoDB ObjectId format) |
{- "contractId": "507f1f77bcf86cd799439011",
- "name": "Software License Agreement - Acme Corp",
- "text": [
- "SOFTWARE LICENSE AGREEMENT",
- "This Software License Agreement (\"Agreement\") is entered into as of February 1, 2024",
- "between Acme Corporation (\"Licensor\") and Beta Inc (\"Licensee\").",
- "",
- "1. GRANT OF LICENSE",
- "Subject to the terms and conditions of this Agreement, Licensor hereby grants to Licensee",
- "a non-exclusive, non-transferable Enterprise license to use the Software."
]
}
Retrieve all available contract templates that can be used to create new contracts.
[- {
- "id": "507f1f77bcf86cd799439013",
- "name": "Software License Agreement Template",
- "version": "2.1.0",
- "description": "Standard template for software licensing agreements with customizable terms",
- "createdAt": "2023-06-15T08:00:00Z",
- "variables": [
- {
- "name": "companyName",
- "type": "text",
- "required": true,
- "description": "Name of the licensing company"
}, - {
- "name": "licenseType",
- "type": "select",
- "options": [
- "Basic",
- "Professional",
- "Enterprise"
], - "required": true
}
], - "valuemaps": [
- {
- "name": "pricingTiers",
- "values": {
- "Basic": "$99/month",
- "Professional": "$299/month",
- "Enterprise": "Custom pricing"
}
}
]
}
]