-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemailjs-rest-api.yml
56 lines (56 loc) · 1.5 KB
/
emailjs-rest-api.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
swagger: "2.0"
info:
description: "Non-official EmailJS OAS that defines EMailJS.com REST API"
version: "1.0"
title: "EMailJS REST API"
termsOfService: "http://swagger.io/terms/"
contact:
email: "[email protected]"
license:
name: "MIT"
url: "https://github.com/rsaestrela/emailjs-java-sdk/blob/main/LICENSE"
host: "api.emailjs.com"
basePath: "/api/v1.0/email"
schemes:
- "https"
paths:
/send:
post:
summary: "Send email"
description: "Sends an email based on the specified email template and the passed dynamic parameters. The email is sent via the specified email service or via the default service if default_service keyword is passed."
operationId: "send"
produces:
- "application/json"
parameters:
- in: "body"
name: "body"
description: "Send e-mail definition"
required: true
schema:
$ref: "#/definitions/SendRequest"
responses:
'200':
description: "OK"
'400':
description: "Invalid request"
'5XX':
description: "Internal error"
definitions:
SendRequest:
type: "object"
properties:
service_id:
type: "string"
template_id:
type: "string"
user_id:
type: "string"
template_params:
type: "object"
accessToken:
type: "string"
xml:
name: "SendRequest"
externalDocs:
description: "Find out more about EMailJS"
url: "https://www.emailjs.com/docs/"