Skip to main content
POST
/
v1
/
email-templates
Create An Email Templates
curl --request POST \
  --url http://api.stuut.ai/v1/email-templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "<string>",
  "cc": [
    "[email protected]"
  ],
  "is_default": false,
  "name": "<string>",
  "subject": "<string>",
  "auto_correct": false,
  "folder": "<string>"
}
'
{
  "object": "<string>",
  "id": "<string>",
  "attachments": [
    {
      "file_type": "audio",
      "mime_type": "<string>",
      "name": "<string>",
      "object": "<string>",
      "organization_id": "<string>",
      "id": "<string>",
      "content_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "disposition": "<string>",
      "is_verified": true,
      "modified_at": "2023-11-07T05:31:56Z",
      "presigned_url": "<string>",
      "presigned_url_expires_at": "2023-11-07T05:31:56Z",
      "purpose": "<string>",
      "remote_id": "<string>",
      "size": 123,
      "src": "<unknown>",
      "user_id": "<string>"
    }
  ],
  "auto_correct": true,
  "body": "<string>",
  "cc": [
    "<string>"
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "folder": {
    "name": "<string>",
    "object": "<string>",
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "modified_at": "2023-11-07T05:31:56Z"
  },
  "folder_id": "<string>",
  "is_default": true,
  "modified_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "preview_body": "<unknown>",
  "preview_subject": "<unknown>",
  "subject": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
body
string
cc
string<email>[]
is_default
boolean
default:false
name
string
subject
string
auto_correct
boolean
default:false
folder
string

The EmailTemplateFolder identifier, (e.g. etf_abc123).

Response

Successful response

object
string
required
id
string
Maximum string length: 32
attachments
object[]
auto_correct
boolean
body
string | null
cc
string[]
created_at
string<date-time>
folder
object
folder_id
string | null
Maximum string length: 32
is_default
boolean

Whether this is the default email template.

modified_at
string<date-time> | null
name
string | null

The name of the email template.

Maximum string length: 128
preview_body
any
preview_subject
any
subject
string | null

The subject of the email template.