1
- // Mailchimp api spec goes here
1
+ {
2
+ "openapi" : " 3.0.0" ,
3
+ "info" : {
4
+ "title" : " Mailchimp API" ,
5
+ "version" : " 1.0.0"
6
+ },
7
+ "paths" : {
8
+ "/lists/{list_id}/members/{subscriber_hash}/goals" : {
9
+ "get" : {
10
+ "summary" : " Get Member Goals" ,
11
+ "description" : " Get information about recent goal events for a specific list member." ,
12
+ "operationId" : " getListMemberGoals" ,
13
+ "parameters" : [
14
+ {
15
+ "name" : " list_id" ,
16
+ "in" : " path" ,
17
+ "required" : true ,
18
+ "description" : " The ID of the list." ,
19
+ "schema" : {
20
+ "type" : " string"
21
+ }
22
+ },
23
+ {
24
+ "name" : " subscriber_hash" ,
25
+ "in" : " path" ,
26
+ "required" : true ,
27
+ "description" : " The hash of the subscriber." ,
28
+ "schema" : {
29
+ "type" : " string"
30
+ }
31
+ }
32
+ ],
33
+ "responses" : {
34
+ "200" : {
35
+ "description" : " Successful response" ,
36
+ "content" : {
37
+ "application/json" : {
38
+ "example" : {}
39
+ }
40
+ }
41
+ }
42
+ }
43
+ },
44
+ "post" : {
45
+ "summary" : " Create Member Goal" ,
46
+ "description" : " Create a new goal event for a specific list member." ,
47
+ "operationId" : " createListMemberGoal" ,
48
+ "parameters" : [
49
+ {
50
+ "name" : " list_id" ,
51
+ "in" : " path" ,
52
+ "required" : true ,
53
+ "description" : " The ID of the list." ,
54
+ "schema" : {
55
+ "type" : " string"
56
+ }
57
+ },
58
+ {
59
+ "name" : " subscriber_hash" ,
60
+ "in" : " path" ,
61
+ "required" : true ,
62
+ "description" : " The hash of the subscriber." ,
63
+ "schema" : {
64
+ "type" : " string"
65
+ }
66
+ }
67
+ ],
68
+ "requestBody" : {
69
+ "required" : true ,
70
+ "content" : {
71
+ "application/json" : {
72
+ "example" : {}
73
+ }
74
+ }
75
+ },
76
+ "responses" : {
77
+ "201" : {
78
+ "description" : " Successful response" ,
79
+ "content" : {
80
+ "application/json" : {
81
+ "example" : {}
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ },
88
+ "/lists/{list_id}/members/{subscriber_hash}/tags" : {
89
+ "get" : {
90
+ "summary" : " Get Member Tags" ,
91
+ "description" : " Get all the tags assigned to a contact." ,
92
+ "operationId" : " getListMemberTags" ,
93
+ "parameters" : [
94
+ {
95
+ "name" : " list_id" ,
96
+ "in" : " path" ,
97
+ "required" : true ,
98
+ "description" : " The ID of the list." ,
99
+ "schema" : {
100
+ "type" : " string"
101
+ }
102
+ },
103
+ {
104
+ "name" : " subscriber_hash" ,
105
+ "in" : " path" ,
106
+ "required" : true ,
107
+ "description" : " The hash of the subscriber." ,
108
+ "schema" : {
109
+ "type" : " string"
110
+ }
111
+ }
112
+ ],
113
+ "responses" : {
114
+ "200" : {
115
+ "description" : " Successful response" ,
116
+ "content" : {
117
+ "application/json" : {
118
+ "example" : {}
119
+ }
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "post" : {
125
+ "summary" : " Manage Member Tags" ,
126
+ "description" : " Manage the tags assigned to a contact." ,
127
+ "operationId" : " manageListMemberTags" ,
128
+ "parameters" : [
129
+ {
130
+ "name" : " list_id" ,
131
+ "in" : " path" ,
132
+ "required" : true ,
133
+ "description" : " The ID of the list." ,
134
+ "schema" : {
135
+ "type" : " string"
136
+ }
137
+ },
138
+ {
139
+ "name" : " subscriber_hash" ,
140
+ "in" : " path" ,
141
+ "required" : true ,
142
+ "description" : " The hash of the subscriber." ,
143
+ "schema" : {
144
+ "type" : " string"
145
+ }
146
+ }
147
+ ],
148
+ "requestBody" : {
149
+ "required" : true ,
150
+ "content" : {
151
+ "application/json" : {
152
+ "example" : {}
153
+ }
154
+ }
155
+ },
156
+ "responses" : {
157
+ "200" : {
158
+ "description" : " Successful response" ,
159
+ "content" : {
160
+ "application/json" : {
161
+ "example" : {}
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ },
168
+ "/lists/{list_id}/members/{subscriber_hash}/events" : {
169
+ "get" : {
170
+ "summary" : " Get Member Events" ,
171
+ "description" : " Get website or in-app actions for a specific list member." ,
172
+ "operationId" : " getListMemberEvents" ,
173
+ "parameters" : [
174
+ {
175
+ "name" : " list_id" ,
176
+ "in" : " path" ,
177
+ "required" : true ,
178
+ "description" : " The ID of the list." ,
179
+ "schema" : {
180
+ "type" : " string"
181
+ }
182
+ },
183
+ {
184
+ "name" : " subscriber_hash" ,
185
+ "in" : " path" ,
186
+ "required" : true ,
187
+ "description" : " The hash of the subscriber." ,
188
+ "schema" : {
189
+ "type" : " string"
190
+ }
191
+ }
192
+ ],
193
+ "responses" : {
194
+ "200" : {
195
+ "description" : " Successful response" ,
196
+ "content" : {
197
+ "application/json" : {
198
+ "example" : {}
199
+ }
200
+ }
201
+ }
202
+ }
203
+ },
204
+ "post" : {
205
+ "summary" : " Trigger Member Events" ,
206
+ "description" : " Trigger targeted automations based on website or in-app actions." ,
207
+ "operationId" : " triggerListMemberEvents" ,
208
+ "parameters" : [
209
+ {
210
+ "name" : " list_id" ,
211
+ "in" : " path" ,
212
+ "required" : true ,
213
+ "description" : " The ID of the list." ,
214
+ "schema" : {
215
+ "type" : " string"
216
+ }
217
+ },
218
+ {
219
+ "name" : " subscriber_hash" ,
220
+ "in" : " path" ,
221
+ "required" : true ,
222
+ "description" : " The hash of the subscriber." ,
223
+ "schema" : {
224
+ "type" : " string"
225
+ }
226
+ }
227
+ ],
228
+ "requestBody" : {
229
+ "required" : true ,
230
+ "content" : {
231
+ "application/json" : {
232
+ "example" : {}
233
+ }
234
+ }
235
+ },
236
+ "responses" : {
237
+ "200" : {
238
+ "description" : " Successful response" ,
239
+ "content" : {
240
+ "application/json" : {
241
+ "example" : {}
242
+ }
243
+ }
244
+ }
245
+ }
246
+ }
247
+ }
248
+ }
249
+ }
0 commit comments