snap-widgets

Create

POST
Create a snap widget object.

Request

This endpoint expects a union.
Email Preview

Response

This endpoint returns an object
snap_widget
union
POST
1curl -X POST https://api.devrev.ai/snap-widgets.create \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "type": "email_preview",
6 "name": "string"
7}'
200Successful
1{
2 "snap_widget": {
3 "type": "email_preview",
4 "bcc": [
5 {
6 "address": "string",
7 "name": "string",
8 "user": {
9 "type": "dev_user",
10 "id": "string",
11 "display_id": "string",
12 "display_name": "string",
13 "display_picture": {
14 "id": "string",
15 "display_id": "string"
16 },
17 "email": "string",
18 "full_name": "string",
19 "state": "active"
20 }
21 }
22 ],
23 "cc": [
24 {
25 "address": "string",
26 "name": "string",
27 "user": {
28 "type": "dev_user",
29 "id": "string",
30 "display_id": "string",
31 "display_name": "string",
32 "display_picture": {
33 "id": "string",
34 "display_id": "string"
35 },
36 "email": "string",
37 "full_name": "string",
38 "state": "active"
39 }
40 }
41 ],
42 "from": [
43 {
44 "address": "string",
45 "name": "string",
46 "user": {
47 "type": "dev_user",
48 "id": "string",
49 "display_id": "string",
50 "display_name": "string",
51 "display_picture": {
52 "id": "string",
53 "display_id": "string"
54 },
55 "email": "string",
56 "full_name": "string",
57 "state": "active"
58 }
59 }
60 ],
61 "id": "string",
62 "inlines": [
63 {
64 "artifact": {
65 "id": "string",
66 "display_id": "string"
67 },
68 "content_id": "string"
69 }
70 ],
71 "name": "string",
72 "references": [
73 "string"
74 ],
75 "reply_to": [
76 {
77 "address": "string",
78 "name": "string",
79 "user": {
80 "type": "dev_user",
81 "id": "string",
82 "display_id": "string",
83 "display_name": "string",
84 "display_picture": {
85 "id": "string",
86 "display_id": "string"
87 },
88 "email": "string",
89 "full_name": "string",
90 "state": "active"
91 }
92 }
93 ],
94 "status": "draft",
95 "to": [
96 {
97 "address": "string",
98 "name": "string",
99 "user": {
100 "type": "dev_user",
101 "id": "string",
102 "display_id": "string",
103 "display_name": "string",
104 "display_picture": {
105 "id": "string",
106 "display_id": "string"
107 },
108 "email": "string",
109 "full_name": "string",
110 "state": "active"
111 }
112 }
113 ],
114 "created_by": {
115 "type": "dev_user",
116 "id": "string",
117 "display_id": "string",
118 "display_name": "string",
119 "display_picture": {
120 "id": "string",
121 "display_id": "string"
122 },
123 "email": "string",
124 "full_name": "string",
125 "state": "active"
126 },
127 "created_date": "2023-01-01T00:00:00Z",
128 "display_id": "string",
129 "html_body": "string",
130 "in_reply_to": "string",
131 "message_id": "string",
132 "modified_by": {
133 "type": "dev_user",
134 "id": "string",
135 "display_id": "string",
136 "display_name": "string",
137 "display_picture": {
138 "id": "string",
139 "display_id": "string"
140 },
141 "email": "string",
142 "full_name": "string",
143 "state": "active"
144 },
145 "modified_date": "2023-01-01T00:00:00Z",
146 "namespace": "comment_suggestion_replies",
147 "raw_email_artifact": {
148 "id": "string",
149 "display_id": "string"
150 },
151 "sent_timestamp": "2023-01-01T00:00:00Z",
152 "subject": "string",
153 "text_body": "string"
154 }
155}