emails
generator

Criar um novo template de e-mail.

Os tipos de e-mails se encontram na rota /api/v2/emails/generator/types

post/v2/emails/generator

Request

  • Base URL: http://localhost:8888/api
  • URL: http://localhost:8888/api/v2/emails/generator
  • Auth: API key in header authorization

Request body

namestring required

Nome do e-mail

titlestring required

Título do e-mail.

typestring required

Tipo do e-mail.

contentstring required

Conteúdo do e-mail.

subjectstring required

Assunto do e-mail.

Example request

{
  "name": "Nome do meu primeiro E-mail",
  "title": "Título do meu primeiro E-mail",
  "type": "generic",
  "content": "Olá {{name}}, olha a nossa nova vaga {{vaga}}",
  "subject": "Assunto do meu primeiro e-mail"
}

Response

Ação realizada com sucesso!

messagestring

Ação realizada com sucesso!

Example response

{
  "message": "Ação realizada com sucesso!",
  "data": {
    "id": 1,
    "company_id": 1,
    "created_by": 1,
    "name": "E-mail de Feedback",
    "title": "Temos uma ótima notícia!",
    "subject": "Temos uma ótima notícia!",
    "type": {
      "label": "generic",
      "name": "Genérico"
    },
    "category": "applications",
    "active": 1,
    "created_at": "2021-01-01 00:00:00",
    "updated_at": "2021-01-01 00:00:00",
    "sends_total": 1,
    "author": {
      "id": 1,
      "user_id": 1,
      "business_role_id": 1,
      "administrator": 1,
      "telephone": "10987654321",
      "photo_filename": "photo.jpg",
      "created_at": "2021-01-01 00:00:00",
      "updated_at": "2021-01-01 00:00:00",
      "business_role": "photo.jpg",
      "owner": 1,
      "photo_url": "https://recrutei.com.br/photo.jpg",
      "user": {
        "id": 1,
        "name": "Jhon Doe",
        "email": "jhon@doe.com",
        "user_type": "Talent"
      }
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.