import Prelude from "@prelude.so/sdk"; const client = new Prelude(); async function main() { const response = await client.transactional.send({ template_id: "template_01jd1xq0cffycayqtdkdbv4d61", to: "+30123456789", variables: { foo: "bar" }, }); console.log(response.id); } main();
{ "id": "<string>", "from": "<string>", "to": "<string>", "template_id": "<string>", "variables": {}, "callback_url": "<string>", "correlation_id": "<string>", "expires_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z" }
Learn how to send a transactional message to your user with one simple endpoint, using Prelude Transactional API.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK
The response is of type object.
object