Create tracking source
documentedCreate a new tracking source (e.g., Google Adwords).
POST /api/v1/accounts/{account_id}/sourcesSourcesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.calltrackingmetrics.com/api/v1/accounts/{{$account_id}}/sources.json" \
-X POST \
-u "{{CALLTRACKINGMETRICS_API_KEY}}:{{CALLTRACKING_METRICS_SECRET}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$name}}", "description": "{{$description}}", "source_type": "{{$source_type}}", "matching_conditions": {"referring_url": "{{$referring_url}}", "landing_url": "{{$landing_url}}"}, "position": {{$position}}, "last_touch": {{$last_touch}}, "tag_list": "{{$tag_list}}"}'