Run in Enrichment Spreadsheet
Use this function as a column step in deepline enrich.
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=smartlead_api_request:{"method":"GET","endpoint":"{{endpoint}}"}' --json
Map payload values to spreadsheet columns with {{column_name}} placeholders.
Required Fields
| Name | Type | Required | Default | Description |
|---|
payload.method | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | Yes | | HTTP method to call for Smartlead API requests. |
payload.endpoint | string | Yes | | Smartlead API endpoint (for example “/v1/campaigns”). |
Allowed values
| Field | Allowed values |
|---|
payload.method | GET, POST, PUT, PATCH, DELETE |
Advanced: Direct CLI
Use direct execution for single payload debugging.
deepline tools execute smartlead_api_request --payload '{
"method": "GET",
"endpoint": "string"
}' --json
CLI flags
| Flag | Description |
|---|
--json | Print machine-readable output. |
--wait | Wait for terminal provider status when supported. |
--debug | Enable wait mode with additional status/log output. |
--wait-timeout SECONDS | Max seconds to wait in wait mode. |
--poll-interval SECONDS | Polling interval in seconds during wait mode. |
--timeout SECONDS | Request timeout in seconds. |
--connect-timeout SECONDS | Connection timeout in seconds. |
Cost
- Pricing model:
fixed (per call).
- Estimated Deepline credits:
0 per pricing unit.
- Provider-native pricing may still exist outside Deepline credit billing.
- Billing mode:
no_bill.