Add contacts
Adds contacts to an existing batch. Each contact must have contact_name and contact_phone. Additional fields are stored in agent_args. Customer ID is automatically determined from the API key.
Authentication
X-API-Keystring
API key for authentication. Example: raya_ABCD1234567890abcdef
Path parameters
id
The batch ID
Request
This endpoint expects an object.
contacts
Array of contact objects. Each contact must have contact_name and contact_phone. Additional fields are allowed.
Response
Contacts added successfully
status
Status of the batch creation
Allowed values:
message
Human-readable message about the result
totalRows
Total number of contacts in the request
validRows
Number of valid contacts that were processed
invalidRows
Number of invalid contacts that were rejected
batchId
ID of the created or updated batch
contactsInserted
Number of contacts successfully added to the batch
data
Array of valid contact data that was processed
errors
Array of validation errors (only present if status is error)
Errors
400
Bad Request Error
404
Not Found Error

