Create a Recipient List (with error limit)
documentedCreate a recipient list with optional max error reporting.
POST /api/v1/recipient-lists{?num_rcpt_errors}Sendingno 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.sparkpost.com/api/v1/recipient-lists?num_rcpt_errors={{$num_rcpt_errors}}" \
-X POST \
-H "Authorization: {{SPARKPOST_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id": "{{$list_id}}", "name": "{{$list_name}}", "description": "{{$description}}", "attributes": {"internal_id": {{$internal_id}}, "list_group_id": {{$list_group_id}}}, "recipients": [ {"address": {"email": "{{$recipient_email}}", "name": "{{$recipient_name}}"}, "tags": ["{{$tag}}"], "metadata": {"age": "{{$age}}", "place": "{{$place}}"}, "substitution_data": {"favorite_color": "{{$fav_color}}", "job": "{{$job}}"} } ] }'"}