You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/content/apis/campaigns.md
+19-15Lines changed: 19 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,7 @@ Retrieve all campaigns.
66
66
"subject": "Welcome to listmonk",
67
67
"from_email": "No Reply <noreply@yoursite.com>",
68
68
"body": "<h3>Hi {{ .Subscriber.FirstName }}!</h3>\n\t\t\tThis is a test e-mail campaign. Your second name is {{ .Subscriber.LastName }} and you are from {{ .Subscriber.Attribs.city }}.",
69
+
"body_source": null,
69
70
"send_at": "2020-03-15T17:36:41.293233+01:00",
70
71
"status": "draft",
71
72
"content_type": "richtext",
@@ -128,6 +129,7 @@ curl -u "api_user:token" -X GET 'http://localhost:9000/api/campaigns/1'
128
129
"subject": "Welcome to listmonk",
129
130
"from_email": "No Reply <noreply@yoursite.com>",
130
131
"body": "<h3>Hi {{ .Subscriber.FirstName }}!</h3>\n\t\t\tThis is a test e-mail campaign. Your second name is {{ .Subscriber.LastName }} and you are from {{ .Subscriber.Attribs.city }}.",
| lists | lists:get_all| Get details of all lists |
9
+
| lists | lists:get_all| Get details of all lists |
10
10
|| lists:manage_all| Create, update, and delete all lists |
11
11
| subscribers | subscribers:get| Get individual subscriber details |
12
12
|| subscribers:get_all| Get all subscribers and their details |
13
13
|| subscribers:manage| Add, update, and delete subscribers |
14
14
|| subscribers:import| Import subscribers from external files |
15
15
|| subscribers:sql_query| Run SQL queries on subscriber data. **WARNING:** This permission will allow the querying of all lists and subscribers directly from the database with SQL expressions, superceding individual list and subscriber permissions above. |
16
16
|| tx:send| Send transactional messages to subscribers |
17
-
| campaigns | campaigns:get| Get campaign details |
17
+
| campaigns | campaigns:get| Get and view campaigns belonging to permitted lists |
18
+
|| campaigns:get_all| Get and view campaigns across all lists |
0 commit comments