SendGrid · Arazzo Workflow

SendGrid Duplicate Template

Version 1.0.0

Duplicate an existing transactional template and read the new copy back.

1 workflow 1 source API 1 provider
View Spec View on GitHub EmailEmail APIMarketing EmailSMTPT1Transactional EmailEmail MarketingDeliverabilityMarketingArazzoWorkflows

Provider

sendgrid

Workflows

duplicate-template
Duplicate a template and confirm the new copy.
Duplicates an existing template under a new name and reads the resulting template back to confirm.
2 steps inputs: apiKey, newName, templateId outputs: name, newTemplateId
1
duplicateTemplate
Duplicate the source template under a new name.
2
getTemplate
Read the duplicated template back to confirm it exists.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: SendGrid Duplicate Template
  summary: Duplicate an existing transactional template and read the new copy back.
  description: >-
    A reuse flow for transactional templates. The workflow duplicates an
    existing template under a new name, producing an independent copy with its
    own ID and versions, and then reads the new template back to confirm it
    exists. The duplicate returns 201 and the read returns 200. Each step inlines
    its request and bearer token so the flow can be read and run without the
    OpenAPI files.
  version: 1.0.0
sourceDescriptions:
- name: templatesApi
  url: ../openapi/sendgrid-templates-api-openapi.yml
  type: openapi
workflows:
- workflowId: duplicate-template
  summary: Duplicate a template and confirm the new copy.
  description: >-
    Duplicates an existing template under a new name and reads the resulting
    template back to confirm.
  inputs:
    type: object
    required:
    - apiKey
    - templateId
    - newName
    properties:
      apiKey:
        type: string
        description: SendGrid API key sent as a bearer token.
      templateId:
        type: string
        description: The ID of the template to duplicate.
      newName:
        type: string
        description: The name for the duplicated template.
  steps:
  - stepId: duplicateTemplate
    description: Duplicate the source template under a new name.
    operationId: DuplicateTemplate
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    - name: template_id
      in: path
      value: $inputs.templateId
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.newName
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      newTemplateId: $response.body#/id
  - stepId: getTemplate
    description: Read the duplicated template back to confirm it exists.
    operationId: GetTemplate
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    - name: template_id
      in: path
      value: $steps.duplicateTemplate.outputs.newTemplateId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      templateId: $response.body#/id
      name: $response.body#/name
  outputs:
    newTemplateId: $steps.duplicateTemplate.outputs.newTemplateId
    name: $steps.getTemplate.outputs.name

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/sendgrid-duplicate-template-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.