> For the complete documentation index, see [llms.txt](https://docs.podplay.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podplay.app/api/custom-emails.md).

# Custom Emails

## GET /custom-emails/config

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Custom Emails"}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"CustomEmailConfigDto":{"type":"object","properties":{"appBaseUrl":{"type":"string","nullable":true,"description":"Base URL for building CTA links in custom email templates"},"_links":{"description":"A `LinksDto` structure containing URL references to properties that can be expanded","allOf":[{"$ref":"#/components/schemas/LinksDto"}]}},"required":["appBaseUrl"]},"LinksDto":{"type":"object","properties":{"self":{"description":"A `LinkDto` to the resource itself","allOf":[{"$ref":"#/components/schemas/LinkDto"}]}},"required":["self"]},"LinkDto":{"type":"object","properties":{"href":{"type":"string","description":"A URL"}},"required":["href"]}}},"paths":{"/custom-emails/config":{"get":{"operationId":"CustomEmailsController_getConfig","parameters":[],"responses":{"200":{"description":"Returns app-level configuration for the email composer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomEmailConfigDto"}}}}},"tags":["Custom Emails"]}}}}
```

## POST /custom-emails

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Custom Emails"}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"CustomEmailDto":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the resource","readOnly":true},"_links":{"description":"A `LinksDto` structure containing URL references to propertes that can be expanded","allOf":[{"$ref":"#/components/schemas/LinksDto"}]},"subject":{"type":"string","maxLength":100},"bodyHtml":{"type":"string","description":"Complete WYSIWYG HTML body"},"recipients":{"$ref":"#/components/schemas/ItemRefCollectionDto"},"context":{"$ref":"#/components/schemas/CustomEmailContextDto"},"bccClubEmail":{"type":"boolean","description":"Whether to BCC the company email address","default":true},"recipientSource":{"type":"string","enum":["INVITATION","WAITLIST"],"description":"Recipient source for EVENT emails (invitations or waitlist entries)","default":"INVITATION"},"sentCount":{"type":"number","readOnly":true},"skippedCount":{"type":"number","readOnly":true},"clubEmailSent":{"type":"boolean","readOnly":true},"createdDate":{"format":"date-time","type":"string","readOnly":true},"status":{"type":"string","enum":["PENDING","SENDING","SENT","FAILED"],"readOnly":true}},"required":["id","subject","bodyHtml","recipients","sentCount","skippedCount","clubEmailSent","createdDate","status"]},"LinksDto":{"type":"object","properties":{"self":{"description":"A `LinkDto` to the resource itself","allOf":[{"$ref":"#/components/schemas/LinkDto"}]}},"required":["self"]},"LinkDto":{"type":"object","properties":{"href":{"type":"string","description":"A URL"}},"required":["href"]},"ItemRefCollectionDto":{"type":"object","properties":{"items":{"description":"The array containing the elements of the collection","type":"array","items":{"type":"string"}},"_total":{"type":"number","description":"The total amount of elements in this collection, counting also the elements from the succesive pages"},"_links":{"description":"A `LinksDto` structure containing URL references to propertes that can be expanded","allOf":[{"$ref":"#/components/schemas/LinksDto"}]}},"required":["items"]},"CustomEmailContextDto":{"type":"object","properties":{"type":{"type":"string","enum":["EVENT","MEMBERSHIP","GENERAL"],"description":"Type of custom email context for validation"},"resourceId":{"type":"string","description":"Resource ID (event ID, membership ID) - required for EVENT and MEMBERSHIP types"}},"required":["type"]}}},"paths":{"/custom-emails":{"post":{"operationId":"CustomEmailsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomEmailDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomEmailDto"}}}}},"tags":["Custom Emails"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.podplay.app/api/custom-emails.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
