{
  "opencollection": "1.0.0",
  "info": {
    "name": "Email Templates API",
    "version": "5.0"
  },
  "items": [
    {
      "info": {
        "name": "Email Templates",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get email templates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.omnisend.com/api/email-templates",
            "headers": [
              {
                "name": "Omnisend-Version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of items per page (1-100, default 50)"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "Cursor for next page (base64-encoded, from previous response)"
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "Cursor for previous page (base64-encoded, from previous response)"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Sort field (createdAt, name; default createdAt)"
              },
              {
                "name": "direction",
                "value": "",
                "type": "query",
                "description": "Sort direction (asc, desc; default desc)"
              },
              {
                "name": "nameContains",
                "value": "",
                "type": "query",
                "description": "Filter templates by name (case-insensitive partial match, max 200 characters)"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://app.omnisend.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "With this endpoint you can get a paginated list of email templates.\n\n**Sorting:**\nUse `sort` and `direction` to control the order of results.\nSupported sort fields: `createdAt` (default), `name`.\nSupported directions: `asc`, `desc` (default).\n\n**Filtering:**\nUse `nameContains` to filter templates by name (case-insensitive partial match, max 200 characters)\n\n**Pagination:**\nThis endpoint uses cursor-based pagination for efficient traversal of large datasets.\n- Use the `paging.cursors.after` value"
        },
        {
          "info": {
            "name": "Create email template",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.omnisend.com/api/email-templates",
            "headers": [
              {
                "name": "Omnisend-Version",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://app.omnisend.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "With this endpoint you can create a new email template.\n\n**Scopes:**\n`email-templates.write`\n\n**Rate Limiting:**\nThis endpoint is rate limited to 400 requests per minute."
        },
        {
          "info": {
            "name": "Get email template",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.omnisend.com/api/email-templates/:id",
            "headers": [
              {
                "name": "Omnisend-Version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Email Template ID (24 character hexadecimal)"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://app.omnisend.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "With this endpoint you can get email template by ID.\n\n**Scopes:**\n`email-templates.read`\n\n**Rate Limiting:**\nThis endpoint is rate limited to 400 requests per minute."
        },
        {
          "info": {
            "name": "Update email template",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.omnisend.com/api/email-templates/:id",
            "headers": [
              {
                "name": "Omnisend-Version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Email Template ID (24 character hexadecimal)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://app.omnisend.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "With this endpoint you can update (fully replace) an email template by ID.\n\n**Scopes:**\n`email-templates.write`\n\n**Rate Limiting:**\nThis endpoint is rate limited to 400 requests per minute."
        },
        {
          "info": {
            "name": "Delete email template",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.omnisend.com/api/email-templates/:id",
            "headers": [
              {
                "name": "Omnisend-Version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Email Template ID (24 character hexadecimal)"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://app.omnisend.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "With this endpoint you can delete email template by ID.\n\n**Scopes:**\n`email-templates.write`\n\n**Rate Limiting:**\nThis endpoint is rate limited to 400 requests per minute."
        },
        {
          "info": {
            "name": "Render email template",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.omnisend.com/api/email-templates/:id/render",
            "headers": [
              {
                "name": "Omnisend-Version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Email Template ID (24 character hexadecimal)"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://app.omnisend.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "With this endpoint you can render an email template by ID and get the full HTML body for preview purposes.\n\n**Scopes:**\n`email-templates.write`\n\n**Rate Limiting:**\nThis endpoint is rate limited to 40 requests per minute."
        },
        {
          "info": {
            "name": "Import email template from HTML",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.omnisend.com/api/email-templates/import",
            "headers": [
              {
                "name": "Omnisend-Version",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://app.omnisend.com/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "With this endpoint you can import email template from raw HTML content.\nThe HTML will be parsed, styles extracted, and structured into a template.\n\n**Request body size limit:** 1 MB\n\n**Scopes:**\n`email-templates.write`\n\n**Rate Limiting:**\nThis endpoint is rate limited to 400 requests per minute."
        }
      ]
    }
  ],
  "bundled": true
}