OrgEmail templates

List the organization's email templates

Every example email in the org's template library, active ones first. Each entry pairs when-to-use guidance with an example subject/body that draftEmail() and Eve mimic when writing outreach. Gated by the `email_templates` module; otherwise responds 403 module_required.

GET
/org/email-templates

Every example email in the org's template library, active ones first. Each entry pairs when-to-use guidance with an example subject/body that draftEmail() and Eve mimic when writing outreach. Gated by the email_templates module; otherwise responds 403 module_required.

AuthorizationBearer <token>

API key (sk_live_... prefix). Generate keys in the UI under Settings > API Keys, then send it as Authorization: Bearer sk_live_...

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://loading/api/v1/org/email-templates"
{
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "org_id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "string",
      "when_to_use": "string",
      "example_subject": "string",
      "example_body": "string",
      "instructions": "string",
      "is_active": true,
      "created_by": "550e8400-e29b-41d4-a716-446655440000",
      "created_at": "string",
      "updated_at": "string",
      "usage_count": 0
    }
  ]
}
{
  "error": "string",
  "message": "string",
  "statusCode": -9007199254740991
}
{
  "error": "module_required",
  "module": "string",
  "message": "string",
  "contact": "string"
}