POST
/
v2
/
transactional
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"
}
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();

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json
OK

The response is of type object.