View .md

Mail Components endpoints (Admin API)

8 FeatherPanel Admin API endpoints from admin/mail-components.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Last synced from FeatherPanel 8318da2 on .

On this page

Defined in backend/app/routes/admin/mail-components.php. Authentication used here: Admin. Read Authentication for how to send credentials and Rate limits and errors for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

Endpoints

GET/api/admin/mail-components

Auth: AdminPermission: admin.email.templates.viewRoute name: admin-mail-componentsController: MailComponentsController::indexroute source
curl -X GET "$PANEL_URL/api/admin/mail-components" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

POST/api/admin/mail-components/preview

Auth: AdminPermission: admin.email.templates.viewRoute name: admin-mail-components-previewController: MailComponentsController::previewroute source
curl -X POST "$PANEL_URL/api/admin/mail-components/preview" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

POST/api/admin/mail-components

Auth: AdminPermission: admin.email.templates.createRoute name: admin-mail-components-createController: MailComponentsController::createroute source
curl -X POST "$PANEL_URL/api/admin/mail-components" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

GET/api/admin/mail-components/{id}

Auth: AdminPermission: admin.email.templates.viewRoute name: admin-mail-components-showController: MailComponentsController::showroute source
ParameterInTypeRequiredDescription
idpath-yes
curl -X GET "$PANEL_URL/api/admin/mail-components/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

PATCH/api/admin/mail-components/{id}

Auth: AdminPermission: admin.email.templates.editRoute name: admin-mail-components-updateController: MailComponentsController::updateroute source
ParameterInTypeRequiredDescription
idpath-yes
curl -X PATCH "$PANEL_URL/api/admin/mail-components/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

DELETE/api/admin/mail-components/{id}

Auth: AdminPermission: admin.email.templates.deleteRoute name: admin-mail-components-deleteController: MailComponentsController::deleteroute source
ParameterInTypeRequiredDescription
idpath-yes
curl -X DELETE "$PANEL_URL/api/admin/mail-components/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

POST/api/admin/mail-components/{id}/duplicate

Auth: AdminPermission: admin.email.templates.createRoute name: admin-mail-components-duplicateController: MailComponentsController::duplicateroute source
ParameterInTypeRequiredDescription
idpath-yes
curl -X POST "$PANEL_URL/api/admin/mail-components/$ID/duplicate" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

POST/api/admin/mail-components/{id}/reset

Auth: AdminPermission: admin.email.templates.editRoute name: admin-mail-components-resetController: MailComponentsController::resetroute source
ParameterInTypeRequiredDescription
idpath-yes
curl -X POST "$PANEL_URL/api/admin/mail-components/$ID/reset" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"