Mailmus

Templates

GET
/apps/{appId}/templates
AuthorizationBearer <token>

In: header

Path Parameters

appId*string

Response Body

curl -X GET "https://example.com/apps/string/templates"
Empty
POST
/apps/{appId}/templates
AuthorizationBearer <token>

In: header

Path Parameters

appId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/apps/string/templates" \  -H "Content-Type: application/json" \  -d '{    "name": "Welcome Email",    "builderJson": {      "blocks": []    },    "html": "<h1>Welcome!</h1>"  }'
Empty
GET
/apps/{appId}/templates/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X GET "https://example.com/apps/string/templates/string"
Empty
PATCH
/apps/{appId}/templates/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "https://example.com/apps/string/templates/string" \  -H "Content-Type: application/json" \  -d '{    "name": "Welcome Email v2",    "builderJson": {      "blocks": []    },    "html": "<h1>Welcome!</h1>"  }'
Empty
DELETE
/apps/{appId}/templates/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X DELETE "https://example.com/apps/string/templates/string"
Empty
POST
/apps/{appId}/templates/{id}/duplicate
AuthorizationBearer <token>

In: header

Path Parameters

id*string
appId*string

Response Body

curl -X POST "https://example.com/apps/string/templates/string/duplicate"
Empty