Parameters
members
array
RequiredDescription
Array of member objects to add.
items
dictionary
members[]
dictionary
email
string
Description
Email address. Required if user_id is not provided.
user_id
number
Description
Existing platform user ID. Email is resolved automatically.
first_name
string
Description
First name. Used when creating a new user for this email.
last_name
string
Description
Last name. Used when creating a new user for this email.
type
string
Description
Member type: `newsletter`, `contact`, `customer`, or custom. Defaults to `newsletter`.
POST/v1/lists/{{list_id}}/members
bash
curl https://api.tradly.app/v1/lists/{{list_id}}/members \
-H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"members": [
{
"email": "jane@example.com",
"first_name": "Jane",
"last_name": "Doe",
"type": "newsletter"
},
{
"user_id": 42,
"type": "customer"
}
]
}'RESPONSE
json
{
"status": true,
"data": {
"added": 2,
"member_count": 344
}
}