{"openapi":"3.0.0","info":{"description":"Send emails directly from client-side JavaScript without a backend server (source: public-apis/Email)","version":["v1.0","v1.1"]},"servers":[{"description":"Send emails directly from client-side JavaScript without a backend server (source: public-apis/Email)","url":"https://api.apirails.com/emailjs"}],"paths":{"/api/v1.0/email/send":{"post":{"tags":["Email Send"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://www.emailjs.com/docs/rest-api/send/","api_endpoint":"https://api.emailjs.com/api/v1.0/email/send"},"summary":"Send Email","description":"Sends an email based on the specified email template and the passed dynamic parameters (JSON body).","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"service_id":{"type":"text","description":"Service ID of the service through which the email should be sent. Reserved keyword default_service uses the default service set in the EmailJS dashboard.","required":true},"template_id":{"type":"text","description":"Template ID of the email template to render and send.","required":true},"template_params":{"type":"object","description":"Template parameters of the template — object of dynamic variables consumed by the template."}}},"example":{"service_id":"default_service","template_id":"template_xxxxxxx","template_params":{"reply_to":"james@example.com","username":"James"}}}}}}},"/api/v1.0/email/send-form":{"post":{"tags":["Email Send"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://www.emailjs.com/docs/rest-api/send-form/","api_endpoint":"https://api.emailjs.com/api/v1.0/email/send-form"},"summary":"Send Email Form","description":"Sends an email based on the specified email template and the passed form data (multipart/form-data, supports file attachments).","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"attachment":{"type":"string","format":"binary","description":"Form file attachment(s) — each uploaded file is forwarded under its field name as a multipart part."},"service_id":{"type":"text","description":"Service ID of the service through which the email should be sent. Reserved keyword default_service uses the default service set in the EmailJS dashboard.","required":true},"template_id":{"type":"text","description":"Template ID of the email template to render and send.","required":true}}},"example":{"attachment":{},"service_id":"default_service","template_id":"template_xxxxxxx"}}}}}},"/api/v1.1/history":{"get":{"tags":["Email History"],"parameters":[{"name":"count","in":"query","description":"Records in one page.","required":false,"schema":{"type":"number","example":""}},{"name":"errors_only","in":"query","description":"Get only failed records.","required":false,"schema":{"type":"text","example":""}},{"name":"page","in":"query","description":"A current page of the history listing.","required":false,"schema":{"type":"number","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://www.emailjs.com/docs/rest-api/history/","api_endpoint":"https://api.emailjs.com/api/v1.1/history"},"summary":"Get Email History","description":"Get a paginated list of email history records (success and error) for the account.","security":[{"bearerAuth":[]}]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"bearerAuth":[]}]}