Querying templates
Retrieve public templates
Get all team public templates
sh
curl - X POST \
-H "Authorization: Bearer ${YOUR_API_KEY}" \
https://api.seamailer.app/v1.0/connect/v1.0/templates?templateIds=[YOUR_TEMPLATE_ID] \
-H "Content-Type: application/json"
js
import { SeaMailerClient } from "seamailer";
const SeaMailer = new SeaMailerClient(`api key`);
SeaMailer.getPublicTemplates([
1,
2,
3, // public templates
]);
Retrieve a public template
Get a team public template by id
sh
curl - X POST \
-H "Authorization: Bearer ${YOUR_API_KEY}" \
https://api.seamailer.app/v1.0/connect/v1.0/templates?templateIds=[YOUR_TEMPLATE_ID] \
-H "Content-Type: application/json"
js
import { SeaMailerClient } from "seamailer";
const SeaMailer = new SeaMailerClient(`api key`);
SeaMailer.getPublicTemplates([
1,
2,
3, // public templates
]);
Retrieve default public template
Get a team public default id
sh
curl - X POST \
-H "Authorization: Bearer ${YOUR_API_KEY}" \
https://api.seamailer.app/v1.0/connect/v1.0/templates/default \
-H "Content-Type: application/json"
js
import { SeaMailerClient } from "seamailer";
const SeaMailer = new SeaMailerClient(`api key`);