diff --git a/USAGE.md b/USAGE.md index cf25b2c6..ea23e4c4 100644 --- a/USAGE.md +++ b/USAGE.md @@ -4434,7 +4434,7 @@ Transactional templates are templates created specifically for transactional ema SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("templates"); + request.setEndpoint("https://api.sendgrid.com/v3/templates?generations=legacy,dynamic"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); diff --git a/examples/templates/templates.java b/examples/templates/templates.java index a16c4bed..7ca06ba5 100644 --- a/examples/templates/templates.java +++ b/examples/templates/templates.java @@ -41,7 +41,7 @@ public static void main(String[] args) throws IOException { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("templates"); + request.setEndpoint("https://api.sendgrid.com/v3/templates?generations=legacy,dynamic"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody());