Create sound
documentedCreate a new sound resource for campaigns.
POST /v2/campaigns/soundsCampaignsno 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)
# Note: CallFire API v2 requires HTTP Basic authentication. There is no top-level POST /v2/campaigns/sounds endpoint in the official docs; use one of the create endpoints instead: /v2/campaigns/sounds/calls, /v2/campaigns/sounds/tts, or /v2/campaigns/sounds/files.
# Add sound via phone call
npx -y keychains@latest curl "https://api.callfire.com/v2/campaigns/sounds/calls" \
-X POST \
-u "{{CALLFIRE_USERNAME}}:{{CALLFIRE_PASSWORD}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name":"{{$name}}","toNumber":"{{$toNumber}}"}'
# Add sound via text-to-speech
npx -y keychains@latest curl "https://api.callfire.com/v2/campaigns/sounds/tts" \
-X POST \
-u "{{CALLFIRE_USERNAME}}:{{CALLFIRE_PASSWORD}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"voice":"{{$voice}}","message":"{{$message}}"}'
# Add sound via file upload
npx -y keychains@latest curl "https://api.callfire.com/v2/campaigns/sounds/files" \
-X POST \
-u "{{CALLFIRE_USERNAME}}:{{CALLFIRE_PASSWORD}}" \
-F "name={{$name}}" \
-F "file=@{{$soundFilePath}}"