How do I send a welcome email through an API?
One call to POST /api/v1/emails from your sign-up handler, with a template or inline HTML and an Idempotency-Key header of welcome-{userId}. The response carries an emailId. For a sequence, create the new user as a contact in a contact book instead; a contact created subscribed enrols into every journey on that book whose trigger is "contact added", and the journey sends the steps with waits between them.
Can I run a welcome sequence, not just one email?
Yes, with a journey. Build the steps in the dashboard: an email, a wait of a few days, another email. Set the trigger to "contact added" on a contact book, then create each new user as a contact in that book from your code. Journeys with an "API" trigger are started by POST /api/v1/journeys/{id}/enroll with a contactId or an email instead.
What does double opt-in change?
With double opt-in on for the book, a new contact is created pending and gets the confirmation email first. It enrols into the journey only after the confirmation click, and an enrol call for a pending contact answers 400. Enable it on the book with doubleOptInEnabled, and set doubleOptInFrom and doubleOptInSubject to brand the confirmation.
What happens if the user unsubscribes?
Journey and campaign emails to that contact are refused at send time. A transactional welcome sent from your own handler is not affected, because unsubscribing is a marketing preference rather than a block. An address that has hard bounced or complained is on the suppression list and receives nothing from either path.
Does a retry of my sign-up handler send two welcomes?
Not with an idempotency key. A second request with the same key and body within 24 hours returns the original response and creates no email. Use the account id in the key, such as welcome-usr_123, so the key is stable across retries.
Can the welcome be an SMS?
The email API sends email. For phones, the verification API sends a one-time code by SMS in Nigeria and Kenya, and the SMS endpoint sends a message from an approved sender ID, prepaid from your wallet. A welcome sequence by SMS is not something journeys do today.