Resources
Pre-built Postman collection for testing the SmartMCA API
A ready-to-use Postman collection with all 77 API endpoints organized by resource, with example request bodies and environment variables.
| File | Description |
|---|---|
| Collection | Postman Collection v2.1 |
| Environment | Environment variables |
api_key value to your API key (smca_live_... or smca_test_...)The collection is organized into folders matching the API reference:
| Folder | Endpoints |
|---|---|
| Deals | List, create, get, update, update status, archive |
| Applications | List, create, get, update |
| Merchants | List, create, get, update |
| Contacts | List, create, get, update, delete (under merchants) |
| Payments | List, create, get (under deals) |
| Documents | List, upload, get |
| Collections | Get collection schedule |
| Analysis | Upload PDFs, submit JSON, list, get status, delete |
| Underwriting | List tools, select docs, trigger, get status, get results |
| Accounting | Chart of accounts, entries, 8 report types |
| Deal Accounting | Deal entries, revenue recognition |
| Workflows | List types, trigger, get executions, app actions |
| Webhooks | CRUD, deliveries, rotate secret, test, retry |
The collection uses these variables β set them in the environment or theyβll be prompted:
| Variable | Default | Description |
|---|---|---|
base_url | https://api.smartmca.com/api/public/v1 | API base URL |
api_key | β | Your API key |
id | β | Generic entity ID |
dealId | β | Deal ID for scoped endpoints |
merchantId | β | Merchant ID |
applicationId | β | Application ID |
analysisId | β | Analysis ID |
accountId | β | Accounting account ID |
executionId | β | Workflow execution ID |
Tip: Use Postmanβs Tests tab to auto-set variables from responses:
// In the "Create deal" request Tests tab:
const data = pm.response.json().data;
pm.environment.set("dealId", data.id);
Switch to sandbox mode by changing two variables:
| Variable | Sandbox Value |
|---|---|
base_url | https://api.smartmca.com/api/public/v1 (same URL) |
api_key | smca_test_... (test key) |
The sandbox uses the same API URL β the key prefix routes to the sandbox automatically.
The collection is generated from the OpenAPI spec:
cd docs-site
npx tsx scripts/generate-postman.ts
This reads public/openapi/smartmca-v1.json and outputs both files to public/postman/.