provider Transactional Templates GET /templates
@utdk/sendgrid /templates
Retrieve paged transactional templates.
**This endpoint allows you to retrieve all transactional templates.**
generations query
Comma-delimited list specifying which generations of templates to return. Options are `legacy`, `dynamic` or `legacy,dynamic`.
enum: legacy, dynamic, legacy,dynamic
page_size query required
The number of templates to be returned in each page of results
number
page_token query
A token corresponding to a specific page of results, as provided by metadata
string
on-behalf-of header
string

Try it

Authentication
Configure credentials for Email Activity (beta)
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getTemplates
GET/templates
**This endpoint allows you to retrieve all transactional templates.**

Comma-delimited list specifying which generations of templates to return. Options are `legacy`, `dynamic` or `legacy,dynamic`.

required

The number of templates to be returned in each page of results

A token corresponding to a specific page of results, as provided by metadata

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sendgrid from '@utdk/sendgrid';

await sendgrid.getTemplates({
  "generations": "legacy",
  "on-behalf-of": "The subuser's username. This header generates the API call as if the subuser account was making the call."
})