agentmail 0.0.71 → 0.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1251) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +21 -16
  3. package/dist/cjs/api/resources/domains/client/Client.d.ts +2 -2
  4. package/dist/cjs/api/resources/domains/client/Client.js +2 -2
  5. package/dist/cjs/api/resources/domains/types/ClientId.d.ts +7 -0
  6. package/dist/cjs/api/resources/domains/types/CreateDomainRequest.d.ts +1 -2
  7. package/dist/cjs/api/resources/domains/types/Domain.d.ts +3 -3
  8. package/dist/cjs/api/resources/domains/types/DomainSummary.d.ts +2 -3
  9. package/dist/cjs/api/resources/domains/types/FeedbackEnabled.d.ts +7 -0
  10. package/dist/cjs/api/resources/domains/types/FeedbackEnabled.js +5 -0
  11. package/dist/cjs/api/resources/domains/types/index.d.ts +2 -1
  12. package/dist/cjs/api/resources/domains/types/index.js +2 -1
  13. package/dist/cjs/api/resources/inboxes/types/CreateInboxRequest.d.ts +1 -2
  14. package/dist/cjs/api/resources/inboxes/types/DisplayName.d.ts +7 -0
  15. package/dist/cjs/api/resources/inboxes/types/DisplayName.js +5 -0
  16. package/dist/cjs/api/resources/inboxes/types/Inbox.d.ts +2 -3
  17. package/dist/cjs/api/resources/inboxes/types/index.d.ts +1 -0
  18. package/dist/cjs/api/resources/inboxes/types/index.js +1 -0
  19. package/dist/cjs/api/resources/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/index.js +2 -1
  21. package/dist/cjs/api/resources/pods/client/Client.d.ts +89 -0
  22. package/dist/cjs/api/resources/pods/client/Client.js +385 -0
  23. package/dist/cjs/api/resources/pods/client/index.d.ts +2 -0
  24. package/dist/cjs/api/resources/pods/client/index.js +17 -0
  25. package/dist/cjs/api/resources/pods/client/requests/ListPodsRequest.d.ts +12 -0
  26. package/dist/cjs/api/resources/pods/client/requests/ListPodsRequest.js +5 -0
  27. package/dist/cjs/api/resources/pods/client/requests/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/pods/client/requests/index.js +2 -0
  29. package/dist/cjs/api/resources/pods/index.d.ts +3 -0
  30. package/dist/cjs/api/resources/pods/index.js +19 -0
  31. package/dist/cjs/api/resources/pods/resources/domains/client/Client.d.ts +71 -0
  32. package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +325 -0
  33. package/dist/cjs/api/resources/pods/resources/domains/client/index.d.ts +2 -0
  34. package/dist/cjs/api/resources/pods/resources/domains/client/index.js +17 -0
  35. package/dist/cjs/api/resources/pods/resources/domains/client/requests/ListDomainsRequest.d.ts +16 -0
  36. package/dist/cjs/api/resources/pods/resources/domains/client/requests/ListDomainsRequest.js +5 -0
  37. package/dist/cjs/api/resources/pods/resources/domains/client/requests/index.d.ts +1 -0
  38. package/dist/cjs/api/resources/pods/resources/domains/client/requests/index.js +2 -0
  39. package/dist/cjs/api/resources/pods/resources/domains/index.d.ts +1 -0
  40. package/dist/cjs/api/resources/pods/resources/domains/index.js +17 -0
  41. package/dist/cjs/api/resources/pods/resources/drafts/client/Client.d.ts +56 -0
  42. package/dist/cjs/api/resources/pods/resources/drafts/client/Client.js +252 -0
  43. package/dist/cjs/api/resources/pods/resources/drafts/client/index.d.ts +2 -0
  44. package/dist/cjs/api/resources/pods/resources/drafts/client/index.js +17 -0
  45. package/dist/cjs/api/resources/pods/resources/drafts/client/requests/ListDraftsRequest.d.ts +16 -0
  46. package/dist/cjs/api/resources/pods/resources/drafts/client/requests/ListDraftsRequest.js +5 -0
  47. package/dist/cjs/api/resources/pods/resources/drafts/client/requests/index.d.ts +1 -0
  48. package/dist/cjs/api/resources/pods/resources/drafts/client/requests/index.js +2 -0
  49. package/dist/cjs/api/resources/pods/resources/drafts/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/pods/resources/drafts/index.js +17 -0
  51. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +85 -0
  52. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +400 -0
  53. package/dist/cjs/api/resources/pods/resources/inboxes/client/index.d.ts +2 -0
  54. package/dist/cjs/api/resources/pods/resources/inboxes/client/index.js +17 -0
  55. package/dist/cjs/api/resources/pods/resources/inboxes/client/requests/ListInboxesRequest.d.ts +16 -0
  56. package/dist/cjs/api/resources/pods/resources/inboxes/client/requests/ListInboxesRequest.js +5 -0
  57. package/dist/cjs/api/resources/pods/resources/inboxes/client/requests/index.d.ts +1 -0
  58. package/dist/cjs/api/resources/pods/resources/inboxes/client/requests/index.js +2 -0
  59. package/dist/cjs/api/resources/pods/resources/inboxes/index.d.ts +1 -0
  60. package/dist/cjs/api/resources/pods/resources/inboxes/index.js +17 -0
  61. package/dist/cjs/api/resources/pods/resources/index.d.ts +8 -0
  62. package/dist/cjs/api/resources/pods/resources/index.js +47 -0
  63. package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +61 -0
  64. package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +310 -0
  65. package/dist/cjs/api/resources/pods/resources/threads/client/index.d.ts +2 -0
  66. package/dist/cjs/api/resources/pods/resources/threads/client/index.js +17 -0
  67. package/dist/cjs/api/resources/pods/resources/threads/client/requests/ListThreadsRequest.d.ts +16 -0
  68. package/dist/cjs/api/resources/pods/resources/threads/client/requests/ListThreadsRequest.js +5 -0
  69. package/dist/cjs/api/resources/pods/resources/threads/client/requests/index.d.ts +1 -0
  70. package/dist/cjs/api/resources/pods/resources/threads/client/requests/index.js +2 -0
  71. package/dist/cjs/api/resources/pods/resources/threads/index.d.ts +1 -0
  72. package/dist/cjs/api/resources/pods/resources/threads/index.js +17 -0
  73. package/dist/cjs/api/resources/pods/types/ClientId.d.ts +7 -0
  74. package/dist/cjs/api/resources/pods/types/ClientId.js +5 -0
  75. package/dist/cjs/api/resources/pods/types/CreatePodRequest.d.ts +8 -0
  76. package/dist/cjs/api/resources/pods/types/CreatePodRequest.js +5 -0
  77. package/dist/cjs/api/resources/pods/types/ListPodsResponse.d.ts +11 -0
  78. package/dist/cjs/api/resources/pods/types/ListPodsResponse.js +5 -0
  79. package/dist/cjs/api/resources/pods/types/Name.d.ts +7 -0
  80. package/dist/cjs/api/resources/pods/types/Name.js +5 -0
  81. package/dist/cjs/api/resources/pods/types/Pod.d.ts +13 -0
  82. package/dist/cjs/api/resources/pods/types/Pod.js +5 -0
  83. package/dist/cjs/api/resources/pods/types/PodId.d.ts +7 -0
  84. package/dist/cjs/api/resources/pods/types/PodId.js +5 -0
  85. package/dist/cjs/api/resources/pods/types/index.d.ts +6 -0
  86. package/dist/cjs/api/resources/pods/types/index.js +22 -0
  87. package/dist/cjs/api/resources/threads/client/Client.d.ts +0 -11
  88. package/dist/cjs/api/resources/threads/client/Client.js +0 -63
  89. package/dist/cjs/serialization/resources/domains/types/ClientId.d.ts +10 -0
  90. package/dist/cjs/serialization/resources/domains/types/ClientId.js +41 -0
  91. package/dist/cjs/serialization/resources/domains/types/CreateDomainRequest.d.ts +2 -1
  92. package/dist/cjs/serialization/resources/domains/types/CreateDomainRequest.js +2 -1
  93. package/dist/cjs/serialization/resources/domains/types/Domain.d.ts +6 -3
  94. package/dist/cjs/serialization/resources/domains/types/Domain.js +6 -3
  95. package/dist/cjs/serialization/resources/domains/types/DomainSummary.d.ts +4 -3
  96. package/dist/cjs/serialization/resources/domains/types/DomainSummary.js +4 -3
  97. package/dist/cjs/serialization/resources/domains/types/FeedbackEnabled.d.ts +10 -0
  98. package/dist/cjs/serialization/resources/domains/types/FeedbackEnabled.js +41 -0
  99. package/dist/cjs/serialization/resources/domains/types/index.d.ts +2 -1
  100. package/dist/cjs/serialization/resources/domains/types/index.js +2 -1
  101. package/dist/cjs/serialization/resources/inboxes/types/CreateInboxRequest.d.ts +2 -1
  102. package/dist/cjs/serialization/resources/inboxes/types/CreateInboxRequest.js +2 -1
  103. package/dist/cjs/serialization/resources/inboxes/types/DisplayName.d.ts +10 -0
  104. package/dist/cjs/serialization/resources/inboxes/types/DisplayName.js +41 -0
  105. package/dist/cjs/serialization/resources/inboxes/types/Inbox.d.ts +3 -2
  106. package/dist/cjs/serialization/resources/inboxes/types/Inbox.js +3 -2
  107. package/dist/cjs/serialization/resources/inboxes/types/index.d.ts +1 -0
  108. package/dist/cjs/serialization/resources/inboxes/types/index.js +1 -0
  109. package/dist/cjs/serialization/resources/index.d.ts +1 -0
  110. package/dist/cjs/serialization/resources/index.js +2 -1
  111. package/dist/cjs/serialization/resources/pods/index.d.ts +1 -0
  112. package/dist/cjs/serialization/resources/pods/index.js +17 -0
  113. package/dist/cjs/serialization/resources/pods/types/ClientId.d.ts +10 -0
  114. package/dist/cjs/serialization/resources/pods/types/ClientId.js +41 -0
  115. package/dist/cjs/serialization/resources/pods/types/CreatePodRequest.d.ts +15 -0
  116. package/dist/cjs/serialization/resources/pods/types/CreatePodRequest.js +46 -0
  117. package/dist/cjs/serialization/resources/pods/types/ListPodsResponse.d.ts +19 -0
  118. package/dist/cjs/serialization/resources/pods/types/ListPodsResponse.js +50 -0
  119. package/dist/cjs/serialization/resources/pods/types/Name.d.ts +10 -0
  120. package/dist/cjs/serialization/resources/pods/types/Name.js +41 -0
  121. package/dist/cjs/serialization/resources/pods/types/Pod.d.ts +19 -0
  122. package/dist/cjs/serialization/resources/{domains/types/CreateDomainResponse.js → pods/types/Pod.js} +8 -11
  123. package/dist/cjs/serialization/resources/pods/types/PodId.d.ts +10 -0
  124. package/dist/cjs/serialization/resources/pods/types/PodId.js +41 -0
  125. package/dist/cjs/serialization/resources/pods/types/index.d.ts +6 -0
  126. package/dist/cjs/serialization/resources/pods/types/index.js +22 -0
  127. package/dist/cjs/version.d.ts +1 -1
  128. package/dist/cjs/version.js +1 -1
  129. package/dist/esm/Client.d.mts +58 -0
  130. package/dist/esm/Client.mjs +62 -0
  131. package/dist/esm/api/errors/IsTakenError.d.mts +9 -0
  132. package/dist/esm/api/errors/IsTakenError.mjs +15 -0
  133. package/dist/esm/api/errors/NotFoundError.d.mts +9 -0
  134. package/dist/esm/api/errors/NotFoundError.mjs +15 -0
  135. package/dist/esm/api/errors/ValidationError.d.mts +9 -0
  136. package/dist/esm/api/errors/ValidationError.mjs +15 -0
  137. package/dist/esm/api/errors/index.d.mts +3 -0
  138. package/dist/esm/api/errors/index.mjs +3 -0
  139. package/dist/esm/api/index.d.mts +3 -0
  140. package/dist/esm/api/index.mjs +3 -0
  141. package/dist/esm/api/resources/apiKeys/client/Client.d.mts +65 -0
  142. package/dist/esm/api/resources/apiKeys/client/Client.mjs +255 -0
  143. package/dist/esm/api/resources/apiKeys/client/index.d.mts +2 -0
  144. package/dist/esm/api/resources/apiKeys/client/index.mjs +1 -0
  145. package/dist/esm/api/resources/apiKeys/client/requests/ListApiKeysRequest.d.mts +12 -0
  146. package/dist/esm/api/resources/apiKeys/client/requests/ListApiKeysRequest.mjs +4 -0
  147. package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +1 -0
  148. package/dist/esm/api/resources/apiKeys/client/requests/index.mjs +1 -0
  149. package/dist/esm/api/resources/apiKeys/index.d.mts +2 -0
  150. package/dist/esm/api/resources/apiKeys/index.mjs +2 -0
  151. package/dist/esm/api/resources/apiKeys/types/ApiKey.d.mts +12 -0
  152. package/dist/esm/api/resources/apiKeys/types/ApiKey.mjs +4 -0
  153. package/dist/esm/api/resources/apiKeys/types/ApiKeyId.d.mts +7 -0
  154. package/dist/esm/api/resources/apiKeys/types/ApiKeyId.mjs +4 -0
  155. package/dist/esm/api/resources/apiKeys/types/CreateApiKeyRequest.d.mts +7 -0
  156. package/dist/esm/api/resources/apiKeys/types/CreateApiKeyRequest.mjs +4 -0
  157. package/dist/esm/api/resources/apiKeys/types/CreateApiKeyResponse.d.mts +12 -0
  158. package/dist/esm/api/resources/apiKeys/types/CreateApiKeyResponse.mjs +4 -0
  159. package/dist/esm/api/resources/apiKeys/types/CreatedAt.d.mts +7 -0
  160. package/dist/esm/api/resources/apiKeys/types/CreatedAt.mjs +4 -0
  161. package/dist/esm/api/resources/apiKeys/types/ListApiKeysResponse.d.mts +10 -0
  162. package/dist/esm/api/resources/apiKeys/types/ListApiKeysResponse.mjs +4 -0
  163. package/dist/esm/api/resources/apiKeys/types/Name.d.mts +7 -0
  164. package/dist/esm/api/resources/apiKeys/types/Name.mjs +4 -0
  165. package/dist/esm/api/resources/apiKeys/types/Prefix.d.mts +7 -0
  166. package/dist/esm/api/resources/apiKeys/types/Prefix.mjs +4 -0
  167. package/dist/esm/api/resources/apiKeys/types/index.d.mts +8 -0
  168. package/dist/esm/api/resources/apiKeys/types/index.mjs +8 -0
  169. package/dist/esm/api/resources/attachments/index.d.mts +1 -0
  170. package/dist/esm/api/resources/attachments/index.mjs +1 -0
  171. package/dist/esm/api/resources/attachments/types/Attachment.d.mts +11 -0
  172. package/dist/esm/api/resources/attachments/types/Attachment.mjs +4 -0
  173. package/dist/esm/api/resources/attachments/types/AttachmentContent.d.mts +7 -0
  174. package/dist/esm/api/resources/attachments/types/AttachmentContent.mjs +4 -0
  175. package/dist/esm/api/resources/attachments/types/AttachmentContentType.d.mts +7 -0
  176. package/dist/esm/api/resources/attachments/types/AttachmentContentType.mjs +4 -0
  177. package/dist/esm/api/resources/attachments/types/AttachmentFilename.d.mts +7 -0
  178. package/dist/esm/api/resources/attachments/types/AttachmentFilename.mjs +4 -0
  179. package/dist/esm/api/resources/attachments/types/AttachmentId.d.mts +7 -0
  180. package/dist/esm/api/resources/attachments/types/AttachmentId.mjs +4 -0
  181. package/dist/esm/api/resources/attachments/types/AttachmentInline.d.mts +7 -0
  182. package/dist/esm/api/resources/attachments/types/AttachmentInline.mjs +4 -0
  183. package/dist/esm/api/resources/attachments/types/AttachmentSize.d.mts +7 -0
  184. package/dist/esm/api/resources/attachments/types/AttachmentSize.mjs +4 -0
  185. package/dist/esm/api/resources/attachments/types/SendAttachment.d.mts +9 -0
  186. package/dist/esm/api/resources/attachments/types/SendAttachment.mjs +4 -0
  187. package/dist/esm/api/resources/attachments/types/index.d.mts +8 -0
  188. package/dist/esm/api/resources/attachments/types/index.mjs +8 -0
  189. package/dist/esm/api/resources/domains/client/Client.d.mts +77 -0
  190. package/dist/esm/api/resources/domains/client/Client.mjs +328 -0
  191. package/dist/esm/api/resources/domains/client/index.d.mts +2 -0
  192. package/dist/esm/api/resources/domains/client/index.mjs +1 -0
  193. package/dist/esm/api/resources/domains/client/requests/ListDomainsRequest.d.mts +12 -0
  194. package/dist/esm/api/resources/domains/client/requests/ListDomainsRequest.mjs +4 -0
  195. package/dist/esm/api/resources/domains/client/requests/index.d.mts +1 -0
  196. package/dist/esm/api/resources/domains/client/requests/index.mjs +1 -0
  197. package/dist/esm/api/resources/domains/index.d.mts +2 -0
  198. package/dist/esm/api/resources/domains/index.mjs +2 -0
  199. package/dist/esm/api/resources/domains/types/ClientId.d.mts +7 -0
  200. package/dist/esm/api/resources/domains/types/ClientId.mjs +4 -0
  201. package/dist/esm/api/resources/domains/types/CreateDomainRequest.d.mts +8 -0
  202. package/dist/esm/api/resources/domains/types/CreateDomainRequest.mjs +4 -0
  203. package/dist/{cjs/api/resources/domains/types/CreateDomainResponse.d.ts → esm/api/resources/domains/types/Domain.d.mts} +5 -5
  204. package/dist/esm/api/resources/domains/types/Domain.mjs +4 -0
  205. package/dist/esm/api/resources/domains/types/DomainId.d.mts +7 -0
  206. package/dist/esm/api/resources/domains/types/DomainId.mjs +4 -0
  207. package/dist/esm/api/resources/domains/types/DomainName.d.mts +7 -0
  208. package/dist/esm/api/resources/domains/types/DomainName.mjs +4 -0
  209. package/dist/esm/api/resources/domains/types/DomainSummary.d.mts +13 -0
  210. package/dist/esm/api/resources/domains/types/DomainSummary.mjs +4 -0
  211. package/dist/esm/api/resources/domains/types/FeedbackEnabled.d.mts +7 -0
  212. package/dist/esm/api/resources/domains/types/FeedbackEnabled.mjs +4 -0
  213. package/dist/esm/api/resources/domains/types/ListDomainsResponse.d.mts +10 -0
  214. package/dist/esm/api/resources/domains/types/ListDomainsResponse.mjs +4 -0
  215. package/dist/esm/api/resources/domains/types/RecordStatus.d.mts +8 -0
  216. package/dist/esm/api/resources/domains/types/RecordStatus.mjs +7 -0
  217. package/dist/esm/api/resources/domains/types/RecordType.d.mts +9 -0
  218. package/dist/esm/api/resources/domains/types/RecordType.mjs +8 -0
  219. package/dist/esm/api/resources/domains/types/VerificationRecord.d.mts +16 -0
  220. package/dist/esm/api/resources/domains/types/VerificationRecord.mjs +4 -0
  221. package/dist/esm/api/resources/domains/types/VerificationStatus.d.mts +9 -0
  222. package/dist/esm/api/resources/domains/types/VerificationStatus.mjs +8 -0
  223. package/dist/esm/api/resources/domains/types/index.d.mts +12 -0
  224. package/dist/esm/api/resources/domains/types/index.mjs +12 -0
  225. package/dist/esm/api/resources/drafts/client/Client.d.mts +54 -0
  226. package/dist/esm/api/resources/drafts/client/Client.mjs +213 -0
  227. package/dist/esm/api/resources/drafts/client/index.d.mts +2 -0
  228. package/dist/esm/api/resources/drafts/client/index.mjs +1 -0
  229. package/dist/esm/api/resources/drafts/client/requests/ListDraftsRequest.d.mts +16 -0
  230. package/dist/esm/api/resources/drafts/client/requests/ListDraftsRequest.mjs +4 -0
  231. package/dist/esm/api/resources/drafts/client/requests/index.d.mts +1 -0
  232. package/dist/esm/api/resources/drafts/client/requests/index.mjs +1 -0
  233. package/dist/esm/api/resources/drafts/index.d.mts +2 -0
  234. package/dist/esm/api/resources/drafts/index.mjs +2 -0
  235. package/dist/esm/api/resources/drafts/types/CreateDraftRequest.d.mts +16 -0
  236. package/dist/esm/api/resources/drafts/types/CreateDraftRequest.mjs +4 -0
  237. package/dist/esm/api/resources/drafts/types/Draft.d.mts +27 -0
  238. package/dist/esm/api/resources/drafts/types/Draft.mjs +4 -0
  239. package/dist/esm/api/resources/drafts/types/DraftAttachments.d.mts +8 -0
  240. package/dist/esm/api/resources/drafts/types/DraftAttachments.mjs +4 -0
  241. package/dist/esm/api/resources/drafts/types/DraftBcc.d.mts +7 -0
  242. package/dist/esm/api/resources/drafts/types/DraftBcc.mjs +4 -0
  243. package/dist/esm/api/resources/drafts/types/DraftCc.d.mts +7 -0
  244. package/dist/esm/api/resources/drafts/types/DraftCc.mjs +4 -0
  245. package/dist/esm/api/resources/drafts/types/DraftHtml.d.mts +7 -0
  246. package/dist/esm/api/resources/drafts/types/DraftHtml.mjs +4 -0
  247. package/dist/esm/api/resources/drafts/types/DraftId.d.mts +7 -0
  248. package/dist/esm/api/resources/drafts/types/DraftId.mjs +4 -0
  249. package/dist/esm/api/resources/drafts/types/DraftInReplyTo.d.mts +7 -0
  250. package/dist/esm/api/resources/drafts/types/DraftInReplyTo.mjs +4 -0
  251. package/dist/esm/api/resources/drafts/types/DraftItem.d.mts +19 -0
  252. package/dist/esm/api/resources/drafts/types/DraftItem.mjs +4 -0
  253. package/dist/esm/api/resources/drafts/types/DraftLabels.d.mts +7 -0
  254. package/dist/esm/api/resources/drafts/types/DraftLabels.mjs +4 -0
  255. package/dist/esm/api/resources/drafts/types/DraftPreview.d.mts +7 -0
  256. package/dist/esm/api/resources/drafts/types/DraftPreview.mjs +4 -0
  257. package/dist/esm/api/resources/drafts/types/DraftReplyTo.d.mts +7 -0
  258. package/dist/esm/api/resources/drafts/types/DraftReplyTo.mjs +4 -0
  259. package/dist/esm/api/resources/drafts/types/DraftSendAt.d.mts +7 -0
  260. package/dist/esm/api/resources/drafts/types/DraftSendAt.mjs +4 -0
  261. package/dist/esm/api/resources/drafts/types/DraftSendStatus.d.mts +12 -0
  262. package/dist/esm/api/resources/drafts/types/DraftSendStatus.mjs +8 -0
  263. package/dist/esm/api/resources/drafts/types/DraftSubject.d.mts +7 -0
  264. package/dist/esm/api/resources/drafts/types/DraftSubject.mjs +4 -0
  265. package/dist/esm/api/resources/drafts/types/DraftText.d.mts +7 -0
  266. package/dist/esm/api/resources/drafts/types/DraftText.mjs +4 -0
  267. package/dist/esm/api/resources/drafts/types/DraftTo.d.mts +7 -0
  268. package/dist/esm/api/resources/drafts/types/DraftTo.mjs +4 -0
  269. package/dist/esm/api/resources/drafts/types/DraftUpdatedAt.d.mts +7 -0
  270. package/dist/esm/api/resources/drafts/types/DraftUpdatedAt.mjs +4 -0
  271. package/dist/esm/api/resources/drafts/types/ListDraftsResponse.d.mts +11 -0
  272. package/dist/esm/api/resources/drafts/types/ListDraftsResponse.mjs +4 -0
  273. package/dist/esm/api/resources/drafts/types/index.d.mts +19 -0
  274. package/dist/esm/api/resources/drafts/types/index.mjs +19 -0
  275. package/dist/esm/api/resources/events/index.d.mts +1 -0
  276. package/dist/esm/api/resources/events/index.mjs +1 -0
  277. package/dist/esm/api/resources/events/types/Bounce.d.mts +15 -0
  278. package/dist/esm/api/resources/events/types/Bounce.mjs +4 -0
  279. package/dist/esm/api/resources/events/types/Complaint.d.mts +15 -0
  280. package/dist/esm/api/resources/events/types/Complaint.mjs +4 -0
  281. package/dist/esm/api/resources/events/types/Delivery.d.mts +11 -0
  282. package/dist/esm/api/resources/events/types/Delivery.mjs +4 -0
  283. package/dist/esm/api/resources/events/types/EventId.d.mts +7 -0
  284. package/dist/esm/api/resources/events/types/EventId.mjs +4 -0
  285. package/dist/esm/api/resources/events/types/MessageBouncedEvent.d.mts +10 -0
  286. package/dist/esm/api/resources/events/types/MessageBouncedEvent.mjs +4 -0
  287. package/dist/esm/api/resources/events/types/MessageComplainedEvent.d.mts +10 -0
  288. package/dist/esm/api/resources/events/types/MessageComplainedEvent.mjs +4 -0
  289. package/dist/esm/api/resources/events/types/MessageDeliveredEvent.d.mts +10 -0
  290. package/dist/esm/api/resources/events/types/MessageDeliveredEvent.mjs +4 -0
  291. package/dist/esm/api/resources/events/types/MessageReceivedEvent.d.mts +10 -0
  292. package/dist/esm/api/resources/events/types/MessageReceivedEvent.mjs +4 -0
  293. package/dist/esm/api/resources/events/types/MessageRejectedEvent.d.mts +10 -0
  294. package/dist/esm/api/resources/events/types/MessageRejectedEvent.mjs +4 -0
  295. package/dist/esm/api/resources/events/types/MessageSentEvent.d.mts +10 -0
  296. package/dist/esm/api/resources/events/types/MessageSentEvent.mjs +4 -0
  297. package/dist/esm/api/resources/events/types/Recipient.d.mts +9 -0
  298. package/dist/esm/api/resources/events/types/Recipient.mjs +4 -0
  299. package/dist/esm/api/resources/events/types/Reject.d.mts +11 -0
  300. package/dist/esm/api/resources/events/types/Reject.mjs +4 -0
  301. package/dist/esm/api/resources/events/types/Send.d.mts +11 -0
  302. package/dist/esm/api/resources/events/types/Send.mjs +4 -0
  303. package/dist/esm/api/resources/events/types/Timestamp.d.mts +7 -0
  304. package/dist/esm/api/resources/events/types/Timestamp.mjs +4 -0
  305. package/dist/esm/api/resources/events/types/index.d.mts +14 -0
  306. package/dist/esm/api/resources/events/types/index.mjs +14 -0
  307. package/dist/esm/api/resources/inboxes/client/Client.d.mts +91 -0
  308. package/dist/esm/api/resources/inboxes/client/Client.mjs +350 -0
  309. package/dist/esm/api/resources/inboxes/client/index.d.mts +2 -0
  310. package/dist/esm/api/resources/inboxes/client/index.mjs +1 -0
  311. package/dist/esm/api/resources/inboxes/client/requests/ListInboxesRequest.d.mts +12 -0
  312. package/dist/esm/api/resources/inboxes/client/requests/ListInboxesRequest.mjs +4 -0
  313. package/dist/esm/api/resources/inboxes/client/requests/index.d.mts +1 -0
  314. package/dist/esm/api/resources/inboxes/client/requests/index.mjs +1 -0
  315. package/dist/esm/api/resources/inboxes/index.d.mts +3 -0
  316. package/dist/esm/api/resources/inboxes/index.mjs +3 -0
  317. package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.d.mts +109 -0
  318. package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +470 -0
  319. package/dist/esm/api/resources/inboxes/resources/drafts/client/index.d.mts +2 -0
  320. package/dist/esm/api/resources/inboxes/resources/drafts/client/index.mjs +1 -0
  321. package/dist/esm/api/resources/inboxes/resources/drafts/client/requests/ListDraftsRequest.d.mts +16 -0
  322. package/dist/esm/api/resources/inboxes/resources/drafts/client/requests/ListDraftsRequest.mjs +4 -0
  323. package/dist/esm/api/resources/inboxes/resources/drafts/client/requests/index.d.mts +1 -0
  324. package/dist/esm/api/resources/inboxes/resources/drafts/client/requests/index.mjs +1 -0
  325. package/dist/esm/api/resources/inboxes/resources/drafts/index.d.mts +1 -0
  326. package/dist/esm/api/resources/inboxes/resources/drafts/index.mjs +1 -0
  327. package/dist/esm/api/resources/inboxes/resources/index.d.mts +8 -0
  328. package/dist/esm/api/resources/inboxes/resources/index.mjs +8 -0
  329. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.d.mts +131 -0
  330. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +637 -0
  331. package/dist/esm/api/resources/inboxes/resources/messages/client/index.d.mts +2 -0
  332. package/dist/esm/api/resources/inboxes/resources/messages/client/index.mjs +1 -0
  333. package/dist/esm/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.mts +16 -0
  334. package/dist/esm/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.mjs +4 -0
  335. package/dist/esm/api/resources/inboxes/resources/messages/client/requests/index.d.mts +1 -0
  336. package/dist/esm/api/resources/inboxes/resources/messages/client/requests/index.mjs +1 -0
  337. package/dist/esm/api/resources/inboxes/resources/messages/index.d.mts +1 -0
  338. package/dist/esm/api/resources/inboxes/resources/messages/index.mjs +1 -0
  339. package/dist/esm/api/resources/inboxes/resources/metrics/client/Client.d.mts +49 -0
  340. package/dist/esm/api/resources/inboxes/resources/metrics/client/Client.mjs +131 -0
  341. package/dist/esm/api/resources/inboxes/resources/metrics/client/index.d.mts +2 -0
  342. package/dist/esm/api/resources/inboxes/resources/metrics/client/index.mjs +1 -0
  343. package/dist/esm/api/resources/inboxes/resources/metrics/client/requests/ListInboxMetricsRequest.d.mts +16 -0
  344. package/dist/esm/api/resources/inboxes/resources/metrics/client/requests/ListInboxMetricsRequest.mjs +4 -0
  345. package/dist/esm/api/resources/inboxes/resources/metrics/client/requests/index.d.mts +1 -0
  346. package/dist/esm/api/resources/inboxes/resources/metrics/client/requests/index.mjs +1 -0
  347. package/dist/esm/api/resources/inboxes/resources/metrics/index.d.mts +1 -0
  348. package/dist/esm/api/resources/inboxes/resources/metrics/index.mjs +1 -0
  349. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.d.mts +73 -0
  350. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +337 -0
  351. package/dist/esm/api/resources/inboxes/resources/threads/client/index.d.mts +2 -0
  352. package/dist/esm/api/resources/inboxes/resources/threads/client/index.mjs +1 -0
  353. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.mts +16 -0
  354. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.mjs +4 -0
  355. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/index.d.mts +1 -0
  356. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/index.mjs +1 -0
  357. package/dist/esm/api/resources/inboxes/resources/threads/index.d.mts +1 -0
  358. package/dist/esm/api/resources/inboxes/resources/threads/index.mjs +1 -0
  359. package/dist/esm/api/resources/inboxes/types/ClientId.d.mts +7 -0
  360. package/dist/esm/api/resources/inboxes/types/ClientId.mjs +4 -0
  361. package/dist/esm/api/resources/inboxes/types/CreateInboxRequest.d.mts +12 -0
  362. package/dist/esm/api/resources/inboxes/types/CreateInboxRequest.mjs +4 -0
  363. package/dist/esm/api/resources/inboxes/types/DisplayName.d.mts +7 -0
  364. package/dist/esm/api/resources/inboxes/types/DisplayName.mjs +4 -0
  365. package/dist/esm/api/resources/inboxes/types/Inbox.d.mts +13 -0
  366. package/dist/esm/api/resources/inboxes/types/Inbox.mjs +4 -0
  367. package/dist/esm/api/resources/inboxes/types/InboxId.d.mts +7 -0
  368. package/dist/esm/api/resources/inboxes/types/InboxId.mjs +4 -0
  369. package/dist/esm/api/resources/inboxes/types/ListInboxesResponse.d.mts +11 -0
  370. package/dist/esm/api/resources/inboxes/types/ListInboxesResponse.mjs +4 -0
  371. package/dist/esm/api/resources/inboxes/types/index.d.mts +6 -0
  372. package/dist/esm/api/resources/inboxes/types/index.mjs +6 -0
  373. package/dist/esm/api/resources/index.d.mts +27 -0
  374. package/dist/esm/api/resources/index.mjs +27 -0
  375. package/dist/esm/api/resources/messages/errors/MessageRejectedError.d.mts +9 -0
  376. package/dist/esm/api/resources/messages/errors/MessageRejectedError.mjs +15 -0
  377. package/dist/esm/api/resources/messages/errors/index.d.mts +1 -0
  378. package/dist/esm/api/resources/messages/errors/index.mjs +1 -0
  379. package/dist/esm/api/resources/messages/index.d.mts +2 -0
  380. package/dist/esm/api/resources/messages/index.mjs +2 -0
  381. package/dist/esm/api/resources/messages/types/Addresses.d.mts +4 -0
  382. package/dist/esm/api/resources/messages/types/Addresses.mjs +4 -0
  383. package/dist/esm/api/resources/messages/types/ListMessagesResponse.d.mts +11 -0
  384. package/dist/esm/api/resources/messages/types/ListMessagesResponse.mjs +4 -0
  385. package/dist/esm/api/resources/messages/types/Message.d.mts +27 -0
  386. package/dist/esm/api/resources/messages/types/Message.mjs +4 -0
  387. package/dist/esm/api/resources/messages/types/MessageAttachments.d.mts +8 -0
  388. package/dist/esm/api/resources/messages/types/MessageAttachments.mjs +4 -0
  389. package/dist/esm/api/resources/messages/types/MessageBcc.d.mts +7 -0
  390. package/dist/esm/api/resources/messages/types/MessageBcc.mjs +4 -0
  391. package/dist/esm/api/resources/messages/types/MessageCc.d.mts +7 -0
  392. package/dist/esm/api/resources/messages/types/MessageCc.mjs +4 -0
  393. package/dist/esm/api/resources/messages/types/MessageCreatedAt.d.mts +7 -0
  394. package/dist/esm/api/resources/messages/types/MessageCreatedAt.mjs +4 -0
  395. package/dist/esm/api/resources/messages/types/MessageFrom.d.mts +7 -0
  396. package/dist/esm/api/resources/messages/types/MessageFrom.mjs +4 -0
  397. package/dist/esm/api/resources/messages/types/MessageHtml.d.mts +7 -0
  398. package/dist/esm/api/resources/messages/types/MessageHtml.mjs +4 -0
  399. package/dist/esm/api/resources/messages/types/MessageId.d.mts +7 -0
  400. package/dist/esm/api/resources/messages/types/MessageId.mjs +4 -0
  401. package/dist/esm/api/resources/messages/types/MessageInReplyTo.d.mts +7 -0
  402. package/dist/esm/api/resources/messages/types/MessageInReplyTo.mjs +4 -0
  403. package/dist/esm/api/resources/messages/types/MessageItem.d.mts +23 -0
  404. package/dist/esm/api/resources/messages/types/MessageItem.mjs +4 -0
  405. package/dist/esm/api/resources/messages/types/MessageLabels.d.mts +7 -0
  406. package/dist/esm/api/resources/messages/types/MessageLabels.mjs +4 -0
  407. package/dist/esm/api/resources/messages/types/MessagePreview.d.mts +7 -0
  408. package/dist/esm/api/resources/messages/types/MessagePreview.mjs +4 -0
  409. package/dist/esm/api/resources/messages/types/MessageReferences.d.mts +7 -0
  410. package/dist/esm/api/resources/messages/types/MessageReferences.mjs +4 -0
  411. package/dist/esm/api/resources/messages/types/MessageReplyTo.d.mts +7 -0
  412. package/dist/esm/api/resources/messages/types/MessageReplyTo.mjs +4 -0
  413. package/dist/esm/api/resources/messages/types/MessageSize.d.mts +7 -0
  414. package/dist/esm/api/resources/messages/types/MessageSize.mjs +4 -0
  415. package/dist/esm/api/resources/messages/types/MessageSubject.d.mts +7 -0
  416. package/dist/esm/api/resources/messages/types/MessageSubject.mjs +4 -0
  417. package/dist/esm/api/resources/messages/types/MessageText.d.mts +7 -0
  418. package/dist/esm/api/resources/messages/types/MessageText.mjs +4 -0
  419. package/dist/esm/api/resources/messages/types/MessageTimestamp.d.mts +7 -0
  420. package/dist/esm/api/resources/messages/types/MessageTimestamp.mjs +4 -0
  421. package/dist/esm/api/resources/messages/types/MessageTo.d.mts +7 -0
  422. package/dist/esm/api/resources/messages/types/MessageTo.mjs +4 -0
  423. package/dist/esm/api/resources/messages/types/MessageUpdatedAt.d.mts +7 -0
  424. package/dist/esm/api/resources/messages/types/MessageUpdatedAt.mjs +4 -0
  425. package/dist/esm/api/resources/messages/types/ReplyToMessageRequest.d.mts +14 -0
  426. package/dist/esm/api/resources/messages/types/ReplyToMessageRequest.mjs +4 -0
  427. package/dist/esm/api/resources/messages/types/SendMessageAttachments.d.mts +8 -0
  428. package/dist/esm/api/resources/messages/types/SendMessageAttachments.mjs +4 -0
  429. package/dist/esm/api/resources/messages/types/SendMessageBcc.d.mts +8 -0
  430. package/dist/esm/api/resources/messages/types/SendMessageBcc.mjs +4 -0
  431. package/dist/esm/api/resources/messages/types/SendMessageCc.d.mts +8 -0
  432. package/dist/esm/api/resources/messages/types/SendMessageCc.mjs +4 -0
  433. package/dist/esm/api/resources/messages/types/SendMessageReplyTo.d.mts +8 -0
  434. package/dist/esm/api/resources/messages/types/SendMessageReplyTo.mjs +4 -0
  435. package/dist/esm/api/resources/messages/types/SendMessageRequest.d.mts +15 -0
  436. package/dist/esm/api/resources/messages/types/SendMessageRequest.mjs +4 -0
  437. package/dist/esm/api/resources/messages/types/SendMessageResponse.d.mts +8 -0
  438. package/dist/esm/api/resources/messages/types/SendMessageResponse.mjs +4 -0
  439. package/dist/esm/api/resources/messages/types/SendMessageTo.d.mts +8 -0
  440. package/dist/esm/api/resources/messages/types/SendMessageTo.mjs +4 -0
  441. package/dist/esm/api/resources/messages/types/UpdateMessageRequest.d.mts +9 -0
  442. package/dist/esm/api/resources/messages/types/UpdateMessageRequest.mjs +4 -0
  443. package/dist/esm/api/resources/messages/types/index.d.mts +31 -0
  444. package/dist/esm/api/resources/messages/types/index.mjs +31 -0
  445. package/dist/esm/api/resources/metrics/client/Client.d.mts +47 -0
  446. package/dist/esm/api/resources/metrics/client/Client.mjs +121 -0
  447. package/dist/esm/api/resources/metrics/client/index.d.mts +2 -0
  448. package/dist/esm/api/resources/metrics/client/index.mjs +1 -0
  449. package/dist/esm/api/resources/metrics/client/requests/ListMetricsRequest.d.mts +16 -0
  450. package/dist/esm/api/resources/metrics/client/requests/ListMetricsRequest.mjs +4 -0
  451. package/dist/esm/api/resources/metrics/client/requests/index.d.mts +1 -0
  452. package/dist/esm/api/resources/metrics/client/requests/index.mjs +1 -0
  453. package/dist/esm/api/resources/metrics/index.d.mts +2 -0
  454. package/dist/esm/api/resources/metrics/index.mjs +2 -0
  455. package/dist/esm/api/resources/metrics/types/ListMetricsResponse.d.mts +8 -0
  456. package/dist/esm/api/resources/metrics/types/ListMetricsResponse.mjs +4 -0
  457. package/dist/esm/api/resources/metrics/types/MessageMetrics.d.mts +20 -0
  458. package/dist/esm/api/resources/metrics/types/MessageMetrics.mjs +4 -0
  459. package/dist/esm/api/resources/metrics/types/MetricEndTimestamp.d.mts +7 -0
  460. package/dist/esm/api/resources/metrics/types/MetricEndTimestamp.mjs +4 -0
  461. package/dist/esm/api/resources/metrics/types/MetricEventType.d.mts +16 -0
  462. package/dist/esm/api/resources/metrics/types/MetricEventType.mjs +12 -0
  463. package/dist/esm/api/resources/metrics/types/MetricEventTypes.d.mts +8 -0
  464. package/dist/esm/api/resources/metrics/types/MetricEventTypes.mjs +4 -0
  465. package/dist/esm/api/resources/metrics/types/MetricStartTimestamp.d.mts +7 -0
  466. package/dist/esm/api/resources/metrics/types/MetricStartTimestamp.mjs +4 -0
  467. package/dist/esm/api/resources/metrics/types/MetricTimestamp.d.mts +7 -0
  468. package/dist/esm/api/resources/metrics/types/MetricTimestamp.mjs +4 -0
  469. package/dist/esm/api/resources/metrics/types/index.d.mts +7 -0
  470. package/dist/esm/api/resources/metrics/types/index.mjs +7 -0
  471. package/dist/esm/api/resources/pods/client/Client.d.mts +89 -0
  472. package/dist/esm/api/resources/pods/client/Client.mjs +348 -0
  473. package/dist/esm/api/resources/pods/client/index.d.mts +2 -0
  474. package/dist/esm/api/resources/pods/client/index.mjs +1 -0
  475. package/dist/esm/api/resources/pods/client/requests/ListPodsRequest.d.mts +12 -0
  476. package/dist/esm/api/resources/pods/client/requests/ListPodsRequest.mjs +4 -0
  477. package/dist/esm/api/resources/pods/client/requests/index.d.mts +1 -0
  478. package/dist/esm/api/resources/pods/client/requests/index.mjs +1 -0
  479. package/dist/esm/api/resources/pods/index.d.mts +3 -0
  480. package/dist/esm/api/resources/pods/index.mjs +3 -0
  481. package/dist/esm/api/resources/pods/resources/domains/client/Client.d.mts +71 -0
  482. package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +288 -0
  483. package/dist/esm/api/resources/pods/resources/domains/client/index.d.mts +2 -0
  484. package/dist/esm/api/resources/pods/resources/domains/client/index.mjs +1 -0
  485. package/dist/esm/api/resources/pods/resources/domains/client/requests/ListDomainsRequest.d.mts +16 -0
  486. package/dist/esm/api/resources/pods/resources/domains/client/requests/ListDomainsRequest.mjs +4 -0
  487. package/dist/esm/api/resources/pods/resources/domains/client/requests/index.d.mts +1 -0
  488. package/dist/esm/api/resources/pods/resources/domains/client/requests/index.mjs +1 -0
  489. package/dist/esm/api/resources/pods/resources/domains/index.d.mts +1 -0
  490. package/dist/esm/api/resources/pods/resources/domains/index.mjs +1 -0
  491. package/dist/esm/api/resources/pods/resources/drafts/client/Client.d.mts +56 -0
  492. package/dist/esm/api/resources/pods/resources/drafts/client/Client.mjs +215 -0
  493. package/dist/esm/api/resources/pods/resources/drafts/client/index.d.mts +2 -0
  494. package/dist/esm/api/resources/pods/resources/drafts/client/index.mjs +1 -0
  495. package/dist/esm/api/resources/pods/resources/drafts/client/requests/ListDraftsRequest.d.mts +16 -0
  496. package/dist/esm/api/resources/pods/resources/drafts/client/requests/ListDraftsRequest.mjs +4 -0
  497. package/dist/esm/api/resources/pods/resources/drafts/client/requests/index.d.mts +1 -0
  498. package/dist/esm/api/resources/pods/resources/drafts/client/requests/index.mjs +1 -0
  499. package/dist/esm/api/resources/pods/resources/drafts/index.d.mts +1 -0
  500. package/dist/esm/api/resources/pods/resources/drafts/index.mjs +1 -0
  501. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +85 -0
  502. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +363 -0
  503. package/dist/esm/api/resources/pods/resources/inboxes/client/index.d.mts +2 -0
  504. package/dist/esm/api/resources/pods/resources/inboxes/client/index.mjs +1 -0
  505. package/dist/esm/api/resources/pods/resources/inboxes/client/requests/ListInboxesRequest.d.mts +16 -0
  506. package/dist/esm/api/resources/pods/resources/inboxes/client/requests/ListInboxesRequest.mjs +4 -0
  507. package/dist/esm/api/resources/pods/resources/inboxes/client/requests/index.d.mts +1 -0
  508. package/dist/esm/api/resources/pods/resources/inboxes/client/requests/index.mjs +1 -0
  509. package/dist/esm/api/resources/pods/resources/inboxes/index.d.mts +1 -0
  510. package/dist/esm/api/resources/pods/resources/inboxes/index.mjs +1 -0
  511. package/dist/esm/api/resources/pods/resources/index.d.mts +8 -0
  512. package/dist/esm/api/resources/pods/resources/index.mjs +8 -0
  513. package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +61 -0
  514. package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +273 -0
  515. package/dist/esm/api/resources/pods/resources/threads/client/index.d.mts +2 -0
  516. package/dist/esm/api/resources/pods/resources/threads/client/index.mjs +1 -0
  517. package/dist/esm/api/resources/pods/resources/threads/client/requests/ListThreadsRequest.d.mts +16 -0
  518. package/dist/esm/api/resources/pods/resources/threads/client/requests/ListThreadsRequest.mjs +4 -0
  519. package/dist/esm/api/resources/pods/resources/threads/client/requests/index.d.mts +1 -0
  520. package/dist/esm/api/resources/pods/resources/threads/client/requests/index.mjs +1 -0
  521. package/dist/esm/api/resources/pods/resources/threads/index.d.mts +1 -0
  522. package/dist/esm/api/resources/pods/resources/threads/index.mjs +1 -0
  523. package/dist/esm/api/resources/pods/types/ClientId.d.mts +7 -0
  524. package/dist/esm/api/resources/pods/types/ClientId.mjs +4 -0
  525. package/dist/esm/api/resources/pods/types/CreatePodRequest.d.mts +8 -0
  526. package/dist/esm/api/resources/pods/types/CreatePodRequest.mjs +4 -0
  527. package/dist/esm/api/resources/pods/types/ListPodsResponse.d.mts +11 -0
  528. package/dist/esm/api/resources/pods/types/ListPodsResponse.mjs +4 -0
  529. package/dist/esm/api/resources/pods/types/Name.d.mts +7 -0
  530. package/dist/esm/api/resources/pods/types/Name.mjs +4 -0
  531. package/dist/esm/api/resources/pods/types/Pod.d.mts +13 -0
  532. package/dist/esm/api/resources/pods/types/Pod.mjs +4 -0
  533. package/dist/esm/api/resources/pods/types/PodId.d.mts +7 -0
  534. package/dist/esm/api/resources/pods/types/PodId.mjs +4 -0
  535. package/dist/esm/api/resources/pods/types/index.d.mts +6 -0
  536. package/dist/esm/api/resources/pods/types/index.mjs +6 -0
  537. package/dist/esm/api/resources/threads/client/Client.d.mts +59 -0
  538. package/dist/esm/api/resources/threads/client/Client.mjs +271 -0
  539. package/dist/esm/api/resources/threads/client/index.d.mts +2 -0
  540. package/dist/esm/api/resources/threads/client/index.mjs +1 -0
  541. package/dist/esm/api/resources/threads/client/requests/ListThreadsRequest.d.mts +16 -0
  542. package/dist/esm/api/resources/threads/client/requests/ListThreadsRequest.mjs +4 -0
  543. package/dist/esm/api/resources/threads/client/requests/index.d.mts +1 -0
  544. package/dist/esm/api/resources/threads/client/requests/index.mjs +1 -0
  545. package/dist/esm/api/resources/threads/index.d.mts +2 -0
  546. package/dist/esm/api/resources/threads/index.mjs +2 -0
  547. package/dist/esm/api/resources/threads/types/ListThreadsResponse.d.mts +11 -0
  548. package/dist/esm/api/resources/threads/types/ListThreadsResponse.mjs +4 -0
  549. package/dist/esm/api/resources/threads/types/Thread.d.mts +24 -0
  550. package/dist/esm/api/resources/threads/types/Thread.mjs +4 -0
  551. package/dist/esm/api/resources/threads/types/ThreadAttachments.d.mts +8 -0
  552. package/dist/esm/api/resources/threads/types/ThreadAttachments.mjs +4 -0
  553. package/dist/esm/api/resources/threads/types/ThreadCreatedAt.d.mts +7 -0
  554. package/dist/esm/api/resources/threads/types/ThreadCreatedAt.mjs +4 -0
  555. package/dist/esm/api/resources/threads/types/ThreadId.d.mts +7 -0
  556. package/dist/esm/api/resources/threads/types/ThreadId.mjs +4 -0
  557. package/dist/esm/api/resources/threads/types/ThreadItem.d.mts +22 -0
  558. package/dist/esm/api/resources/threads/types/ThreadItem.mjs +4 -0
  559. package/dist/esm/api/resources/threads/types/ThreadLabels.d.mts +7 -0
  560. package/dist/esm/api/resources/threads/types/ThreadLabels.mjs +4 -0
  561. package/dist/esm/api/resources/threads/types/ThreadLastMessageId.d.mts +7 -0
  562. package/dist/esm/api/resources/threads/types/ThreadLastMessageId.mjs +4 -0
  563. package/dist/esm/api/resources/threads/types/ThreadMessageCount.d.mts +7 -0
  564. package/dist/esm/api/resources/threads/types/ThreadMessageCount.mjs +4 -0
  565. package/dist/esm/api/resources/threads/types/ThreadPreview.d.mts +7 -0
  566. package/dist/esm/api/resources/threads/types/ThreadPreview.mjs +4 -0
  567. package/dist/esm/api/resources/threads/types/ThreadReceivedTimestamp.d.mts +7 -0
  568. package/dist/esm/api/resources/threads/types/ThreadReceivedTimestamp.mjs +4 -0
  569. package/dist/esm/api/resources/threads/types/ThreadRecipients.d.mts +7 -0
  570. package/dist/esm/api/resources/threads/types/ThreadRecipients.mjs +4 -0
  571. package/dist/esm/api/resources/threads/types/ThreadSenders.d.mts +7 -0
  572. package/dist/esm/api/resources/threads/types/ThreadSenders.mjs +4 -0
  573. package/dist/esm/api/resources/threads/types/ThreadSentTimestamp.d.mts +7 -0
  574. package/dist/esm/api/resources/threads/types/ThreadSentTimestamp.mjs +4 -0
  575. package/dist/esm/api/resources/threads/types/ThreadSize.d.mts +7 -0
  576. package/dist/esm/api/resources/threads/types/ThreadSize.mjs +4 -0
  577. package/dist/esm/api/resources/threads/types/ThreadSubject.d.mts +7 -0
  578. package/dist/esm/api/resources/threads/types/ThreadSubject.mjs +4 -0
  579. package/dist/esm/api/resources/threads/types/ThreadTimestamp.d.mts +7 -0
  580. package/dist/esm/api/resources/threads/types/ThreadTimestamp.mjs +4 -0
  581. package/dist/esm/api/resources/threads/types/ThreadUpdatedAt.d.mts +7 -0
  582. package/dist/esm/api/resources/threads/types/ThreadUpdatedAt.mjs +4 -0
  583. package/dist/esm/api/resources/threads/types/index.d.mts +18 -0
  584. package/dist/esm/api/resources/threads/types/index.mjs +18 -0
  585. package/dist/esm/api/resources/webhooks/client/Client.d.mts +79 -0
  586. package/dist/esm/api/resources/webhooks/client/Client.mjs +330 -0
  587. package/dist/esm/api/resources/webhooks/client/index.d.mts +2 -0
  588. package/dist/esm/api/resources/webhooks/client/index.mjs +1 -0
  589. package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksRequest.d.mts +12 -0
  590. package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksRequest.mjs +4 -0
  591. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -0
  592. package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
  593. package/dist/esm/api/resources/webhooks/index.d.mts +3 -0
  594. package/dist/esm/api/resources/webhooks/index.mjs +3 -0
  595. package/dist/esm/api/resources/webhooks/resources/events/index.d.mts +1 -0
  596. package/dist/esm/api/resources/webhooks/resources/events/index.mjs +1 -0
  597. package/dist/esm/api/resources/webhooks/resources/events/types/SvixId.d.mts +7 -0
  598. package/dist/esm/api/resources/webhooks/resources/events/types/SvixId.mjs +4 -0
  599. package/dist/esm/api/resources/webhooks/resources/events/types/SvixSignature.d.mts +7 -0
  600. package/dist/esm/api/resources/webhooks/resources/events/types/SvixSignature.mjs +4 -0
  601. package/dist/esm/api/resources/webhooks/resources/events/types/SvixTimestamp.d.mts +7 -0
  602. package/dist/esm/api/resources/webhooks/resources/events/types/SvixTimestamp.mjs +4 -0
  603. package/dist/esm/api/resources/webhooks/resources/events/types/index.d.mts +3 -0
  604. package/dist/esm/api/resources/webhooks/resources/events/types/index.mjs +3 -0
  605. package/dist/esm/api/resources/webhooks/resources/index.d.mts +2 -0
  606. package/dist/esm/api/resources/webhooks/resources/index.mjs +2 -0
  607. package/dist/esm/api/resources/webhooks/types/ClientId.d.mts +7 -0
  608. package/dist/esm/api/resources/webhooks/types/ClientId.mjs +4 -0
  609. package/dist/esm/api/resources/webhooks/types/CreateWebhookRequest.d.mts +10 -0
  610. package/dist/esm/api/resources/webhooks/types/CreateWebhookRequest.mjs +4 -0
  611. package/dist/esm/api/resources/webhooks/types/EventType.d.mts +12 -0
  612. package/dist/esm/api/resources/webhooks/types/EventType.mjs +11 -0
  613. package/dist/esm/api/resources/webhooks/types/EventTypes.d.mts +8 -0
  614. package/dist/esm/api/resources/webhooks/types/EventTypes.mjs +4 -0
  615. package/dist/esm/api/resources/webhooks/types/InboxIds.d.mts +7 -0
  616. package/dist/esm/api/resources/webhooks/types/InboxIds.mjs +4 -0
  617. package/dist/esm/api/resources/webhooks/types/ListWebhooksResponse.d.mts +11 -0
  618. package/dist/esm/api/resources/webhooks/types/ListWebhooksResponse.mjs +4 -0
  619. package/dist/esm/api/resources/webhooks/types/Url.d.mts +7 -0
  620. package/dist/esm/api/resources/webhooks/types/Url.mjs +4 -0
  621. package/dist/esm/api/resources/webhooks/types/Webhook.d.mts +19 -0
  622. package/dist/esm/api/resources/webhooks/types/Webhook.mjs +4 -0
  623. package/dist/esm/api/resources/webhooks/types/WebhookId.d.mts +7 -0
  624. package/dist/esm/api/resources/webhooks/types/WebhookId.mjs +4 -0
  625. package/dist/esm/api/resources/webhooks/types/index.d.mts +9 -0
  626. package/dist/esm/api/resources/webhooks/types/index.mjs +9 -0
  627. package/dist/esm/api/resources/websockets/client/Client.d.mts +31 -0
  628. package/dist/esm/api/resources/websockets/client/Client.mjs +53 -0
  629. package/dist/esm/api/resources/websockets/client/Socket.d.mts +50 -0
  630. package/dist/esm/api/resources/websockets/client/Socket.mjs +131 -0
  631. package/dist/esm/api/resources/websockets/client/index.d.mts +1 -0
  632. package/dist/esm/api/resources/websockets/client/index.mjs +1 -0
  633. package/dist/esm/api/resources/websockets/index.d.mts +2 -0
  634. package/dist/esm/api/resources/websockets/index.mjs +2 -0
  635. package/dist/esm/api/resources/websockets/types/Subscribe.d.mts +8 -0
  636. package/dist/esm/api/resources/websockets/types/Subscribe.mjs +4 -0
  637. package/dist/esm/api/resources/websockets/types/Subscribed.d.mts +8 -0
  638. package/dist/esm/api/resources/websockets/types/Subscribed.mjs +4 -0
  639. package/dist/esm/api/resources/websockets/types/index.d.mts +2 -0
  640. package/dist/esm/api/resources/websockets/types/index.mjs +2 -0
  641. package/dist/esm/api/types/After.d.mts +7 -0
  642. package/dist/esm/api/types/After.mjs +4 -0
  643. package/dist/esm/api/types/Ascending.d.mts +7 -0
  644. package/dist/esm/api/types/Ascending.mjs +4 -0
  645. package/dist/esm/api/types/Before.d.mts +7 -0
  646. package/dist/esm/api/types/Before.mjs +4 -0
  647. package/dist/esm/api/types/Count.d.mts +7 -0
  648. package/dist/esm/api/types/Count.mjs +4 -0
  649. package/dist/esm/api/types/ErrorName.d.mts +7 -0
  650. package/dist/esm/api/types/ErrorName.mjs +4 -0
  651. package/dist/esm/api/types/ErrorResponse.d.mts +9 -0
  652. package/dist/esm/api/types/ErrorResponse.mjs +4 -0
  653. package/dist/esm/api/types/Labels.d.mts +7 -0
  654. package/dist/esm/api/types/Labels.mjs +4 -0
  655. package/dist/esm/api/types/Limit.d.mts +7 -0
  656. package/dist/esm/api/types/Limit.mjs +4 -0
  657. package/dist/esm/api/types/OrganizationId.d.mts +7 -0
  658. package/dist/esm/api/types/OrganizationId.mjs +4 -0
  659. package/dist/esm/api/types/PageToken.d.mts +7 -0
  660. package/dist/esm/api/types/PageToken.mjs +4 -0
  661. package/dist/esm/api/types/ValidationErrorResponse.d.mts +9 -0
  662. package/dist/esm/api/types/ValidationErrorResponse.mjs +4 -0
  663. package/dist/esm/api/types/index.d.mts +11 -0
  664. package/dist/esm/api/types/index.mjs +11 -0
  665. package/dist/esm/core/auth/AuthProvider.d.mts +4 -0
  666. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  667. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  668. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  669. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  670. package/dist/esm/core/auth/BasicAuth.mjs +23 -0
  671. package/dist/esm/core/auth/BearerToken.d.mts +5 -0
  672. package/dist/esm/core/auth/BearerToken.mjs +12 -0
  673. package/dist/esm/core/auth/index.d.mts +4 -0
  674. package/dist/esm/core/auth/index.mjs +2 -0
  675. package/dist/esm/core/base64.d.mts +2 -0
  676. package/dist/esm/core/base64.mjs +22 -0
  677. package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
  678. package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
  679. package/dist/esm/core/fetcher/BinaryResponse.d.mts +20 -0
  680. package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
  681. package/dist/esm/core/fetcher/Fetcher.d.mts +40 -0
  682. package/dist/esm/core/fetcher/Fetcher.mjs +116 -0
  683. package/dist/esm/core/fetcher/Headers.d.mts +2 -0
  684. package/dist/esm/core/fetcher/Headers.mjs +82 -0
  685. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
  686. package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
  687. package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
  688. package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
  689. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
  690. package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
  691. package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
  692. package/dist/esm/core/fetcher/Supplier.mjs +19 -0
  693. package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
  694. package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
  695. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
  696. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +41 -0
  697. package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
  698. package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
  699. package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
  700. package/dist/esm/core/fetcher/getHeader.mjs +8 -0
  701. package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
  702. package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
  703. package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
  704. package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
  705. package/dist/esm/core/fetcher/index.d.mts +9 -0
  706. package/dist/esm/core/fetcher/index.mjs +5 -0
  707. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
  708. package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
  709. package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
  710. package/dist/esm/core/fetcher/requestWithRetries.mjs +73 -0
  711. package/dist/esm/core/fetcher/signals.d.mts +11 -0
  712. package/dist/esm/core/fetcher/signals.mjs +32 -0
  713. package/dist/esm/core/headers.d.mts +3 -0
  714. package/dist/esm/core/headers.mjs +25 -0
  715. package/dist/esm/core/index.d.mts +9 -0
  716. package/dist/esm/core/index.mjs +9 -0
  717. package/dist/esm/core/json.d.mts +15 -0
  718. package/dist/esm/core/json.mjs +19 -0
  719. package/dist/esm/core/pagination/Page.d.mts +32 -0
  720. package/dist/esm/core/pagination/Page.mjs +96 -0
  721. package/dist/esm/core/pagination/Pageable.d.mts +14 -0
  722. package/dist/esm/core/pagination/Pageable.mjs +6 -0
  723. package/dist/esm/core/pagination/index.d.mts +2 -0
  724. package/dist/esm/core/pagination/index.mjs +2 -0
  725. package/dist/esm/core/runtime/index.d.mts +1 -0
  726. package/dist/esm/core/runtime/index.mjs +1 -0
  727. package/dist/esm/core/runtime/runtime.d.mts +9 -0
  728. package/dist/esm/core/runtime/runtime.mjs +99 -0
  729. package/dist/esm/core/schemas/Schema.d.mts +87 -0
  730. package/dist/esm/core/schemas/Schema.mjs +21 -0
  731. package/dist/esm/core/schemas/builders/bigint/bigint.d.mts +2 -0
  732. package/dist/esm/core/schemas/builders/bigint/bigint.mjs +50 -0
  733. package/dist/esm/core/schemas/builders/bigint/index.d.mts +1 -0
  734. package/dist/esm/core/schemas/builders/bigint/index.mjs +1 -0
  735. package/dist/esm/core/schemas/builders/date/date.d.mts +2 -0
  736. package/dist/esm/core/schemas/builders/date/date.mjs +59 -0
  737. package/dist/esm/core/schemas/builders/date/index.d.mts +1 -0
  738. package/dist/esm/core/schemas/builders/date/index.mjs +1 -0
  739. package/dist/esm/core/schemas/builders/enum/enum.d.mts +2 -0
  740. package/dist/esm/core/schemas/builders/enum/enum.mjs +35 -0
  741. package/dist/esm/core/schemas/builders/enum/index.d.mts +1 -0
  742. package/dist/esm/core/schemas/builders/enum/index.mjs +1 -0
  743. package/dist/esm/core/schemas/builders/index.d.mts +14 -0
  744. package/dist/esm/core/schemas/builders/index.mjs +14 -0
  745. package/dist/esm/core/schemas/builders/lazy/index.d.mts +3 -0
  746. package/dist/esm/core/schemas/builders/lazy/index.mjs +2 -0
  747. package/dist/esm/core/schemas/builders/lazy/lazy.d.mts +5 -0
  748. package/dist/esm/core/schemas/builders/lazy/lazy.mjs +19 -0
  749. package/dist/esm/core/schemas/builders/lazy/lazyObject.d.mts +3 -0
  750. package/dist/esm/core/schemas/builders/lazy/lazyObject.mjs +8 -0
  751. package/dist/esm/core/schemas/builders/list/index.d.mts +1 -0
  752. package/dist/esm/core/schemas/builders/list/index.mjs +1 -0
  753. package/dist/esm/core/schemas/builders/list/list.d.mts +2 -0
  754. package/dist/esm/core/schemas/builders/list/list.mjs +51 -0
  755. package/dist/esm/core/schemas/builders/literals/booleanLiteral.d.mts +2 -0
  756. package/dist/esm/core/schemas/builders/literals/booleanLiteral.mjs +25 -0
  757. package/dist/esm/core/schemas/builders/literals/index.d.mts +2 -0
  758. package/dist/esm/core/schemas/builders/literals/index.mjs +2 -0
  759. package/dist/esm/core/schemas/builders/literals/stringLiteral.d.mts +2 -0
  760. package/dist/esm/core/schemas/builders/literals/stringLiteral.mjs +25 -0
  761. package/dist/esm/core/schemas/builders/object/index.d.mts +6 -0
  762. package/dist/esm/core/schemas/builders/object/index.mjs +3 -0
  763. package/dist/esm/core/schemas/builders/object/object.d.mts +3 -0
  764. package/dist/esm/core/schemas/builders/object/object.mjs +257 -0
  765. package/dist/esm/core/schemas/builders/object/objectWithoutOptionalProperties.d.mts +6 -0
  766. package/dist/esm/core/schemas/builders/object/objectWithoutOptionalProperties.mjs +4 -0
  767. package/dist/esm/core/schemas/builders/object/property.d.mts +8 -0
  768. package/dist/esm/core/schemas/builders/object/property.mjs +11 -0
  769. package/dist/esm/core/schemas/builders/object/types.d.mts +31 -0
  770. package/dist/esm/core/schemas/builders/object/types.mjs +1 -0
  771. package/dist/esm/core/schemas/builders/object-like/getObjectLikeUtils.d.mts +9 -0
  772. package/dist/esm/core/schemas/builders/object-like/getObjectLikeUtils.mjs +49 -0
  773. package/dist/esm/core/schemas/builders/object-like/index.d.mts +2 -0
  774. package/dist/esm/core/schemas/builders/object-like/index.mjs +1 -0
  775. package/dist/esm/core/schemas/builders/object-like/types.d.mts +7 -0
  776. package/dist/esm/core/schemas/builders/object-like/types.mjs +1 -0
  777. package/dist/esm/core/schemas/builders/primitives/any.d.mts +1 -0
  778. package/dist/esm/core/schemas/builders/primitives/any.mjs +3 -0
  779. package/dist/esm/core/schemas/builders/primitives/boolean.d.mts +1 -0
  780. package/dist/esm/core/schemas/builders/primitives/boolean.mjs +22 -0
  781. package/dist/esm/core/schemas/builders/primitives/index.d.mts +5 -0
  782. package/dist/esm/core/schemas/builders/primitives/index.mjs +5 -0
  783. package/dist/esm/core/schemas/builders/primitives/number.d.mts +1 -0
  784. package/dist/esm/core/schemas/builders/primitives/number.mjs +22 -0
  785. package/dist/esm/core/schemas/builders/primitives/string.d.mts +1 -0
  786. package/dist/esm/core/schemas/builders/primitives/string.mjs +22 -0
  787. package/dist/esm/core/schemas/builders/primitives/unknown.d.mts +1 -0
  788. package/dist/esm/core/schemas/builders/primitives/unknown.mjs +3 -0
  789. package/dist/esm/core/schemas/builders/record/index.d.mts +2 -0
  790. package/dist/esm/core/schemas/builders/record/index.mjs +1 -0
  791. package/dist/esm/core/schemas/builders/record/record.d.mts +3 -0
  792. package/dist/esm/core/schemas/builders/record/record.mjs +90 -0
  793. package/dist/esm/core/schemas/builders/record/types.d.mts +4 -0
  794. package/dist/esm/core/schemas/builders/record/types.mjs +1 -0
  795. package/dist/esm/core/schemas/builders/schema-utils/JsonError.d.mts +5 -0
  796. package/dist/esm/core/schemas/builders/schema-utils/JsonError.mjs +8 -0
  797. package/dist/esm/core/schemas/builders/schema-utils/ParseError.d.mts +5 -0
  798. package/dist/esm/core/schemas/builders/schema-utils/ParseError.mjs +8 -0
  799. package/dist/esm/core/schemas/builders/schema-utils/getSchemaUtils.d.mts +21 -0
  800. package/dist/esm/core/schemas/builders/schema-utils/getSchemaUtils.mjs +138 -0
  801. package/dist/esm/core/schemas/builders/schema-utils/index.d.mts +4 -0
  802. package/dist/esm/core/schemas/builders/schema-utils/index.mjs +3 -0
  803. package/dist/esm/core/schemas/builders/schema-utils/stringifyValidationErrors.d.mts +2 -0
  804. package/dist/esm/core/schemas/builders/schema-utils/stringifyValidationErrors.mjs +6 -0
  805. package/dist/esm/core/schemas/builders/set/index.d.mts +1 -0
  806. package/dist/esm/core/schemas/builders/set/index.mjs +1 -0
  807. package/dist/esm/core/schemas/builders/set/set.d.mts +2 -0
  808. package/dist/esm/core/schemas/builders/set/set.mjs +40 -0
  809. package/dist/esm/core/schemas/builders/undiscriminated-union/index.d.mts +2 -0
  810. package/dist/esm/core/schemas/builders/undiscriminated-union/index.mjs +1 -0
  811. package/dist/esm/core/schemas/builders/undiscriminated-union/types.d.mts +4 -0
  812. package/dist/esm/core/schemas/builders/undiscriminated-union/types.mjs +1 -0
  813. package/dist/esm/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.mts +3 -0
  814. package/dist/esm/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.mjs +36 -0
  815. package/dist/esm/core/schemas/builders/union/discriminant.d.mts +5 -0
  816. package/dist/esm/core/schemas/builders/union/discriminant.mjs +6 -0
  817. package/dist/esm/core/schemas/builders/union/index.d.mts +4 -0
  818. package/dist/esm/core/schemas/builders/union/index.mjs +2 -0
  819. package/dist/esm/core/schemas/builders/union/types.d.mts +13 -0
  820. package/dist/esm/core/schemas/builders/union/types.mjs +1 -0
  821. package/dist/esm/core/schemas/builders/union/union.d.mts +4 -0
  822. package/dist/esm/core/schemas/builders/union/union.mjs +126 -0
  823. package/dist/esm/core/schemas/index.d.mts +2 -0
  824. package/dist/esm/core/schemas/index.mjs +1 -0
  825. package/dist/esm/core/schemas/utils/MaybePromise.d.mts +1 -0
  826. package/dist/esm/core/schemas/utils/MaybePromise.mjs +1 -0
  827. package/dist/esm/core/schemas/utils/addQuestionMarksToNullableProperties.d.mts +7 -0
  828. package/dist/esm/core/schemas/utils/addQuestionMarksToNullableProperties.mjs +1 -0
  829. package/dist/esm/core/schemas/utils/createIdentitySchemaCreator.d.mts +2 -0
  830. package/dist/esm/core/schemas/utils/createIdentitySchemaCreator.mjs +12 -0
  831. package/dist/esm/core/schemas/utils/entries.d.mts +1 -0
  832. package/dist/esm/core/schemas/utils/entries.mjs +3 -0
  833. package/dist/esm/core/schemas/utils/filterObject.d.mts +1 -0
  834. package/dist/esm/core/schemas/utils/filterObject.mjs +10 -0
  835. package/dist/esm/core/schemas/utils/getErrorMessageForIncorrectType.d.mts +1 -0
  836. package/dist/esm/core/schemas/utils/getErrorMessageForIncorrectType.mjs +24 -0
  837. package/dist/esm/core/schemas/utils/isPlainObject.d.mts +1 -0
  838. package/dist/esm/core/schemas/utils/isPlainObject.mjs +14 -0
  839. package/dist/esm/core/schemas/utils/keys.d.mts +1 -0
  840. package/dist/esm/core/schemas/utils/keys.mjs +3 -0
  841. package/dist/esm/core/schemas/utils/maybeSkipValidation.d.mts +2 -0
  842. package/dist/esm/core/schemas/utils/maybeSkipValidation.mjs +24 -0
  843. package/dist/esm/core/schemas/utils/partition.d.mts +1 -0
  844. package/dist/esm/core/schemas/utils/partition.mjs +12 -0
  845. package/dist/esm/core/url/index.d.mts +2 -0
  846. package/dist/esm/core/url/index.mjs +2 -0
  847. package/dist/esm/core/url/join.d.mts +1 -0
  848. package/dist/esm/core/url/join.mjs +66 -0
  849. package/dist/esm/core/url/qs.d.mts +6 -0
  850. package/dist/esm/core/url/qs.mjs +61 -0
  851. package/dist/esm/core/utils/index.d.mts +1 -0
  852. package/dist/esm/core/utils/index.mjs +1 -0
  853. package/dist/esm/core/utils/setObjectProperty.d.mts +11 -0
  854. package/dist/esm/core/utils/setObjectProperty.mjs +39 -0
  855. package/dist/esm/core/websocket/events.d.mts +36 -0
  856. package/dist/esm/core/websocket/events.mjs +21 -0
  857. package/dist/esm/core/websocket/index.d.mts +1 -0
  858. package/dist/esm/core/websocket/index.mjs +1 -0
  859. package/dist/esm/core/websocket/ws.d.mts +147 -0
  860. package/dist/esm/core/websocket/ws.mjs +423 -0
  861. package/dist/esm/environments.d.mts +18 -0
  862. package/dist/esm/environments.mjs +13 -0
  863. package/dist/esm/errors/AgentMailError.d.mts +15 -0
  864. package/dist/esm/errors/AgentMailError.mjs +26 -0
  865. package/dist/esm/errors/AgentMailTimeoutError.d.mts +6 -0
  866. package/dist/esm/errors/AgentMailTimeoutError.mjs +9 -0
  867. package/dist/esm/errors/index.d.mts +2 -0
  868. package/dist/esm/errors/index.mjs +2 -0
  869. package/dist/esm/index.d.mts +5 -0
  870. package/dist/esm/index.mjs +5 -0
  871. package/dist/esm/serialization/index.d.mts +2 -0
  872. package/dist/esm/serialization/index.mjs +2 -0
  873. package/dist/esm/serialization/resources/apiKeys/index.d.mts +1 -0
  874. package/dist/esm/serialization/resources/apiKeys/index.mjs +1 -0
  875. package/dist/esm/serialization/resources/apiKeys/types/ApiKey.d.mts +20 -0
  876. package/dist/esm/serialization/resources/apiKeys/types/ApiKey.mjs +15 -0
  877. package/dist/esm/serialization/resources/apiKeys/types/ApiKeyId.d.mts +10 -0
  878. package/dist/esm/serialization/resources/apiKeys/types/ApiKeyId.mjs +5 -0
  879. package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyRequest.d.mts +13 -0
  880. package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyRequest.mjs +8 -0
  881. package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyResponse.d.mts +20 -0
  882. package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyResponse.mjs +15 -0
  883. package/dist/esm/serialization/resources/apiKeys/types/CreatedAt.d.mts +10 -0
  884. package/dist/esm/serialization/resources/apiKeys/types/CreatedAt.mjs +5 -0
  885. package/dist/esm/serialization/resources/apiKeys/types/ListApiKeysResponse.d.mts +17 -0
  886. package/dist/esm/serialization/resources/apiKeys/types/ListApiKeysResponse.mjs +12 -0
  887. package/dist/esm/serialization/resources/apiKeys/types/Name.d.mts +10 -0
  888. package/dist/esm/serialization/resources/apiKeys/types/Name.mjs +5 -0
  889. package/dist/esm/serialization/resources/apiKeys/types/Prefix.d.mts +10 -0
  890. package/dist/esm/serialization/resources/apiKeys/types/Prefix.mjs +5 -0
  891. package/dist/esm/serialization/resources/apiKeys/types/index.d.mts +8 -0
  892. package/dist/esm/serialization/resources/apiKeys/types/index.mjs +8 -0
  893. package/dist/esm/serialization/resources/attachments/index.d.mts +1 -0
  894. package/dist/esm/serialization/resources/attachments/index.mjs +1 -0
  895. package/dist/esm/serialization/resources/attachments/types/Attachment.d.mts +21 -0
  896. package/dist/esm/serialization/resources/attachments/types/Attachment.mjs +16 -0
  897. package/dist/esm/serialization/resources/attachments/types/AttachmentContent.d.mts +10 -0
  898. package/dist/esm/serialization/resources/attachments/types/AttachmentContent.mjs +5 -0
  899. package/dist/esm/serialization/resources/attachments/types/AttachmentContentType.d.mts +10 -0
  900. package/dist/esm/serialization/resources/attachments/types/AttachmentContentType.mjs +5 -0
  901. package/dist/esm/serialization/resources/attachments/types/AttachmentFilename.d.mts +10 -0
  902. package/dist/esm/serialization/resources/attachments/types/AttachmentFilename.mjs +5 -0
  903. package/dist/esm/serialization/resources/attachments/types/AttachmentId.d.mts +10 -0
  904. package/dist/esm/serialization/resources/attachments/types/AttachmentId.mjs +5 -0
  905. package/dist/esm/serialization/resources/attachments/types/AttachmentInline.d.mts +10 -0
  906. package/dist/esm/serialization/resources/attachments/types/AttachmentInline.mjs +5 -0
  907. package/dist/esm/serialization/resources/attachments/types/AttachmentSize.d.mts +10 -0
  908. package/dist/esm/serialization/resources/attachments/types/AttachmentSize.mjs +5 -0
  909. package/dist/esm/serialization/resources/attachments/types/SendAttachment.d.mts +17 -0
  910. package/dist/esm/serialization/resources/attachments/types/SendAttachment.mjs +12 -0
  911. package/dist/esm/serialization/resources/attachments/types/index.d.mts +8 -0
  912. package/dist/esm/serialization/resources/attachments/types/index.mjs +8 -0
  913. package/dist/esm/serialization/resources/domains/index.d.mts +1 -0
  914. package/dist/esm/serialization/resources/domains/index.mjs +1 -0
  915. package/dist/esm/serialization/resources/domains/types/ClientId.d.mts +10 -0
  916. package/dist/esm/serialization/resources/domains/types/ClientId.mjs +5 -0
  917. package/dist/esm/serialization/resources/domains/types/CreateDomainRequest.d.mts +15 -0
  918. package/dist/esm/serialization/resources/domains/types/CreateDomainRequest.mjs +10 -0
  919. package/dist/esm/serialization/resources/domains/types/Domain.d.mts +25 -0
  920. package/dist/esm/serialization/resources/domains/types/Domain.mjs +20 -0
  921. package/dist/esm/serialization/resources/domains/types/DomainId.d.mts +10 -0
  922. package/dist/esm/serialization/resources/domains/types/DomainId.mjs +5 -0
  923. package/dist/esm/serialization/resources/domains/types/DomainName.d.mts +10 -0
  924. package/dist/esm/serialization/resources/domains/types/DomainName.mjs +5 -0
  925. package/dist/esm/serialization/resources/domains/types/DomainSummary.d.mts +19 -0
  926. package/dist/esm/serialization/resources/domains/types/DomainSummary.mjs +14 -0
  927. package/dist/esm/serialization/resources/domains/types/FeedbackEnabled.d.mts +10 -0
  928. package/dist/esm/serialization/resources/domains/types/FeedbackEnabled.mjs +5 -0
  929. package/dist/esm/serialization/resources/domains/types/ListDomainsResponse.d.mts +17 -0
  930. package/dist/esm/serialization/resources/domains/types/ListDomainsResponse.mjs +12 -0
  931. package/dist/esm/serialization/resources/domains/types/RecordStatus.d.mts +10 -0
  932. package/dist/esm/serialization/resources/domains/types/RecordStatus.mjs +5 -0
  933. package/dist/esm/serialization/resources/domains/types/RecordType.d.mts +10 -0
  934. package/dist/esm/serialization/resources/domains/types/RecordType.mjs +5 -0
  935. package/dist/esm/serialization/resources/domains/types/VerificationRecord.d.mts +18 -0
  936. package/dist/esm/serialization/resources/domains/types/VerificationRecord.mjs +13 -0
  937. package/dist/esm/serialization/resources/domains/types/VerificationStatus.d.mts +10 -0
  938. package/dist/esm/serialization/resources/domains/types/VerificationStatus.mjs +5 -0
  939. package/dist/esm/serialization/resources/domains/types/index.d.mts +12 -0
  940. package/dist/esm/serialization/resources/domains/types/index.mjs +12 -0
  941. package/dist/esm/serialization/resources/drafts/index.d.mts +1 -0
  942. package/dist/esm/serialization/resources/drafts/index.mjs +1 -0
  943. package/dist/esm/serialization/resources/drafts/types/CreateDraftRequest.d.mts +31 -0
  944. package/dist/esm/serialization/resources/drafts/types/CreateDraftRequest.mjs +26 -0
  945. package/dist/esm/serialization/resources/drafts/types/Draft.d.mts +47 -0
  946. package/dist/esm/serialization/resources/drafts/types/Draft.mjs +42 -0
  947. package/dist/esm/serialization/resources/drafts/types/DraftAttachments.d.mts +11 -0
  948. package/dist/esm/serialization/resources/drafts/types/DraftAttachments.mjs +6 -0
  949. package/dist/esm/serialization/resources/drafts/types/DraftBcc.d.mts +10 -0
  950. package/dist/esm/serialization/resources/drafts/types/DraftBcc.mjs +5 -0
  951. package/dist/esm/serialization/resources/drafts/types/DraftCc.d.mts +10 -0
  952. package/dist/esm/serialization/resources/drafts/types/DraftCc.mjs +5 -0
  953. package/dist/esm/serialization/resources/drafts/types/DraftHtml.d.mts +10 -0
  954. package/dist/esm/serialization/resources/drafts/types/DraftHtml.mjs +5 -0
  955. package/dist/esm/serialization/resources/drafts/types/DraftId.d.mts +10 -0
  956. package/dist/esm/serialization/resources/drafts/types/DraftId.mjs +5 -0
  957. package/dist/esm/serialization/resources/drafts/types/DraftInReplyTo.d.mts +10 -0
  958. package/dist/esm/serialization/resources/drafts/types/DraftInReplyTo.mjs +5 -0
  959. package/dist/esm/serialization/resources/drafts/types/DraftItem.d.mts +37 -0
  960. package/dist/esm/serialization/resources/drafts/types/DraftItem.mjs +32 -0
  961. package/dist/esm/serialization/resources/drafts/types/DraftLabels.d.mts +10 -0
  962. package/dist/esm/serialization/resources/drafts/types/DraftLabels.mjs +5 -0
  963. package/dist/esm/serialization/resources/drafts/types/DraftPreview.d.mts +10 -0
  964. package/dist/esm/serialization/resources/drafts/types/DraftPreview.mjs +5 -0
  965. package/dist/esm/serialization/resources/drafts/types/DraftReplyTo.d.mts +10 -0
  966. package/dist/esm/serialization/resources/drafts/types/DraftReplyTo.mjs +5 -0
  967. package/dist/esm/serialization/resources/drafts/types/DraftSendAt.d.mts +10 -0
  968. package/dist/esm/serialization/resources/drafts/types/DraftSendAt.mjs +5 -0
  969. package/dist/esm/serialization/resources/drafts/types/DraftSendStatus.d.mts +10 -0
  970. package/dist/esm/serialization/resources/drafts/types/DraftSendStatus.mjs +5 -0
  971. package/dist/esm/serialization/resources/drafts/types/DraftSubject.d.mts +10 -0
  972. package/dist/esm/serialization/resources/drafts/types/DraftSubject.mjs +5 -0
  973. package/dist/esm/serialization/resources/drafts/types/DraftText.d.mts +10 -0
  974. package/dist/esm/serialization/resources/drafts/types/DraftText.mjs +5 -0
  975. package/dist/esm/serialization/resources/drafts/types/DraftTo.d.mts +10 -0
  976. package/dist/esm/serialization/resources/drafts/types/DraftTo.mjs +5 -0
  977. package/dist/esm/serialization/resources/drafts/types/DraftUpdatedAt.d.mts +10 -0
  978. package/dist/esm/serialization/resources/drafts/types/DraftUpdatedAt.mjs +5 -0
  979. package/dist/esm/serialization/resources/drafts/types/ListDraftsResponse.d.mts +19 -0
  980. package/dist/esm/serialization/resources/drafts/types/ListDraftsResponse.mjs +14 -0
  981. package/dist/esm/serialization/resources/drafts/types/index.d.mts +19 -0
  982. package/dist/esm/serialization/resources/drafts/types/index.mjs +19 -0
  983. package/dist/esm/serialization/resources/events/index.d.mts +1 -0
  984. package/dist/esm/serialization/resources/events/index.mjs +1 -0
  985. package/dist/esm/serialization/resources/events/types/Bounce.d.mts +21 -0
  986. package/dist/esm/serialization/resources/events/types/Bounce.mjs +16 -0
  987. package/dist/esm/serialization/resources/events/types/Complaint.d.mts +20 -0
  988. package/dist/esm/serialization/resources/events/types/Complaint.mjs +15 -0
  989. package/dist/esm/serialization/resources/events/types/Delivery.d.mts +18 -0
  990. package/dist/esm/serialization/resources/events/types/Delivery.mjs +13 -0
  991. package/dist/esm/serialization/resources/events/types/EventId.d.mts +10 -0
  992. package/dist/esm/serialization/resources/events/types/EventId.mjs +5 -0
  993. package/dist/esm/serialization/resources/events/types/MessageBouncedEvent.d.mts +17 -0
  994. package/dist/esm/serialization/resources/events/types/MessageBouncedEvent.mjs +12 -0
  995. package/dist/esm/serialization/resources/events/types/MessageComplainedEvent.d.mts +17 -0
  996. package/dist/esm/serialization/resources/events/types/MessageComplainedEvent.mjs +12 -0
  997. package/dist/esm/serialization/resources/events/types/MessageDeliveredEvent.d.mts +17 -0
  998. package/dist/esm/serialization/resources/events/types/MessageDeliveredEvent.mjs +12 -0
  999. package/dist/esm/serialization/resources/events/types/MessageReceivedEvent.d.mts +17 -0
  1000. package/dist/esm/serialization/resources/events/types/MessageReceivedEvent.mjs +12 -0
  1001. package/dist/esm/serialization/resources/events/types/MessageRejectedEvent.d.mts +17 -0
  1002. package/dist/esm/serialization/resources/events/types/MessageRejectedEvent.mjs +12 -0
  1003. package/dist/esm/serialization/resources/events/types/MessageSentEvent.d.mts +17 -0
  1004. package/dist/esm/serialization/resources/events/types/MessageSentEvent.mjs +12 -0
  1005. package/dist/esm/serialization/resources/events/types/Recipient.d.mts +13 -0
  1006. package/dist/esm/serialization/resources/events/types/Recipient.mjs +8 -0
  1007. package/dist/esm/serialization/resources/events/types/Reject.d.mts +18 -0
  1008. package/dist/esm/serialization/resources/events/types/Reject.mjs +13 -0
  1009. package/dist/esm/serialization/resources/events/types/Send.d.mts +18 -0
  1010. package/dist/esm/serialization/resources/events/types/Send.mjs +13 -0
  1011. package/dist/esm/serialization/resources/events/types/Timestamp.d.mts +10 -0
  1012. package/dist/esm/serialization/resources/events/types/Timestamp.mjs +5 -0
  1013. package/dist/esm/serialization/resources/events/types/index.d.mts +14 -0
  1014. package/dist/esm/serialization/resources/events/types/index.mjs +14 -0
  1015. package/dist/esm/serialization/resources/inboxes/index.d.mts +1 -0
  1016. package/dist/esm/serialization/resources/inboxes/index.mjs +1 -0
  1017. package/dist/esm/serialization/resources/inboxes/types/ClientId.d.mts +10 -0
  1018. package/dist/esm/serialization/resources/inboxes/types/ClientId.mjs +5 -0
  1019. package/dist/esm/serialization/resources/inboxes/types/CreateInboxRequest.d.mts +17 -0
  1020. package/dist/esm/serialization/resources/inboxes/types/CreateInboxRequest.mjs +12 -0
  1021. package/dist/esm/serialization/resources/inboxes/types/DisplayName.d.mts +10 -0
  1022. package/dist/esm/serialization/resources/inboxes/types/DisplayName.mjs +5 -0
  1023. package/dist/esm/serialization/resources/inboxes/types/Inbox.d.mts +19 -0
  1024. package/dist/esm/serialization/resources/inboxes/types/Inbox.mjs +14 -0
  1025. package/dist/esm/serialization/resources/inboxes/types/InboxId.d.mts +10 -0
  1026. package/dist/esm/serialization/resources/inboxes/types/InboxId.mjs +5 -0
  1027. package/dist/esm/serialization/resources/inboxes/types/ListInboxesResponse.d.mts +19 -0
  1028. package/dist/esm/serialization/resources/inboxes/types/ListInboxesResponse.mjs +14 -0
  1029. package/dist/esm/serialization/resources/inboxes/types/index.d.mts +6 -0
  1030. package/dist/esm/serialization/resources/inboxes/types/index.mjs +6 -0
  1031. package/dist/esm/serialization/resources/index.d.mts +22 -0
  1032. package/dist/esm/serialization/resources/index.mjs +22 -0
  1033. package/dist/esm/serialization/resources/messages/index.d.mts +1 -0
  1034. package/dist/esm/serialization/resources/messages/index.mjs +1 -0
  1035. package/dist/esm/serialization/resources/messages/types/Addresses.d.mts +10 -0
  1036. package/dist/esm/serialization/resources/messages/types/Addresses.mjs +8 -0
  1037. package/dist/esm/serialization/resources/messages/types/ListMessagesResponse.d.mts +19 -0
  1038. package/dist/esm/serialization/resources/messages/types/ListMessagesResponse.mjs +14 -0
  1039. package/dist/esm/serialization/resources/messages/types/Message.d.mts +50 -0
  1040. package/dist/esm/serialization/resources/messages/types/Message.mjs +45 -0
  1041. package/dist/esm/serialization/resources/messages/types/MessageAttachments.d.mts +11 -0
  1042. package/dist/esm/serialization/resources/messages/types/MessageAttachments.mjs +6 -0
  1043. package/dist/esm/serialization/resources/messages/types/MessageBcc.d.mts +10 -0
  1044. package/dist/esm/serialization/resources/messages/types/MessageBcc.mjs +5 -0
  1045. package/dist/esm/serialization/resources/messages/types/MessageCc.d.mts +10 -0
  1046. package/dist/esm/serialization/resources/messages/types/MessageCc.mjs +5 -0
  1047. package/dist/esm/serialization/resources/messages/types/MessageCreatedAt.d.mts +10 -0
  1048. package/dist/esm/serialization/resources/messages/types/MessageCreatedAt.mjs +5 -0
  1049. package/dist/esm/serialization/resources/messages/types/MessageFrom.d.mts +10 -0
  1050. package/dist/esm/serialization/resources/messages/types/MessageFrom.mjs +5 -0
  1051. package/dist/esm/serialization/resources/messages/types/MessageHtml.d.mts +10 -0
  1052. package/dist/esm/serialization/resources/messages/types/MessageHtml.mjs +5 -0
  1053. package/dist/esm/serialization/resources/messages/types/MessageId.d.mts +10 -0
  1054. package/dist/esm/serialization/resources/messages/types/MessageId.mjs +5 -0
  1055. package/dist/esm/serialization/resources/messages/types/MessageInReplyTo.d.mts +10 -0
  1056. package/dist/esm/serialization/resources/messages/types/MessageInReplyTo.mjs +5 -0
  1057. package/dist/esm/serialization/resources/messages/types/MessageItem.d.mts +45 -0
  1058. package/dist/esm/serialization/resources/messages/types/MessageItem.mjs +40 -0
  1059. package/dist/esm/serialization/resources/messages/types/MessageLabels.d.mts +10 -0
  1060. package/dist/esm/serialization/resources/messages/types/MessageLabels.mjs +5 -0
  1061. package/dist/esm/serialization/resources/messages/types/MessagePreview.d.mts +10 -0
  1062. package/dist/esm/serialization/resources/messages/types/MessagePreview.mjs +5 -0
  1063. package/dist/esm/serialization/resources/messages/types/MessageReferences.d.mts +10 -0
  1064. package/dist/esm/serialization/resources/messages/types/MessageReferences.mjs +5 -0
  1065. package/dist/esm/serialization/resources/messages/types/MessageReplyTo.d.mts +10 -0
  1066. package/dist/esm/serialization/resources/messages/types/MessageReplyTo.mjs +5 -0
  1067. package/dist/esm/serialization/resources/messages/types/MessageSize.d.mts +10 -0
  1068. package/dist/esm/serialization/resources/messages/types/MessageSize.mjs +5 -0
  1069. package/dist/esm/serialization/resources/messages/types/MessageSubject.d.mts +10 -0
  1070. package/dist/esm/serialization/resources/messages/types/MessageSubject.mjs +5 -0
  1071. package/dist/esm/serialization/resources/messages/types/MessageText.d.mts +10 -0
  1072. package/dist/esm/serialization/resources/messages/types/MessageText.mjs +5 -0
  1073. package/dist/esm/serialization/resources/messages/types/MessageTimestamp.d.mts +10 -0
  1074. package/dist/esm/serialization/resources/messages/types/MessageTimestamp.mjs +5 -0
  1075. package/dist/esm/serialization/resources/messages/types/MessageTo.d.mts +10 -0
  1076. package/dist/esm/serialization/resources/messages/types/MessageTo.mjs +5 -0
  1077. package/dist/esm/serialization/resources/messages/types/MessageUpdatedAt.d.mts +10 -0
  1078. package/dist/esm/serialization/resources/messages/types/MessageUpdatedAt.mjs +5 -0
  1079. package/dist/esm/serialization/resources/messages/types/ReplyToMessageRequest.d.mts +27 -0
  1080. package/dist/esm/serialization/resources/messages/types/ReplyToMessageRequest.mjs +22 -0
  1081. package/dist/esm/serialization/resources/messages/types/SendMessageAttachments.d.mts +11 -0
  1082. package/dist/esm/serialization/resources/messages/types/SendMessageAttachments.mjs +6 -0
  1083. package/dist/esm/serialization/resources/messages/types/SendMessageBcc.d.mts +11 -0
  1084. package/dist/esm/serialization/resources/messages/types/SendMessageBcc.mjs +5 -0
  1085. package/dist/esm/serialization/resources/messages/types/SendMessageCc.d.mts +11 -0
  1086. package/dist/esm/serialization/resources/messages/types/SendMessageCc.mjs +5 -0
  1087. package/dist/esm/serialization/resources/messages/types/SendMessageReplyTo.d.mts +11 -0
  1088. package/dist/esm/serialization/resources/messages/types/SendMessageReplyTo.mjs +5 -0
  1089. package/dist/esm/serialization/resources/messages/types/SendMessageRequest.d.mts +29 -0
  1090. package/dist/esm/serialization/resources/messages/types/SendMessageRequest.mjs +24 -0
  1091. package/dist/esm/serialization/resources/messages/types/SendMessageResponse.d.mts +15 -0
  1092. package/dist/esm/serialization/resources/messages/types/SendMessageResponse.mjs +10 -0
  1093. package/dist/esm/serialization/resources/messages/types/SendMessageTo.d.mts +11 -0
  1094. package/dist/esm/serialization/resources/messages/types/SendMessageTo.mjs +5 -0
  1095. package/dist/esm/serialization/resources/messages/types/UpdateMessageRequest.d.mts +13 -0
  1096. package/dist/esm/serialization/resources/messages/types/UpdateMessageRequest.mjs +8 -0
  1097. package/dist/esm/serialization/resources/messages/types/index.d.mts +31 -0
  1098. package/dist/esm/serialization/resources/messages/types/index.mjs +31 -0
  1099. package/dist/esm/serialization/resources/metrics/index.d.mts +1 -0
  1100. package/dist/esm/serialization/resources/metrics/index.mjs +1 -0
  1101. package/dist/esm/serialization/resources/metrics/types/ListMetricsResponse.d.mts +13 -0
  1102. package/dist/esm/serialization/resources/metrics/types/ListMetricsResponse.mjs +8 -0
  1103. package/dist/esm/serialization/resources/metrics/types/MessageMetrics.d.mts +19 -0
  1104. package/dist/esm/serialization/resources/metrics/types/MessageMetrics.mjs +14 -0
  1105. package/dist/esm/serialization/resources/metrics/types/MetricEndTimestamp.d.mts +10 -0
  1106. package/dist/esm/serialization/resources/metrics/types/MetricEndTimestamp.mjs +5 -0
  1107. package/dist/esm/serialization/resources/metrics/types/MetricEventType.d.mts +10 -0
  1108. package/dist/esm/serialization/resources/metrics/types/MetricEventType.mjs +13 -0
  1109. package/dist/esm/serialization/resources/metrics/types/MetricEventTypes.d.mts +11 -0
  1110. package/dist/esm/serialization/resources/metrics/types/MetricEventTypes.mjs +6 -0
  1111. package/dist/esm/serialization/resources/metrics/types/MetricStartTimestamp.d.mts +10 -0
  1112. package/dist/esm/serialization/resources/metrics/types/MetricStartTimestamp.mjs +5 -0
  1113. package/dist/esm/serialization/resources/metrics/types/MetricTimestamp.d.mts +10 -0
  1114. package/dist/esm/serialization/resources/metrics/types/MetricTimestamp.mjs +5 -0
  1115. package/dist/esm/serialization/resources/metrics/types/index.d.mts +7 -0
  1116. package/dist/esm/serialization/resources/metrics/types/index.mjs +7 -0
  1117. package/dist/esm/serialization/resources/pods/index.d.mts +1 -0
  1118. package/dist/esm/serialization/resources/pods/index.mjs +1 -0
  1119. package/dist/esm/serialization/resources/pods/types/ClientId.d.mts +10 -0
  1120. package/dist/esm/serialization/resources/pods/types/ClientId.mjs +5 -0
  1121. package/dist/esm/serialization/resources/pods/types/CreatePodRequest.d.mts +15 -0
  1122. package/dist/esm/serialization/resources/pods/types/CreatePodRequest.mjs +10 -0
  1123. package/dist/esm/serialization/resources/pods/types/ListPodsResponse.d.mts +19 -0
  1124. package/dist/esm/serialization/resources/pods/types/ListPodsResponse.mjs +14 -0
  1125. package/dist/esm/serialization/resources/pods/types/Name.d.mts +10 -0
  1126. package/dist/esm/serialization/resources/pods/types/Name.mjs +5 -0
  1127. package/dist/esm/serialization/resources/pods/types/Pod.d.mts +19 -0
  1128. package/dist/esm/serialization/resources/pods/types/Pod.mjs +14 -0
  1129. package/dist/esm/serialization/resources/pods/types/PodId.d.mts +10 -0
  1130. package/dist/esm/serialization/resources/pods/types/PodId.mjs +5 -0
  1131. package/dist/esm/serialization/resources/pods/types/index.d.mts +6 -0
  1132. package/dist/esm/serialization/resources/pods/types/index.mjs +6 -0
  1133. package/dist/esm/serialization/resources/threads/index.d.mts +1 -0
  1134. package/dist/esm/serialization/resources/threads/index.mjs +1 -0
  1135. package/dist/esm/serialization/resources/threads/types/ListThreadsResponse.d.mts +19 -0
  1136. package/dist/esm/serialization/resources/threads/types/ListThreadsResponse.mjs +14 -0
  1137. package/dist/esm/serialization/resources/threads/types/Thread.d.mts +45 -0
  1138. package/dist/esm/serialization/resources/threads/types/Thread.mjs +40 -0
  1139. package/dist/esm/serialization/resources/threads/types/ThreadAttachments.d.mts +11 -0
  1140. package/dist/esm/serialization/resources/threads/types/ThreadAttachments.mjs +6 -0
  1141. package/dist/esm/serialization/resources/threads/types/ThreadCreatedAt.d.mts +10 -0
  1142. package/dist/esm/serialization/resources/threads/types/ThreadCreatedAt.mjs +5 -0
  1143. package/dist/esm/serialization/resources/threads/types/ThreadId.d.mts +10 -0
  1144. package/dist/esm/serialization/resources/threads/types/ThreadId.mjs +5 -0
  1145. package/dist/esm/serialization/resources/threads/types/ThreadItem.d.mts +43 -0
  1146. package/dist/esm/serialization/resources/threads/types/ThreadItem.mjs +38 -0
  1147. package/dist/esm/serialization/resources/threads/types/ThreadLabels.d.mts +10 -0
  1148. package/dist/esm/serialization/resources/threads/types/ThreadLabels.mjs +5 -0
  1149. package/dist/esm/serialization/resources/threads/types/ThreadLastMessageId.d.mts +10 -0
  1150. package/dist/esm/serialization/resources/threads/types/ThreadLastMessageId.mjs +5 -0
  1151. package/dist/esm/serialization/resources/threads/types/ThreadMessageCount.d.mts +10 -0
  1152. package/dist/esm/serialization/resources/threads/types/ThreadMessageCount.mjs +5 -0
  1153. package/dist/esm/serialization/resources/threads/types/ThreadPreview.d.mts +10 -0
  1154. package/dist/esm/serialization/resources/threads/types/ThreadPreview.mjs +5 -0
  1155. package/dist/esm/serialization/resources/threads/types/ThreadReceivedTimestamp.d.mts +10 -0
  1156. package/dist/esm/serialization/resources/threads/types/ThreadReceivedTimestamp.mjs +5 -0
  1157. package/dist/esm/serialization/resources/threads/types/ThreadRecipients.d.mts +10 -0
  1158. package/dist/esm/serialization/resources/threads/types/ThreadRecipients.mjs +5 -0
  1159. package/dist/esm/serialization/resources/threads/types/ThreadSenders.d.mts +10 -0
  1160. package/dist/esm/serialization/resources/threads/types/ThreadSenders.mjs +5 -0
  1161. package/dist/esm/serialization/resources/threads/types/ThreadSentTimestamp.d.mts +10 -0
  1162. package/dist/esm/serialization/resources/threads/types/ThreadSentTimestamp.mjs +5 -0
  1163. package/dist/esm/serialization/resources/threads/types/ThreadSize.d.mts +10 -0
  1164. package/dist/esm/serialization/resources/threads/types/ThreadSize.mjs +5 -0
  1165. package/dist/esm/serialization/resources/threads/types/ThreadSubject.d.mts +10 -0
  1166. package/dist/esm/serialization/resources/threads/types/ThreadSubject.mjs +5 -0
  1167. package/dist/esm/serialization/resources/threads/types/ThreadTimestamp.d.mts +10 -0
  1168. package/dist/esm/serialization/resources/threads/types/ThreadTimestamp.mjs +5 -0
  1169. package/dist/esm/serialization/resources/threads/types/ThreadUpdatedAt.d.mts +10 -0
  1170. package/dist/esm/serialization/resources/threads/types/ThreadUpdatedAt.mjs +5 -0
  1171. package/dist/esm/serialization/resources/threads/types/index.d.mts +18 -0
  1172. package/dist/esm/serialization/resources/threads/types/index.mjs +18 -0
  1173. package/dist/esm/serialization/resources/webhooks/index.d.mts +2 -0
  1174. package/dist/esm/serialization/resources/webhooks/index.mjs +2 -0
  1175. package/dist/esm/serialization/resources/webhooks/resources/events/index.d.mts +1 -0
  1176. package/dist/esm/serialization/resources/webhooks/resources/events/index.mjs +1 -0
  1177. package/dist/esm/serialization/resources/webhooks/resources/events/types/SvixId.d.mts +10 -0
  1178. package/dist/esm/serialization/resources/webhooks/resources/events/types/SvixId.mjs +5 -0
  1179. package/dist/esm/serialization/resources/webhooks/resources/events/types/SvixSignature.d.mts +10 -0
  1180. package/dist/esm/serialization/resources/webhooks/resources/events/types/SvixSignature.mjs +5 -0
  1181. package/dist/esm/serialization/resources/webhooks/resources/events/types/SvixTimestamp.d.mts +10 -0
  1182. package/dist/esm/serialization/resources/webhooks/resources/events/types/SvixTimestamp.mjs +5 -0
  1183. package/dist/esm/serialization/resources/webhooks/resources/events/types/index.d.mts +3 -0
  1184. package/dist/esm/serialization/resources/webhooks/resources/events/types/index.mjs +3 -0
  1185. package/dist/esm/serialization/resources/webhooks/resources/index.d.mts +2 -0
  1186. package/dist/esm/serialization/resources/webhooks/resources/index.mjs +2 -0
  1187. package/dist/esm/serialization/resources/webhooks/types/ClientId.d.mts +10 -0
  1188. package/dist/esm/serialization/resources/webhooks/types/ClientId.mjs +5 -0
  1189. package/dist/esm/serialization/resources/webhooks/types/CreateWebhookRequest.d.mts +19 -0
  1190. package/dist/esm/serialization/resources/webhooks/types/CreateWebhookRequest.mjs +14 -0
  1191. package/dist/esm/serialization/resources/webhooks/types/EventType.d.mts +10 -0
  1192. package/dist/esm/serialization/resources/webhooks/types/EventType.mjs +12 -0
  1193. package/dist/esm/serialization/resources/webhooks/types/EventTypes.d.mts +11 -0
  1194. package/dist/esm/serialization/resources/webhooks/types/EventTypes.mjs +6 -0
  1195. package/dist/esm/serialization/resources/webhooks/types/InboxIds.d.mts +10 -0
  1196. package/dist/esm/serialization/resources/webhooks/types/InboxIds.mjs +5 -0
  1197. package/dist/esm/serialization/resources/webhooks/types/ListWebhooksResponse.d.mts +19 -0
  1198. package/dist/esm/serialization/resources/webhooks/types/ListWebhooksResponse.mjs +14 -0
  1199. package/dist/esm/serialization/resources/webhooks/types/Url.d.mts +10 -0
  1200. package/dist/esm/serialization/resources/webhooks/types/Url.mjs +5 -0
  1201. package/dist/esm/serialization/resources/webhooks/types/Webhook.d.mts +25 -0
  1202. package/dist/esm/serialization/resources/webhooks/types/Webhook.mjs +20 -0
  1203. package/dist/esm/serialization/resources/webhooks/types/WebhookId.d.mts +10 -0
  1204. package/dist/esm/serialization/resources/webhooks/types/WebhookId.mjs +5 -0
  1205. package/dist/esm/serialization/resources/webhooks/types/index.d.mts +9 -0
  1206. package/dist/esm/serialization/resources/webhooks/types/index.mjs +9 -0
  1207. package/dist/esm/serialization/resources/websockets/client/index.d.mts +1 -0
  1208. package/dist/esm/serialization/resources/websockets/client/index.mjs +1 -0
  1209. package/dist/esm/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.mts +17 -0
  1210. package/dist/esm/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.mjs +20 -0
  1211. package/dist/esm/serialization/resources/websockets/client/socket/index.d.mts +1 -0
  1212. package/dist/esm/serialization/resources/websockets/client/socket/index.mjs +1 -0
  1213. package/dist/esm/serialization/resources/websockets/index.d.mts +2 -0
  1214. package/dist/esm/serialization/resources/websockets/index.mjs +2 -0
  1215. package/dist/esm/serialization/resources/websockets/types/Subscribe.d.mts +13 -0
  1216. package/dist/esm/serialization/resources/websockets/types/Subscribe.mjs +8 -0
  1217. package/dist/esm/serialization/resources/websockets/types/Subscribed.d.mts +13 -0
  1218. package/dist/esm/serialization/resources/websockets/types/Subscribed.mjs +8 -0
  1219. package/dist/esm/serialization/resources/websockets/types/index.d.mts +2 -0
  1220. package/dist/esm/serialization/resources/websockets/types/index.mjs +2 -0
  1221. package/dist/esm/serialization/types/After.d.mts +10 -0
  1222. package/dist/esm/serialization/types/After.mjs +5 -0
  1223. package/dist/esm/serialization/types/Ascending.d.mts +10 -0
  1224. package/dist/esm/serialization/types/Ascending.mjs +5 -0
  1225. package/dist/esm/serialization/types/Before.d.mts +10 -0
  1226. package/dist/esm/serialization/types/Before.mjs +5 -0
  1227. package/dist/esm/serialization/types/Count.d.mts +10 -0
  1228. package/dist/esm/serialization/types/Count.mjs +5 -0
  1229. package/dist/esm/serialization/types/ErrorName.d.mts +10 -0
  1230. package/dist/esm/serialization/types/ErrorName.mjs +5 -0
  1231. package/dist/esm/serialization/types/ErrorResponse.d.mts +14 -0
  1232. package/dist/esm/serialization/types/ErrorResponse.mjs +9 -0
  1233. package/dist/esm/serialization/types/Labels.d.mts +10 -0
  1234. package/dist/esm/serialization/types/Labels.mjs +5 -0
  1235. package/dist/esm/serialization/types/Limit.d.mts +10 -0
  1236. package/dist/esm/serialization/types/Limit.mjs +5 -0
  1237. package/dist/esm/serialization/types/OrganizationId.d.mts +10 -0
  1238. package/dist/esm/serialization/types/OrganizationId.mjs +5 -0
  1239. package/dist/esm/serialization/types/PageToken.d.mts +10 -0
  1240. package/dist/esm/serialization/types/PageToken.mjs +5 -0
  1241. package/dist/esm/serialization/types/ValidationErrorResponse.d.mts +14 -0
  1242. package/dist/esm/serialization/types/ValidationErrorResponse.mjs +9 -0
  1243. package/dist/esm/serialization/types/index.d.mts +11 -0
  1244. package/dist/esm/serialization/types/index.mjs +11 -0
  1245. package/dist/esm/version.d.mts +1 -0
  1246. package/dist/esm/version.mjs +1 -0
  1247. package/dist/llms-full.txt +4305 -207
  1248. package/package.json +2 -2
  1249. package/reference.md +910 -20
  1250. package/dist/cjs/serialization/resources/domains/types/CreateDomainResponse.d.ts +0 -22
  1251. /package/dist/cjs/api/resources/domains/types/{CreateDomainResponse.js → ClientId.js} +0 -0
@@ -158,18 +158,24 @@ Our customers use AgentMail for agent identity, authentication, and communicatio
158
158
  This guide will walk you through installing the AgentMail SDK, authenticating with your API key, and creating your first email inbox.
159
159
 
160
160
  <Steps>
161
- <Step title="Get your API Key">
162
- First, you'll need an AgentMail API key. You can sign up at the link below.
161
+ <Step title="Access the AgentMail Console">
162
+ First, you'll need to access the AgentMail Console to manage your account and API keys. Click the link below to get started.
163
163
 
164
- <Card title="Get an API Key" icon="fa-solid fa-key" href="https://agentmail.to/pricing" target="_blank" />
164
+ <Card title="Open AgentMail Console" icon="fa-solid fa-desktop" href="https://console.agentmail.to" target="_blank" />
165
165
 
166
- Once you have your key, create a `.env` file in your project's root
166
+ If you don't have an account yet, you can sign up directly from the console. Once you're logged in, you'll be able to manage your inboxes, view analytics, and create API keys.
167
+ </Step>
168
+
169
+ {" "}
170
+
171
+ <Step title="Create an API Key">
172
+ Now that you're in the console, you'll need to create an API key to
173
+ authenticate your requests. Navigate to the API Keys section in your console
174
+ dashboard. ![API Key Creation Screenshot](file:340f6da2-258d-4a0a-8195-f735a0fd6c9a) Click
175
+ "Create New API Key" and give it a descriptive name. Once created, copy the
176
+ API key and store it securely. Create a `.env` file in your project's root
167
177
  directory and add your key to it. We recommend using environment variables to
168
178
  keep your keys secure.
169
-
170
- ```.env
171
- AGENTMAIL_API_KEY="YOUR_API_KEY"
172
- ```
173
179
  </Step>
174
180
 
175
181
  <Step title="Install the SDK">
@@ -246,7 +252,7 @@ This guide will walk you through installing the AgentMail SDK, authenticating wi
246
252
 
247
253
  <Note>
248
254
  The `domain` parameter is optional. If not provided, AgentMail will
249
- use the default `@agentmail.to` domain. If you would like a custom domain, please email [contact@agentmail.cc](mailto:contact@agentmail.cc)
255
+ use the default `@agentmail.to` domain. If you would like a custom domain, please <a href="https://agentmail.to/pricing" target="_blank" rel="noopener noreferrer">upgrade to a paid plan</a>.
250
256
  </Note>
251
257
  </Step>
252
258
 
@@ -306,7 +312,7 @@ Unlike traditional email providers that are designed for human scale, AgentMail
306
312
 
307
313
  As the diagram below illustrates, your `organization` is the top-level container that holds all your resources. You can provision many `Inboxes` within your `organization`, each with its own `Threads`, `Messages`, and `Attachments`, allowing you to manage a large fleet of agents seamlessly.
308
314
 
309
- <img src="file:a563cc9a-3012-411b-b20a-82d8382138a3" alt="AgentMail Organizational Hierarchy" />
315
+ <img src="file:6580a51a-afc7-4e1e-b5a0-a8d8e8f97b19" alt="AgentMail Organizational Hierarchy" />
310
316
 
311
317
  <Steps>
312
318
  <Step title="Organization">
@@ -376,9 +382,9 @@ Here at AgentMail we've now made an `Inbox` is an API resource, meaning you can
376
382
  // --- Create an Inbox ---
377
383
  // Creates a new inbox with a default agentmail.to domain
378
384
  await client.inboxes.create({
379
- username: docs-testing,
380
- domain: domain.com,
381
- displayName: Docs Tester,
385
+ username: docs-testing,
386
+ domain: domain.com,
387
+ displayName: Docs Tester,
382
388
  });
383
389
  console.log(`Created Inbox: ${newInbox.id}`);
384
390
 
@@ -497,7 +503,7 @@ You can retrieve a list of all `Messages` within a specific `Inbox`. This is use
497
503
 
498
504
  print(f"Found {all_messages.count} messages in the inbox.")
499
505
  for message in all_messages:
500
- print(f"- Subject: {message.subject}")
506
+ print(f"- Subject: {message.subject}")
501
507
 
502
508
  ```
503
509
 
@@ -520,14 +526,14 @@ Replying to an existing `Message` adds your new `Message` to the same `Thread`,
520
526
  ```python title="Python" wordWrap
521
527
 
522
528
  reply = client.inboxes.messages.reply(
523
- inbox_id = 'my_inbox@domain.com'
524
- message_id='msg_id',
525
- text="Thanks for the referral!",
526
- attachments=[
527
- SendAttachment(
528
- content="resume" # this would obviously be your resume content, refer to the attachment section of the core-concepts for more details
529
- )
530
- ]
529
+ inbox_id='my_inbox@domain.com'
530
+ message_id='msg_id',
531
+ text="Thanks for the referral!",
532
+ attachments=[
533
+ SendAttachment(
534
+ content="resume" # this would obviously be your resume content, refer to the attachment section of the core-concepts for more details
535
+ )
536
+ ]
531
537
  )
532
538
 
533
539
  print(f"Reply sent successfully with ID: {reply.message_id}")
@@ -731,7 +737,7 @@ Here is an example of a well-structured and styled HTML header:
731
737
  </CodeBlocks>
732
738
 
733
739
  <Frame caption="Look how pretty this message looks!">
734
- <img src="file:440704fb-ef72-42d0-8792-0e77aad18848" alt="rendered css" />
740
+ <img src="file:c611f540-e904-42fe-a7f7-cc18f8e8d73e" alt="rendered css" />
735
741
  </Frame>
736
742
 
737
743
  ## Receiving `Messages`
@@ -878,10 +884,10 @@ This is the first step. You create a `Draft` in a specific `Inbox` that will eve
878
884
  ```python title="Python"
879
885
  # You'll need an inbox ID to create a draft in.
880
886
 
881
- new_draft = client.inboxes.drafts.create(
882
- inbox_id="outbound@domain.com",
883
- to=["review-team@example.com"],
884
- subject="[NEEDS REVIEW] Agent's proposed response"
887
+ new_draft=client.inboxes.drafts.create(
888
+ inbox_id="outbound@domain.com",
889
+ to=["review-team@example.com"],
890
+ subject="[NEEDS REVIEW] Agent's proposed response"
885
891
  )
886
892
 
887
893
  print(f"Draft created successfully with ID: {new_draft.draft_id}")
@@ -919,7 +925,7 @@ Once a `Draft` is created, you can retrieve it by its ID
919
925
  ```typescript title="TypeScript"
920
926
 
921
927
  // Get the draft
922
- const draft =await client.inboxes.drafts.get(
928
+ const draft = await client.inboxes.drafts.get(
923
929
  "inbox_id",
924
930
  "draft_id_123"
925
931
  )
@@ -1050,10 +1056,10 @@ You can modify the `Labels` on a `Message` that has already been sent using the
1050
1056
  # Let's add a 'resolved' label to a message
1051
1057
 
1052
1058
  client.messages.update(
1053
- inbox_id='outbound@domain.com',
1054
- message_id='msg_id_123',
1055
- add_labels=["resolved"],
1056
- remove_labels=['unresolved']
1059
+ inbox_id='outbound@domain.com',
1060
+ message_id='msg_id_123',
1061
+ add_labels=["resolved"],
1062
+ remove_labels=['unresolved']
1057
1063
  )
1058
1064
 
1059
1065
  ```
@@ -1068,10 +1074,10 @@ You can modify the `Labels` on a `Message` that has already been sent using the
1068
1074
  {
1069
1075
  addLabels: [
1070
1076
  "resolved"
1071
- ],
1077
+ ],
1072
1078
  removeLabels: [
1073
1079
  "unresolved"
1074
- ]
1080
+ ]
1075
1081
  }
1076
1082
  )
1077
1083
 
@@ -1157,15 +1163,15 @@ To send a file, you include it in an `Attachments` array when sending a `Message
1157
1163
  encoded_content = base64.b64encode(file_content.encode()).decode()
1158
1164
 
1159
1165
  sent_message = client.messages.send(
1160
- inbox_id="reports@agentmail.to",
1161
- to=["supervisor@example.com"],
1162
- subject="Q4 Financial Report",
1163
- text="Please see the attached report.",
1164
- attachments=[{
1165
- "content": encoded_content,
1166
- "filename": "Q4-report.txt",
1167
- "content_type": "text/plain"
1168
- }]
1166
+ inbox_id="reports@agentmail.to",
1167
+ to=["supervisor@example.com"],
1168
+ subject="Q4 Financial Report",
1169
+ text="Please see the attached report.",
1170
+ attachments=[{
1171
+ "content": encoded_content,
1172
+ "filename": "Q4-report.txt",
1173
+ "content_type": "text/plain"
1174
+ }]
1169
1175
  )
1170
1176
 
1171
1177
  ```
@@ -1206,9 +1212,9 @@ If you know the `Message` an `Attachment` belongs to, you can retrieve it direct
1206
1212
  attachment_id = "attach_789" # From the message object
1207
1213
 
1208
1214
  file_data = client.inboxes.messages.attachments.get(
1209
- inbox_id=inbox_id,
1210
- message_id=message_id,
1211
- attachment_id=attachment_id
1215
+ inbox_id=inbox_id,
1216
+ message_id=message_id,
1217
+ attachment_id=attachment_id
1212
1218
  )
1213
1219
 
1214
1220
  # Now you can save the file
@@ -1304,7 +1310,7 @@ Here's the step-by-step logic for a polling-based conversational agent.
1304
1310
  ```python
1305
1311
  # Find all threads in this inbox that are marked as unreplied
1306
1312
  threads = client.threads.list(
1307
- labels=["unreplied"]
1313
+ labels = ["unreplied"]
1308
1314
  )
1309
1315
  if not threads:
1310
1316
  print("No threads need a reply.")
@@ -1429,72 +1435,265 @@ Configuring your domain is a three-step process: add the domain via API, copy th
1429
1435
 
1430
1436
  <Steps>
1431
1437
  <Step title="1. Create Domain & Get DNS Records">
1432
- To begin, make an API request to the `POST /domains/{domain}` endpoint with your domain name. AgentMail will register your domain and immediately return the full set of DNS records required for verification.
1438
+ Choose your preferred method to create a domain and get the required DNS records. AgentMail will register your domain and immediately return the full set of DNS records required for verification.
1433
1439
 
1434
- <CodeBlocks>
1435
- `bash curl -X POST https://api.agentmail.to/domains/your-domain.com `
1436
- </CodeBlocks>
1440
+ <Tabs>
1441
+ <Tab title="Console">
1442
+ Navigate to the [AgentMail Console](https://console.agentmail.to) and follow these steps:
1437
1443
 
1438
- <Callout type="info" title="Feedback Forwarding">
1439
- By default, bounce and complaint notifications are sent to your domain. You
1440
- can disable this by setting `feedback_forwarding` to `false` in your request.
1441
- If not specified it is default set to `true`
1442
- </Callout>
1444
+ 1. **Go to Domains Section**: Click on "Domains" in the left sidebar
1445
+ 2. **Add New Domain**: Click "Add Domain" or "Create Domain" button
1446
+ 3. **Enter Domain Name**: Type your domain name (e.g., `your-domain.com`)
1447
+ 4. **Create Domain**: Click "Create" to register the domain
1448
+ </Tab>
1449
+
1450
+ <Tab title="SDK">
1451
+ <CodeBlocks>
1452
+ ```bash title="cURL"
1453
+ curl -X POST https://api.agentmail.to/domains/your-domain.com \
1454
+ -H "Authorization: Bearer YOUR_API_KEY" \
1455
+ -H "Content-Type: application/json"
1456
+ ```
1457
+
1458
+ ```python title="Python"
1459
+ from agentmail import AgentMail
1460
+
1461
+ client = AgentMail(api_key="YOUR_API_KEY")
1462
+
1463
+ # Create domain with default settings
1464
+ domain = client.domains.create("your-domain.com")
1465
+
1466
+ # Or with custom feedback forwarding
1467
+ domain = client.domains.create(
1468
+ "your-domain.com",
1469
+ feedback_enabled=False
1470
+ )
1471
+
1472
+ print("Domain created:", domain)
1473
+ print("DNS Records:", domain.records)
1474
+ ```
1475
+
1476
+ ```typescript title="TypeScript"
1477
+ import { AgentMailClient } from "agentmail";
1443
1478
 
1444
- The API response includes a `records` array. Each object in this array contains the precise `name`, `type`, `value`, and `priority` you'll need to add to your DNS provider.
1479
+ const client = new AgentMailClient({
1480
+ apiKey: "YOUR_API_KEY",
1481
+ });
1445
1482
 
1446
- The initial `status` of the domain will be `pending`. It will change as you configure your domain and we verify it on our end.
1483
+ // Create domain with default settings
1484
+ const domain = await client.domains.create("your-domain.com");
1485
+
1486
+ // Or with custom feedback forwarding
1487
+ const domain = await client.domains.create("your-domain.com", {
1488
+ feedback_enabled: false
1489
+ });
1490
+
1491
+ console.log("Domain created:", domain);
1492
+ console.log("DNS Records:", domain.records);
1493
+ ```
1494
+ </CodeBlocks>
1495
+
1496
+ <Callout type="info" title="Idempotent Requests">
1497
+ You can make these requests idempotent by including a `client_id`
1498
+ attribute in the request so we dont serve an error if you try and create a
1499
+ domain that has already been registered with us.
1500
+ </Callout>
1501
+
1502
+ <Callout type="info" title="Feedback Forwarding">
1503
+ By default, bounce and complaint notifications are sent to your domain. You
1504
+ can disable this by setting `feedback_enabled` to `false` in your request. If
1505
+ not specified it is default set to `true`
1506
+ </Callout>
1507
+
1508
+ The API response includes a `records` array. Each object in this array contains the precise `name`, `type`, `value`, and `priority` you'll need to add to your DNS provider.
1509
+
1510
+ The initial `status` of the domain will be `pending`. It will change as you configure your domain and we verify it on our end.
1511
+ </Tab>
1512
+ </Tabs>
1447
1513
  </Step>
1448
1514
 
1449
1515
  <Step title="2. Add Records to Your DNS Provider">
1450
- The process for adding records varies slightly between providers. The examples below assume you are configuring the root domain `domain.com`.
1451
-
1452
- <Callout title="Configuring a Subdomain?">
1453
- If you're using a subdomain (e.g., `payment.domain.com`), the instructions are
1454
- the same, but you must PREPEND the subdomain to the record NAME VALUE. For
1455
- example, a `_dmarc` record for `domain.com` becomes `_dmarc.payment` for
1456
- `payment.domain.com`. For records on the subdomain itself (like an MX record
1457
- for `payment.domain.com`), the name would simply be `payment`.
1458
- </Callout>
1516
+ The process for adding records varies slightly between providers. The examples below assume you are configuring records in the apex `domain.com` hosted zone. If you are using a subdomain make sure it is in the apex domain hosted zone.
1517
+
1518
+ ### Option A: Upload BIND Zone File (Easiest)
1519
+
1520
+ A BIND zone file is a text file that contains DNS resource records in a standardized format. This approach allows you to bulk upload our records to your DNS provider without you needing to go down one by one.
1521
+
1522
+ **How to use the BIND zone file:**
1459
1523
 
1460
- Below are detailed instructions for AWS Route53 and Cloudflare. If you would like detailed instructions on your specific domain provider in this section please contact us [contact@agentmail.cc](mailto:contact@agentmail.cc)
1524
+ **Step 1: Download the BIND zone file**
1525
+
1526
+ After creating your domain in the AgentMail Console, click the "Download BIND Zone File" button to get the complete zone file.
1527
+
1528
+ <Frame caption="Downloading BIND zone file from AgentMail Console">
1529
+ <img src="file:e8853c9c-bdfd-41be-9061-74e51c687f71" alt="Download BIND Zone File from Console" />
1530
+ </Frame>
1461
1531
 
1462
1532
  <Tabs>
1463
1533
  <Tab title="AWS Route 53">
1464
- In your hosted zone, click **"Create record"**.
1534
+ **Step 2: Import to Route 53**
1465
1535
 
1466
- * **CNAME (DKIM):**
1467
- * **Record name:** Enter the part of the `name` before your root domain (e.g., `{random_letters_numbers}._domainkey` for a `name` of `{random_letters_numbers}._domainkey.domain.com`).
1468
- * **Value:** Can directly copy paste the `value` from the API response (e.g., `{random_letters_numbers}.dkim.amazonses.com`).
1536
+ 1. Go to your Route 53 hosted zone for your domain
1537
+ 2. Click **"Import zone file"** in the top right corner
1469
1538
 
1470
- <Frame caption="Example of adding a CNAME record in Route 53. Notice that AWS already appends the root domain (agentmail.cc) to the end of the name value!">
1471
- <img src="file:dd85c110-e239-4efe-9e72-addac8cfed15" alt="AWS Route 53 Record Configuration" />
1539
+ <Frame caption="Importing BIND zone file in AWS Route 53">
1540
+ <img src="file:7fe13c74-21fe-4d35-a0ae-1805a2058267" alt="AWS Route 53 BIND Import" />
1472
1541
  </Frame>
1473
1542
 
1474
- * **TXT (DMARC/SPF):**
1475
- * **Record name:** Enter the part of the `name` before your root domain (e.g., `_dmarc` for a `name` of `_dmarc.domain.com`, or `mail` for a `name` of `mail.domain.com`).
1476
- * **Value:** Can copy paste the`value` from the API, ensuring it is enclosed in quotes.
1543
+ 3. Paste the CONTENTS of downloaded BIND zone file
1544
+
1545
+ <Frame caption="Open the file with text editor and paste the contents. It should look similar to what we have in this image.">
1546
+ <img src="file:e517eeaa-c9d6-442e-bed3-3991589f2f1e" alt="AWS Route 53 BIND Import" />
1547
+ </Frame>
1477
1548
 
1478
- * **MX:**
1479
- * **Record name:** Leave this field blank to apply the record to the root domain.
1480
- * **Value:** This is critical. You must combine the `priority` and `value` from the API into a single string, separated by a space. For example: `10 inbound-smtp.us-east-1.amazonaws.com`.
1549
+ 4. Review the records and click **"Import"**
1481
1550
  </Tab>
1482
1551
 
1483
1552
  <Tab title="Cloudflare">
1484
- In the dashboard (**DNS > Records**), click **"Add record"**.
1553
+ **Step 2: Import to Cloudflare**
1554
+
1555
+ 1. Go to your Cloudflare dashboard and select your domain
1556
+ 2. Navigate to **DNS > Records**
1557
+
1558
+ <Frame caption="This is what the page looks like">
1559
+ <img src="file:4b7f29af-95de-4989-97d8-d0f85fb0f86e" alt="Cloudflare BIND Import" />
1560
+ </Frame>
1561
+
1562
+ 3. Click **"Import and Export"**
1563
+
1564
+ <Frame caption="You should be able to just drop the file in">
1565
+ <img src="file:63909e84-1cdb-476d-8877-9caecfddd61c" alt="Cloudflare BIND Import" />
1566
+ </Frame>
1567
+
1568
+ 4. Upload the downloaded BIND zone file as is
1569
+ </Tab>
1570
+
1571
+ <Tab title="Porkbun">
1572
+ **Step 2: Import to Porkbun**
1573
+
1574
+ 1. Go to your Porkbun profile and click domain management
1575
+ 2. Navigate to the **DNS** subtab of the domain you want to send from
1576
+
1577
+ <Frame caption="Click on this button!">
1578
+ <img src="file:db3d807b-6ac1-442a-9f2a-b1d502221c3f" alt="Porkbun DNS Management" />
1579
+ </Frame>
1580
+
1581
+ 3. Scroll down to the quick upload section
1582
+
1583
+ <Frame caption="Upload your BIND zone file here">
1584
+ <img src="file:4035f38c-6f80-46af-b506-a229067b1ad1" alt="Porkbun Zone File Import" />
1585
+ </Frame>
1586
+
1587
+ 4. Upload the downloaded BIND zone file as is
1588
+
1589
+ {" "}
1590
+
1591
+ <Warning type="warning" title="Important: Review Before Importing">
1592
+ Uploading a BIND zone file in Porkbun REPLACES the existing records you have.
1593
+ This is fine if this is a fresh domain you bought for the sake of sending
1594
+ email but if this is a domain that has other important records configured,
1595
+ consider adding [additional records
1596
+ manually](#option-b-add-individual-records).
1597
+ </Warning>
1598
+ </Tab>
1599
+ </Tabs>
1600
+
1601
+ <Callout type="info" title="BIND Zone File Format">
1602
+ Check that all records (CNAME, TXT, MX) have been correctly imported in the
1603
+ console(the console will show in real time if we can find the records,
1604
+ typically within seconds).
1605
+ </Callout>
1606
+
1607
+ ### Option B: Add Individual Records
1608
+
1609
+ Below are detailed instructions for AWS Route53, CloudFlare, and Namecheap. The instructions vary depending on whether you're using the AgentMail Console or the API directly.
1485
1610
 
1486
- * **CNAME (DKIM):**
1487
- * **Name:** Enter the part of the `name` before your root domain (e.g., `{random_letters_numbers}._domainkey`).
1488
- * **Target:** Copy paste the `value` from the API response.
1611
+ <Tabs>
1612
+ <Tab title="Via Console">
1613
+ If you created your domain through the [AgentMail Console](https://console.agentmail.to), the DNS records are displayed in a simplified format that's ready for copy-paste into your DNS provider.
1614
+
1615
+ <Tabs>
1616
+ <Tab title="AWS Route 53">
1617
+ In your hosted zone, click **"Create record"**.
1618
+
1619
+ * **CNAME (DKIM):**
1620
+ * **Record name:** Copy the **Name** value directly from the console (e.g., `abc123._domainkey`).
1621
+ * **Value:** Copy the **Value** from the console (e.g., `abc123.dkim.amazonses.com`).
1622
+
1623
+ * **TXT (DMARC/SPF):**
1624
+ * **Record name:** Copy the **Name** value directly from the console (e.g., `_dmarc` or `mail`).
1625
+ * **Value:** Copy the **Value** from the console, ensuring it is enclosed in quotes.
1626
+
1627
+ * **MX:**
1628
+ * **Record name:** Enter the value exactly as we return it, whether its `@` or the subdomain.
1629
+ * **Value:** Copy the **Value** from the console (e.g., `inbound-smtp.us-east-1.amazonaws.com`).
1630
+ * **Priority:** Use the priority shown in the console (typically `10`).
1631
+ </Tab>
1632
+
1633
+ <Tab title="Cloudflare">
1634
+ In the dashboard (**DNS > Records**), click **"Add record"**.
1635
+
1636
+ * **CNAME (DKIM):**
1637
+ * **Name:** Copy the **Name** value directly from the console.
1638
+ * **Target:** Copy the **Value** from the console.
1639
+
1640
+ * **TXT (DMARC/SPF):**
1641
+ * **Name:** Copy the **Name** value directly from the console.
1642
+ * **Content:** Copy the **Value** from the console.
1643
+
1644
+ * **MX:**
1645
+ * **Name:** Enter `@` to apply the record to the root domain.
1646
+ * **Mail server:** Copy the **Value** from the console.
1647
+ * **Priority:** Use the priority shown in the console.
1648
+ </Tab>
1649
+ </Tabs>
1650
+
1651
+ <Callout type="info" title="Console Advantage">
1652
+ The console automatically formats DNS record names to be relative hostnames (without the full domain), making them ready for direct copy-paste into your DNS provider. No manual parsing required!
1653
+ </Callout>
1654
+ </Tab>
1655
+
1656
+ <Tab title="Via API">
1657
+ If you're using the API directly, the DNS records are returned as fully qualified domain names (FQDNs) that require some manual parsing.
1658
+
1659
+ <Tabs>
1660
+ <Tab title="AWS Route 53">
1661
+ In your hosted zone, click **"Create record"**.
1662
+
1663
+ * **CNAME (DKIM):**
1664
+ * **Record name:** Enter the part of the `name` before your root domain (e.g., `{random_letters_numbers}._domainkey` for a `name` of `{random_letters_numbers}._domainkey.domain.com`).
1665
+ * **Value:** Can directly copy paste the `value` from the API response (e.g., `{random_letters_numbers}.dkim.amazonses.com`).
1666
+
1667
+ <Frame caption="Example of adding a CNAME record in Route 53. Notice that AWS already appends the root domain (agentmail.cc) to the end of the name value!">
1668
+ <img src="file:7f939610-3198-4553-9322-f89edde3f9f8" alt="AWS Route 53 Record Configuration" />
1669
+ </Frame>
1670
+
1671
+ * **TXT (DMARC/SPF):**
1672
+ * **Record name:** Enter the part of the `name` before your root domain (e.g., `_dmarc` for a `name` of `_dmarc.domain.com`, or `mail` for a `name` of `mail.domain.com`).
1673
+ * **Value:** Can copy paste the`value` from the API, ensuring it is enclosed in quotes.
1674
+
1675
+ * **MX:**
1676
+ * **Record name:** Leave this field blank to apply the record to the root domain.
1677
+ * **Value:** This is critical. You must combine the `priority` and `value` from the API into a single string, separated by a space. For example: `10 inbound-smtp.us-east-1.amazonaws.com`.
1678
+ </Tab>
1489
1679
 
1490
- * **TXT (DMARC/SPF):**
1491
- * **Name:** Enter the part of the `name` before your root domain (e.g. `_dmarc`).
1492
- * **Content:** Copy paste the `value` from the API response.
1680
+ <Tab title="Cloudflare">
1681
+ In the dashboard (**DNS > Records**), click **"Add record"**.
1493
1682
 
1494
- * **MX:**
1495
- * **Name:** Enter `@` to apply the record to the root domain.
1496
- * **Mail server:** Enter the `value` from the API.
1497
- * **Priority:** Enter the `priority` from the API.
1683
+ * **CNAME (DKIM):**
1684
+ * **Name:** Enter the part of the `name` before your root domain (e.g., `{random_letters_numbers}._domainkey`).
1685
+ * **Target:** Copy paste the `value` from the API response.
1686
+
1687
+ * **TXT (DMARC/SPF):**
1688
+ * **Name:** Enter the part of the `name` before your root domain (e.g. `_dmarc`).
1689
+ * **Content:** Copy paste the `value` from the API response.
1690
+
1691
+ * **MX:**
1692
+ * **Name:** Enter the part of the name before your root domain
1693
+ * **Mail server:** Enter the `value` from the API.
1694
+ * **Priority:** Enter the `priority` from the API.
1695
+ </Tab>
1696
+ </Tabs>
1498
1697
  </Tab>
1499
1698
  </Tabs>
1500
1699
  </Step>
@@ -1502,11 +1701,21 @@ Configuring your domain is a three-step process: add the domain via API, copy th
1502
1701
  <Step title="3. Verify Your Domain">
1503
1702
  Once you've added the records, AgentMail automatically begins to check them. This can take anywhere from a few minutes to 48 hours for your DNS changes to propagate across the internet.
1504
1703
 
1505
- You can poll the `GET /domains/{domain}` endpoint to check the verification progress. The `status` field in the response will tell you exactly where you are in the process:
1704
+ Check your domain verification status in the [AgentMail Console](https://console.agentmail.to/dashboard/domains):
1705
+
1706
+ 1. **Navigate to Domains**: Go to the "Domains" section in the left sidebar
1707
+ 2. **View Domain Status**: Find your domain in the list and check its status
1708
+ 3. **Monitor Progress**: The status will update automatically as verification progresses
1709
+ 4. **View Details**: Click on your domain to see detailed information about which records are verified
1710
+
1711
+ The status indicators will show you exactly where you are in the process:
1506
1712
 
1507
- * **`pending`**: This means you still need to add or fix your DNS records. The `records` array in the response will show you which records are still missing or invalid.
1508
- * **`verifying`**: This is a great sign! It means our system has confirmed your DNS records are correct, and we are now authorizing the domain with our underlying email infrastructure. No action is needed from you—just a little more patience.
1509
- * **`ready`**: This is the final step. Your domain is fully verified and ready for sending. You can now create inboxes and start sending emails.
1713
+ * **`Not Started`**: You need to click the Verify Domain button to kick start the process
1714
+ * **`Pending`**: You still need to add or fix your DNS records
1715
+ * **`Invalid`**: Some of your records are misconfigured. Please verify you inputted them correctly.
1716
+ * **`Failed`**: Your records are correct, but our servers need a bump. Please click the verify domain button in the console.
1717
+ * **`Verifying`**: DNS records are correct, and we're authorizing the domain
1718
+ * **`Verified`**: Domain is fully verified and ready for sending
1510
1719
  </Step>
1511
1720
  </Steps>
1512
1721
 
@@ -1534,9 +1743,7 @@ DNS can be tricky. Here are some common issues and how to resolve them.
1534
1743
  <AccordionGroup>
1535
1744
  <Accordion title="My DNS changes aren't showing up instantly">
1536
1745
  DNS propagation can take up to 48 hours, though it's often much faster. If
1537
- it's been a while, double-check by hitting the `GET /domains/{domain}`
1538
- endpoint to check the status. It will tell you exactly which records are
1539
- configured correctly or missing.
1746
+ it's been a while, click the verify domain button in the console which will trigger a reverification manually(DNS propagation can get stuck at times).
1540
1747
  </Accordion>
1541
1748
 
1542
1749
  <Accordion title="I'm seeing 'Too many SPF records' errors">
@@ -2017,7 +2224,7 @@ How you send your emails is just as important as what you send. If you're sendin
2017
2224
  more natural to email providers. AgentMail's ability to create inboxes at
2018
2225
  scale makes this strategy easy to implement.
2019
2226
 
2020
- <img src="file:3a9cc940-f3f7-4bd0-8aeb-5cc750559949" alt="Diagram comparing one inbox sending 1000 emails vs. five inboxes sending 200 each." />
2227
+ <img src="file:ead07678-e204-400a-a953-6a10425d70ce" alt="Diagram comparing one inbox sending 1000 emails vs. five inboxes sending 200 each." />
2021
2228
  </Step>
2022
2229
 
2023
2230
  <Step title="Protect Your Reputation with Multiple Domains">
@@ -2385,7 +2592,7 @@ Create a file named `main.py` and add the full code example you provided. This s
2385
2592
  - 'html': An email body in HTML format, adhering to all the above content and formatting rules (mention star, no direct links, specific CTA).
2386
2593
 
2387
2594
  Your output for this step MUST be an action call to 'send_message' with the tool input formatted as a valid JSON string, ensuring you use the 'html' field for the body. For example:
2388
- Action: send_message(```json
2595
+ Action: send_message(```
2389
2596
  {{
2390
2597
  "inbox_id": "{inbox}",
2391
2598
  "to": ["{actual_demo_target_email}"],
@@ -2906,6 +3113,101 @@ client.inboxes.list()
2906
3113
 
2907
3114
  ```
2908
3115
 
3116
+ ```go
3117
+ package main
3118
+
3119
+ import (
3120
+ "fmt"
3121
+ "net/http"
3122
+ "io"
3123
+ )
3124
+
3125
+ func main() {
3126
+
3127
+ url := "https://api.agentmail.to/v0/inboxes"
3128
+
3129
+ req, _ := http.NewRequest("GET", url, nil)
3130
+
3131
+ req.Header.Add("Authorization", "Bearer <api_key>")
3132
+
3133
+ res, _ := http.DefaultClient.Do(req)
3134
+
3135
+ defer res.Body.Close()
3136
+ body, _ := io.ReadAll(res.Body)
3137
+
3138
+ fmt.Println(res)
3139
+ fmt.Println(string(body))
3140
+
3141
+ }
3142
+ ```
3143
+
3144
+ ```ruby
3145
+ require 'uri'
3146
+ require 'net/http'
3147
+
3148
+ url = URI("https://api.agentmail.to/v0/inboxes")
3149
+
3150
+ http = Net::HTTP.new(url.host, url.port)
3151
+ http.use_ssl = true
3152
+
3153
+ request = Net::HTTP::Get.new(url)
3154
+ request["Authorization"] = 'Bearer <api_key>'
3155
+
3156
+ response = http.request(request)
3157
+ puts response.read_body
3158
+ ```
3159
+
3160
+ ```java
3161
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes")
3162
+ .header("Authorization", "Bearer <api_key>")
3163
+ .asString();
3164
+ ```
3165
+
3166
+ ```php
3167
+ <?php
3168
+
3169
+ $client = new \GuzzleHttp\Client();
3170
+
3171
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes', [
3172
+ 'headers' => [
3173
+ 'Authorization' => 'Bearer <api_key>',
3174
+ ],
3175
+ ]);
3176
+
3177
+ echo $response->getBody();
3178
+ ```
3179
+
3180
+ ```csharp
3181
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes");
3182
+ var request = new RestRequest(Method.GET);
3183
+ request.AddHeader("Authorization", "Bearer <api_key>");
3184
+ IRestResponse response = client.Execute(request);
3185
+ ```
3186
+
3187
+ ```swift
3188
+ import Foundation
3189
+
3190
+ let headers = ["Authorization": "Bearer <api_key>"]
3191
+
3192
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes")! as URL,
3193
+ cachePolicy: .useProtocolCachePolicy,
3194
+ timeoutInterval: 10.0)
3195
+ request.httpMethod = "GET"
3196
+ request.allHTTPHeaderFields = headers
3197
+
3198
+ let session = URLSession.shared
3199
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
3200
+ if (error != nil) {
3201
+ print(error as Any)
3202
+ } else {
3203
+ let httpResponse = response as? HTTPURLResponse
3204
+ print(httpResponse)
3205
+ }
3206
+ })
3207
+
3208
+ dataTask.resume()
3209
+ ```
3210
+
2909
3211
  # Get Inbox
2910
3212
 
2911
3213
  GET https://api.agentmail.to/v0/inboxes/{inbox_id}
@@ -3009,6 +3311,101 @@ client.inboxes.get(
3009
3311
 
3010
3312
  ```
3011
3313
 
3314
+ ```go
3315
+ package main
3316
+
3317
+ import (
3318
+ "fmt"
3319
+ "net/http"
3320
+ "io"
3321
+ )
3322
+
3323
+ func main() {
3324
+
3325
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id"
3326
+
3327
+ req, _ := http.NewRequest("GET", url, nil)
3328
+
3329
+ req.Header.Add("Authorization", "Bearer <api_key>")
3330
+
3331
+ res, _ := http.DefaultClient.Do(req)
3332
+
3333
+ defer res.Body.Close()
3334
+ body, _ := io.ReadAll(res.Body)
3335
+
3336
+ fmt.Println(res)
3337
+ fmt.Println(string(body))
3338
+
3339
+ }
3340
+ ```
3341
+
3342
+ ```ruby
3343
+ require 'uri'
3344
+ require 'net/http'
3345
+
3346
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id")
3347
+
3348
+ http = Net::HTTP.new(url.host, url.port)
3349
+ http.use_ssl = true
3350
+
3351
+ request = Net::HTTP::Get.new(url)
3352
+ request["Authorization"] = 'Bearer <api_key>'
3353
+
3354
+ response = http.request(request)
3355
+ puts response.read_body
3356
+ ```
3357
+
3358
+ ```java
3359
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id")
3360
+ .header("Authorization", "Bearer <api_key>")
3361
+ .asString();
3362
+ ```
3363
+
3364
+ ```php
3365
+ <?php
3366
+
3367
+ $client = new \GuzzleHttp\Client();
3368
+
3369
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/inbox_id', [
3370
+ 'headers' => [
3371
+ 'Authorization' => 'Bearer <api_key>',
3372
+ ],
3373
+ ]);
3374
+
3375
+ echo $response->getBody();
3376
+ ```
3377
+
3378
+ ```csharp
3379
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id");
3380
+ var request = new RestRequest(Method.GET);
3381
+ request.AddHeader("Authorization", "Bearer <api_key>");
3382
+ IRestResponse response = client.Execute(request);
3383
+ ```
3384
+
3385
+ ```swift
3386
+ import Foundation
3387
+
3388
+ let headers = ["Authorization": "Bearer <api_key>"]
3389
+
3390
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id")! as URL,
3391
+ cachePolicy: .useProtocolCachePolicy,
3392
+ timeoutInterval: 10.0)
3393
+ request.httpMethod = "GET"
3394
+ request.allHTTPHeaderFields = headers
3395
+
3396
+ let session = URLSession.shared
3397
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
3398
+ if (error != nil) {
3399
+ print(error as Any)
3400
+ } else {
3401
+ let httpResponse = response as? HTTPURLResponse
3402
+ print(httpResponse)
3403
+ }
3404
+ })
3405
+
3406
+ dataTask.resume()
3407
+ ```
3408
+
3012
3409
  # Create Inbox
3013
3410
 
3014
3411
  POST https://api.agentmail.to/v0/inboxes
@@ -3122,6 +3519,120 @@ client.inboxes.create()
3122
3519
 
3123
3520
  ```
3124
3521
 
3522
+ ```go
3523
+ package main
3524
+
3525
+ import (
3526
+ "fmt"
3527
+ "strings"
3528
+ "net/http"
3529
+ "io"
3530
+ )
3531
+
3532
+ func main() {
3533
+
3534
+ url := "https://api.agentmail.to/v0/inboxes"
3535
+
3536
+ payload := strings.NewReader("{}")
3537
+
3538
+ req, _ := http.NewRequest("POST", url, payload)
3539
+
3540
+ req.Header.Add("Authorization", "Bearer <api_key>")
3541
+ req.Header.Add("Content-Type", "application/json")
3542
+
3543
+ res, _ := http.DefaultClient.Do(req)
3544
+
3545
+ defer res.Body.Close()
3546
+ body, _ := io.ReadAll(res.Body)
3547
+
3548
+ fmt.Println(res)
3549
+ fmt.Println(string(body))
3550
+
3551
+ }
3552
+ ```
3553
+
3554
+ ```ruby
3555
+ require 'uri'
3556
+ require 'net/http'
3557
+
3558
+ url = URI("https://api.agentmail.to/v0/inboxes")
3559
+
3560
+ http = Net::HTTP.new(url.host, url.port)
3561
+ http.use_ssl = true
3562
+
3563
+ request = Net::HTTP::Post.new(url)
3564
+ request["Authorization"] = 'Bearer <api_key>'
3565
+ request["Content-Type"] = 'application/json'
3566
+ request.body = "{}"
3567
+
3568
+ response = http.request(request)
3569
+ puts response.read_body
3570
+ ```
3571
+
3572
+ ```java
3573
+ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes")
3574
+ .header("Authorization", "Bearer <api_key>")
3575
+ .header("Content-Type", "application/json")
3576
+ .body("{}")
3577
+ .asString();
3578
+ ```
3579
+
3580
+ ```php
3581
+ <?php
3582
+
3583
+ $client = new \GuzzleHttp\Client();
3584
+
3585
+ $response = $client->request('POST', 'https://api.agentmail.to/v0/inboxes', [
3586
+ 'body' => '{}',
3587
+ 'headers' => [
3588
+ 'Authorization' => 'Bearer <api_key>',
3589
+ 'Content-Type' => 'application/json',
3590
+ ],
3591
+ ]);
3592
+
3593
+ echo $response->getBody();
3594
+ ```
3595
+
3596
+ ```csharp
3597
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes");
3598
+ var request = new RestRequest(Method.POST);
3599
+ request.AddHeader("Authorization", "Bearer <api_key>");
3600
+ request.AddHeader("Content-Type", "application/json");
3601
+ request.AddParameter("application/json", "{}", ParameterType.RequestBody);
3602
+ IRestResponse response = client.Execute(request);
3603
+ ```
3604
+
3605
+ ```swift
3606
+ import Foundation
3607
+
3608
+ let headers = [
3609
+ "Authorization": "Bearer <api_key>",
3610
+ "Content-Type": "application/json"
3611
+ ]
3612
+ let parameters = [] as [String : Any]
3613
+
3614
+ let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
3615
+
3616
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes")! as URL,
3617
+ cachePolicy: .useProtocolCachePolicy,
3618
+ timeoutInterval: 10.0)
3619
+ request.httpMethod = "POST"
3620
+ request.allHTTPHeaderFields = headers
3621
+ request.httpBody = postData as Data
3622
+
3623
+ let session = URLSession.shared
3624
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
3625
+ if (error != nil) {
3626
+ print(error as Any)
3627
+ } else {
3628
+ let httpResponse = response as? HTTPURLResponse
3629
+ print(httpResponse)
3630
+ }
3631
+ })
3632
+
3633
+ dataTask.resume()
3634
+ ```
3635
+
3125
3636
  # Delete Inbox
3126
3637
 
3127
3638
  DELETE https://api.agentmail.to/v0/inboxes/{inbox_id}
@@ -3199,6 +3710,101 @@ client.inboxes.delete(
3199
3710
 
3200
3711
  ```
3201
3712
 
3713
+ ```go
3714
+ package main
3715
+
3716
+ import (
3717
+ "fmt"
3718
+ "net/http"
3719
+ "io"
3720
+ )
3721
+
3722
+ func main() {
3723
+
3724
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id"
3725
+
3726
+ req, _ := http.NewRequest("DELETE", url, nil)
3727
+
3728
+ req.Header.Add("Authorization", "Bearer <api_key>")
3729
+
3730
+ res, _ := http.DefaultClient.Do(req)
3731
+
3732
+ defer res.Body.Close()
3733
+ body, _ := io.ReadAll(res.Body)
3734
+
3735
+ fmt.Println(res)
3736
+ fmt.Println(string(body))
3737
+
3738
+ }
3739
+ ```
3740
+
3741
+ ```ruby
3742
+ require 'uri'
3743
+ require 'net/http'
3744
+
3745
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id")
3746
+
3747
+ http = Net::HTTP.new(url.host, url.port)
3748
+ http.use_ssl = true
3749
+
3750
+ request = Net::HTTP::Delete.new(url)
3751
+ request["Authorization"] = 'Bearer <api_key>'
3752
+
3753
+ response = http.request(request)
3754
+ puts response.read_body
3755
+ ```
3756
+
3757
+ ```java
3758
+ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/inboxes/inbox_id")
3759
+ .header("Authorization", "Bearer <api_key>")
3760
+ .asString();
3761
+ ```
3762
+
3763
+ ```php
3764
+ <?php
3765
+
3766
+ $client = new \GuzzleHttp\Client();
3767
+
3768
+ $response = $client->request('DELETE', 'https://api.agentmail.to/v0/inboxes/inbox_id', [
3769
+ 'headers' => [
3770
+ 'Authorization' => 'Bearer <api_key>',
3771
+ ],
3772
+ ]);
3773
+
3774
+ echo $response->getBody();
3775
+ ```
3776
+
3777
+ ```csharp
3778
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id");
3779
+ var request = new RestRequest(Method.DELETE);
3780
+ request.AddHeader("Authorization", "Bearer <api_key>");
3781
+ IRestResponse response = client.Execute(request);
3782
+ ```
3783
+
3784
+ ```swift
3785
+ import Foundation
3786
+
3787
+ let headers = ["Authorization": "Bearer <api_key>"]
3788
+
3789
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id")! as URL,
3790
+ cachePolicy: .useProtocolCachePolicy,
3791
+ timeoutInterval: 10.0)
3792
+ request.httpMethod = "DELETE"
3793
+ request.allHTTPHeaderFields = headers
3794
+
3795
+ let session = URLSession.shared
3796
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
3797
+ if (error != nil) {
3798
+ print(error as Any)
3799
+ } else {
3800
+ let httpResponse = response as? HTTPURLResponse
3801
+ print(httpResponse)
3802
+ }
3803
+ })
3804
+
3805
+ dataTask.resume()
3806
+ ```
3807
+
3202
3808
  # List Threads
3203
3809
 
3204
3810
  GET https://api.agentmail.to/v0/inboxes/{inbox_id}/threads
@@ -3464,43 +4070,138 @@ client.inboxes.threads.list(
3464
4070
 
3465
4071
  ```
3466
4072
 
3467
- # Get Thread
4073
+ ```go
4074
+ package main
3468
4075
 
3469
- GET https://api.agentmail.to/v0/inboxes/{inbox_id}/threads/{thread_id}
4076
+ import (
4077
+ "fmt"
4078
+ "net/http"
4079
+ "io"
4080
+ )
3470
4081
 
3471
- Reference: https://docs.agentmail.to/api-reference/inboxes/threads/get
4082
+ func main() {
3472
4083
 
3473
- ## OpenAPI Specification
4084
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/threads"
3474
4085
 
3475
- ```yaml
3476
- openapi: 3.1.1
3477
- info:
3478
- title: Get Thread
3479
- version: endpoint_inboxes/threads.get
3480
- paths:
3481
- /v0/inboxes/{inbox_id}/threads/{thread_id}:
3482
- get:
3483
- operationId: get
3484
- summary: Get Thread
3485
- tags:
3486
- - - subpackage_inboxes
3487
- - subpackage_inboxes/threads
3488
- parameters:
3489
- - name: inbox_id
3490
- in: path
3491
- required: true
3492
- schema:
3493
- $ref: '#/components/schemas/type_inboxes:InboxId'
3494
- - name: thread_id
3495
- in: path
3496
- required: true
3497
- schema:
3498
- $ref: '#/components/schemas/type_threads:ThreadId'
3499
- - name: Authorization
3500
- in: header
3501
- description: >-
3502
- Bearer authentication of the form `Bearer <token>`, where token is
3503
- your auth token.
4086
+ req, _ := http.NewRequest("GET", url, nil)
4087
+
4088
+ req.Header.Add("Authorization", "Bearer <api_key>")
4089
+
4090
+ res, _ := http.DefaultClient.Do(req)
4091
+
4092
+ defer res.Body.Close()
4093
+ body, _ := io.ReadAll(res.Body)
4094
+
4095
+ fmt.Println(res)
4096
+ fmt.Println(string(body))
4097
+
4098
+ }
4099
+ ```
4100
+
4101
+ ```ruby
4102
+ require 'uri'
4103
+ require 'net/http'
4104
+
4105
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/threads")
4106
+
4107
+ http = Net::HTTP.new(url.host, url.port)
4108
+ http.use_ssl = true
4109
+
4110
+ request = Net::HTTP::Get.new(url)
4111
+ request["Authorization"] = 'Bearer <api_key>'
4112
+
4113
+ response = http.request(request)
4114
+ puts response.read_body
4115
+ ```
4116
+
4117
+ ```java
4118
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/threads")
4119
+ .header("Authorization", "Bearer <api_key>")
4120
+ .asString();
4121
+ ```
4122
+
4123
+ ```php
4124
+ <?php
4125
+
4126
+ $client = new \GuzzleHttp\Client();
4127
+
4128
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/inbox_id/threads', [
4129
+ 'headers' => [
4130
+ 'Authorization' => 'Bearer <api_key>',
4131
+ ],
4132
+ ]);
4133
+
4134
+ echo $response->getBody();
4135
+ ```
4136
+
4137
+ ```csharp
4138
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/threads");
4139
+ var request = new RestRequest(Method.GET);
4140
+ request.AddHeader("Authorization", "Bearer <api_key>");
4141
+ IRestResponse response = client.Execute(request);
4142
+ ```
4143
+
4144
+ ```swift
4145
+ import Foundation
4146
+
4147
+ let headers = ["Authorization": "Bearer <api_key>"]
4148
+
4149
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/threads")! as URL,
4150
+ cachePolicy: .useProtocolCachePolicy,
4151
+ timeoutInterval: 10.0)
4152
+ request.httpMethod = "GET"
4153
+ request.allHTTPHeaderFields = headers
4154
+
4155
+ let session = URLSession.shared
4156
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
4157
+ if (error != nil) {
4158
+ print(error as Any)
4159
+ } else {
4160
+ let httpResponse = response as? HTTPURLResponse
4161
+ print(httpResponse)
4162
+ }
4163
+ })
4164
+
4165
+ dataTask.resume()
4166
+ ```
4167
+
4168
+ # Get Thread
4169
+
4170
+ GET https://api.agentmail.to/v0/inboxes/{inbox_id}/threads/{thread_id}
4171
+
4172
+ Reference: https://docs.agentmail.to/api-reference/inboxes/threads/get
4173
+
4174
+ ## OpenAPI Specification
4175
+
4176
+ ```yaml
4177
+ openapi: 3.1.1
4178
+ info:
4179
+ title: Get Thread
4180
+ version: endpoint_inboxes/threads.get
4181
+ paths:
4182
+ /v0/inboxes/{inbox_id}/threads/{thread_id}:
4183
+ get:
4184
+ operationId: get
4185
+ summary: Get Thread
4186
+ tags:
4187
+ - - subpackage_inboxes
4188
+ - subpackage_inboxes/threads
4189
+ parameters:
4190
+ - name: inbox_id
4191
+ in: path
4192
+ required: true
4193
+ schema:
4194
+ $ref: '#/components/schemas/type_inboxes:InboxId'
4195
+ - name: thread_id
4196
+ in: path
4197
+ required: true
4198
+ schema:
4199
+ $ref: '#/components/schemas/type_threads:ThreadId'
4200
+ - name: Authorization
4201
+ in: header
4202
+ description: >-
4203
+ Bearer authentication of the form `Bearer <token>`, where token is
4204
+ your auth token.
3504
4205
  required: true
3505
4206
  schema:
3506
4207
  type: string
@@ -3781,6 +4482,101 @@ client.inboxes.threads.get(
3781
4482
 
3782
4483
  ```
3783
4484
 
4485
+ ```go
4486
+ package main
4487
+
4488
+ import (
4489
+ "fmt"
4490
+ "net/http"
4491
+ "io"
4492
+ )
4493
+
4494
+ func main() {
4495
+
4496
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id"
4497
+
4498
+ req, _ := http.NewRequest("GET", url, nil)
4499
+
4500
+ req.Header.Add("Authorization", "Bearer <api_key>")
4501
+
4502
+ res, _ := http.DefaultClient.Do(req)
4503
+
4504
+ defer res.Body.Close()
4505
+ body, _ := io.ReadAll(res.Body)
4506
+
4507
+ fmt.Println(res)
4508
+ fmt.Println(string(body))
4509
+
4510
+ }
4511
+ ```
4512
+
4513
+ ```ruby
4514
+ require 'uri'
4515
+ require 'net/http'
4516
+
4517
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id")
4518
+
4519
+ http = Net::HTTP.new(url.host, url.port)
4520
+ http.use_ssl = true
4521
+
4522
+ request = Net::HTTP::Get.new(url)
4523
+ request["Authorization"] = 'Bearer <api_key>'
4524
+
4525
+ response = http.request(request)
4526
+ puts response.read_body
4527
+ ```
4528
+
4529
+ ```java
4530
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id")
4531
+ .header("Authorization", "Bearer <api_key>")
4532
+ .asString();
4533
+ ```
4534
+
4535
+ ```php
4536
+ <?php
4537
+
4538
+ $client = new \GuzzleHttp\Client();
4539
+
4540
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id', [
4541
+ 'headers' => [
4542
+ 'Authorization' => 'Bearer <api_key>',
4543
+ ],
4544
+ ]);
4545
+
4546
+ echo $response->getBody();
4547
+ ```
4548
+
4549
+ ```csharp
4550
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id");
4551
+ var request = new RestRequest(Method.GET);
4552
+ request.AddHeader("Authorization", "Bearer <api_key>");
4553
+ IRestResponse response = client.Execute(request);
4554
+ ```
4555
+
4556
+ ```swift
4557
+ import Foundation
4558
+
4559
+ let headers = ["Authorization": "Bearer <api_key>"]
4560
+
4561
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id")! as URL,
4562
+ cachePolicy: .useProtocolCachePolicy,
4563
+ timeoutInterval: 10.0)
4564
+ request.httpMethod = "GET"
4565
+ request.allHTTPHeaderFields = headers
4566
+
4567
+ let session = URLSession.shared
4568
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
4569
+ if (error != nil) {
4570
+ print(error as Any)
4571
+ } else {
4572
+ let httpResponse = response as? HTTPURLResponse
4573
+ print(httpResponse)
4574
+ }
4575
+ })
4576
+
4577
+ dataTask.resume()
4578
+ ```
4579
+
3784
4580
  # Get Attachment
3785
4581
 
3786
4582
  GET https://api.agentmail.to/v0/inboxes/{inbox_id}/threads/{thread_id}/attachments/{attachment_id}
@@ -3880,6 +4676,101 @@ client.inboxes.threads.get_attachment(
3880
4676
 
3881
4677
  ```
3882
4678
 
4679
+ ```go
4680
+ package main
4681
+
4682
+ import (
4683
+ "fmt"
4684
+ "net/http"
4685
+ "io"
4686
+ )
4687
+
4688
+ func main() {
4689
+
4690
+ url := "https://api.agentmail.to/v0/inboxes/%3Ainbox_id/threads/%3Athread_id/attachments/%3Aattachment_id"
4691
+
4692
+ req, _ := http.NewRequest("GET", url, nil)
4693
+
4694
+ req.Header.Add("Authorization", "Bearer <api_key>")
4695
+
4696
+ res, _ := http.DefaultClient.Do(req)
4697
+
4698
+ defer res.Body.Close()
4699
+ body, _ := io.ReadAll(res.Body)
4700
+
4701
+ fmt.Println(res)
4702
+ fmt.Println(string(body))
4703
+
4704
+ }
4705
+ ```
4706
+
4707
+ ```ruby
4708
+ require 'uri'
4709
+ require 'net/http'
4710
+
4711
+ url = URI("https://api.agentmail.to/v0/inboxes/%3Ainbox_id/threads/%3Athread_id/attachments/%3Aattachment_id")
4712
+
4713
+ http = Net::HTTP.new(url.host, url.port)
4714
+ http.use_ssl = true
4715
+
4716
+ request = Net::HTTP::Get.new(url)
4717
+ request["Authorization"] = 'Bearer <api_key>'
4718
+
4719
+ response = http.request(request)
4720
+ puts response.read_body
4721
+ ```
4722
+
4723
+ ```java
4724
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/%3Ainbox_id/threads/%3Athread_id/attachments/%3Aattachment_id")
4725
+ .header("Authorization", "Bearer <api_key>")
4726
+ .asString();
4727
+ ```
4728
+
4729
+ ```php
4730
+ <?php
4731
+
4732
+ $client = new \GuzzleHttp\Client();
4733
+
4734
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/%3Ainbox_id/threads/%3Athread_id/attachments/%3Aattachment_id', [
4735
+ 'headers' => [
4736
+ 'Authorization' => 'Bearer <api_key>',
4737
+ ],
4738
+ ]);
4739
+
4740
+ echo $response->getBody();
4741
+ ```
4742
+
4743
+ ```csharp
4744
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/%3Ainbox_id/threads/%3Athread_id/attachments/%3Aattachment_id");
4745
+ var request = new RestRequest(Method.GET);
4746
+ request.AddHeader("Authorization", "Bearer <api_key>");
4747
+ IRestResponse response = client.Execute(request);
4748
+ ```
4749
+
4750
+ ```swift
4751
+ import Foundation
4752
+
4753
+ let headers = ["Authorization": "Bearer <api_key>"]
4754
+
4755
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/%3Ainbox_id/threads/%3Athread_id/attachments/%3Aattachment_id")! as URL,
4756
+ cachePolicy: .useProtocolCachePolicy,
4757
+ timeoutInterval: 10.0)
4758
+ request.httpMethod = "GET"
4759
+ request.allHTTPHeaderFields = headers
4760
+
4761
+ let session = URLSession.shared
4762
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
4763
+ if (error != nil) {
4764
+ print(error as Any)
4765
+ } else {
4766
+ let httpResponse = response as? HTTPURLResponse
4767
+ print(httpResponse)
4768
+ }
4769
+ })
4770
+
4771
+ dataTask.resume()
4772
+ ```
4773
+
3883
4774
  # Delete Thread
3884
4775
 
3885
4776
  DELETE https://api.agentmail.to/v0/inboxes/{inbox_id}/threads/{thread_id}
@@ -3966,6 +4857,101 @@ client.inboxes.threads.delete(
3966
4857
 
3967
4858
  ```
3968
4859
 
4860
+ ```go
4861
+ package main
4862
+
4863
+ import (
4864
+ "fmt"
4865
+ "net/http"
4866
+ "io"
4867
+ )
4868
+
4869
+ func main() {
4870
+
4871
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id"
4872
+
4873
+ req, _ := http.NewRequest("DELETE", url, nil)
4874
+
4875
+ req.Header.Add("Authorization", "Bearer <api_key>")
4876
+
4877
+ res, _ := http.DefaultClient.Do(req)
4878
+
4879
+ defer res.Body.Close()
4880
+ body, _ := io.ReadAll(res.Body)
4881
+
4882
+ fmt.Println(res)
4883
+ fmt.Println(string(body))
4884
+
4885
+ }
4886
+ ```
4887
+
4888
+ ```ruby
4889
+ require 'uri'
4890
+ require 'net/http'
4891
+
4892
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id")
4893
+
4894
+ http = Net::HTTP.new(url.host, url.port)
4895
+ http.use_ssl = true
4896
+
4897
+ request = Net::HTTP::Delete.new(url)
4898
+ request["Authorization"] = 'Bearer <api_key>'
4899
+
4900
+ response = http.request(request)
4901
+ puts response.read_body
4902
+ ```
4903
+
4904
+ ```java
4905
+ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id")
4906
+ .header("Authorization", "Bearer <api_key>")
4907
+ .asString();
4908
+ ```
4909
+
4910
+ ```php
4911
+ <?php
4912
+
4913
+ $client = new \GuzzleHttp\Client();
4914
+
4915
+ $response = $client->request('DELETE', 'https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id', [
4916
+ 'headers' => [
4917
+ 'Authorization' => 'Bearer <api_key>',
4918
+ ],
4919
+ ]);
4920
+
4921
+ echo $response->getBody();
4922
+ ```
4923
+
4924
+ ```csharp
4925
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id");
4926
+ var request = new RestRequest(Method.DELETE);
4927
+ request.AddHeader("Authorization", "Bearer <api_key>");
4928
+ IRestResponse response = client.Execute(request);
4929
+ ```
4930
+
4931
+ ```swift
4932
+ import Foundation
4933
+
4934
+ let headers = ["Authorization": "Bearer <api_key>"]
4935
+
4936
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id")! as URL,
4937
+ cachePolicy: .useProtocolCachePolicy,
4938
+ timeoutInterval: 10.0)
4939
+ request.httpMethod = "DELETE"
4940
+ request.allHTTPHeaderFields = headers
4941
+
4942
+ let session = URLSession.shared
4943
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
4944
+ if (error != nil) {
4945
+ print(error as Any)
4946
+ } else {
4947
+ let httpResponse = response as? HTTPURLResponse
4948
+ print(httpResponse)
4949
+ }
4950
+ })
4951
+
4952
+ dataTask.resume()
4953
+ ```
4954
+
3969
4955
  # List Messages
3970
4956
 
3971
4957
  GET https://api.agentmail.to/v0/inboxes/{inbox_id}/messages
@@ -4234,6 +5220,101 @@ client.inboxes.messages.list(
4234
5220
 
4235
5221
  ```
4236
5222
 
5223
+ ```go
5224
+ package main
5225
+
5226
+ import (
5227
+ "fmt"
5228
+ "net/http"
5229
+ "io"
5230
+ )
5231
+
5232
+ func main() {
5233
+
5234
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/messages"
5235
+
5236
+ req, _ := http.NewRequest("GET", url, nil)
5237
+
5238
+ req.Header.Add("Authorization", "Bearer <api_key>")
5239
+
5240
+ res, _ := http.DefaultClient.Do(req)
5241
+
5242
+ defer res.Body.Close()
5243
+ body, _ := io.ReadAll(res.Body)
5244
+
5245
+ fmt.Println(res)
5246
+ fmt.Println(string(body))
5247
+
5248
+ }
5249
+ ```
5250
+
5251
+ ```ruby
5252
+ require 'uri'
5253
+ require 'net/http'
5254
+
5255
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/messages")
5256
+
5257
+ http = Net::HTTP.new(url.host, url.port)
5258
+ http.use_ssl = true
5259
+
5260
+ request = Net::HTTP::Get.new(url)
5261
+ request["Authorization"] = 'Bearer <api_key>'
5262
+
5263
+ response = http.request(request)
5264
+ puts response.read_body
5265
+ ```
5266
+
5267
+ ```java
5268
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/messages")
5269
+ .header("Authorization", "Bearer <api_key>")
5270
+ .asString();
5271
+ ```
5272
+
5273
+ ```php
5274
+ <?php
5275
+
5276
+ $client = new \GuzzleHttp\Client();
5277
+
5278
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/inbox_id/messages', [
5279
+ 'headers' => [
5280
+ 'Authorization' => 'Bearer <api_key>',
5281
+ ],
5282
+ ]);
5283
+
5284
+ echo $response->getBody();
5285
+ ```
5286
+
5287
+ ```csharp
5288
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages");
5289
+ var request = new RestRequest(Method.GET);
5290
+ request.AddHeader("Authorization", "Bearer <api_key>");
5291
+ IRestResponse response = client.Execute(request);
5292
+ ```
5293
+
5294
+ ```swift
5295
+ import Foundation
5296
+
5297
+ let headers = ["Authorization": "Bearer <api_key>"]
5298
+
5299
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/messages")! as URL,
5300
+ cachePolicy: .useProtocolCachePolicy,
5301
+ timeoutInterval: 10.0)
5302
+ request.httpMethod = "GET"
5303
+ request.allHTTPHeaderFields = headers
5304
+
5305
+ let session = URLSession.shared
5306
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
5307
+ if (error != nil) {
5308
+ print(error as Any)
5309
+ } else {
5310
+ let httpResponse = response as? HTTPURLResponse
5311
+ print(httpResponse)
5312
+ }
5313
+ })
5314
+
5315
+ dataTask.resume()
5316
+ ```
5317
+
4237
5318
  # Get Message
4238
5319
 
4239
5320
  GET https://api.agentmail.to/v0/inboxes/{inbox_id}/messages/{message_id}
@@ -4456,6 +5537,101 @@ client.inboxes.messages.get(
4456
5537
 
4457
5538
  ```
4458
5539
 
5540
+ ```go
5541
+ package main
5542
+
5543
+ import (
5544
+ "fmt"
5545
+ "net/http"
5546
+ "io"
5547
+ )
5548
+
5549
+ func main() {
5550
+
5551
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id"
5552
+
5553
+ req, _ := http.NewRequest("GET", url, nil)
5554
+
5555
+ req.Header.Add("Authorization", "Bearer <api_key>")
5556
+
5557
+ res, _ := http.DefaultClient.Do(req)
5558
+
5559
+ defer res.Body.Close()
5560
+ body, _ := io.ReadAll(res.Body)
5561
+
5562
+ fmt.Println(res)
5563
+ fmt.Println(string(body))
5564
+
5565
+ }
5566
+ ```
5567
+
5568
+ ```ruby
5569
+ require 'uri'
5570
+ require 'net/http'
5571
+
5572
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id")
5573
+
5574
+ http = Net::HTTP.new(url.host, url.port)
5575
+ http.use_ssl = true
5576
+
5577
+ request = Net::HTTP::Get.new(url)
5578
+ request["Authorization"] = 'Bearer <api_key>'
5579
+
5580
+ response = http.request(request)
5581
+ puts response.read_body
5582
+ ```
5583
+
5584
+ ```java
5585
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id")
5586
+ .header("Authorization", "Bearer <api_key>")
5587
+ .asString();
5588
+ ```
5589
+
5590
+ ```php
5591
+ <?php
5592
+
5593
+ $client = new \GuzzleHttp\Client();
5594
+
5595
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id', [
5596
+ 'headers' => [
5597
+ 'Authorization' => 'Bearer <api_key>',
5598
+ ],
5599
+ ]);
5600
+
5601
+ echo $response->getBody();
5602
+ ```
5603
+
5604
+ ```csharp
5605
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id");
5606
+ var request = new RestRequest(Method.GET);
5607
+ request.AddHeader("Authorization", "Bearer <api_key>");
5608
+ IRestResponse response = client.Execute(request);
5609
+ ```
5610
+
5611
+ ```swift
5612
+ import Foundation
5613
+
5614
+ let headers = ["Authorization": "Bearer <api_key>"]
5615
+
5616
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id")! as URL,
5617
+ cachePolicy: .useProtocolCachePolicy,
5618
+ timeoutInterval: 10.0)
5619
+ request.httpMethod = "GET"
5620
+ request.allHTTPHeaderFields = headers
5621
+
5622
+ let session = URLSession.shared
5623
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
5624
+ if (error != nil) {
5625
+ print(error as Any)
5626
+ } else {
5627
+ let httpResponse = response as? HTTPURLResponse
5628
+ print(httpResponse)
5629
+ }
5630
+ })
5631
+
5632
+ dataTask.resume()
5633
+ ```
5634
+
4459
5635
  # Get Attachment
4460
5636
 
4461
5637
  GET https://api.agentmail.to/v0/inboxes/{inbox_id}/messages/{message_id}/attachments/{attachment_id}
@@ -4555,17 +5731,112 @@ client.inboxes.messages.get_attachment(
4555
5731
 
4556
5732
  ```
4557
5733
 
4558
- # Get Raw Message
5734
+ ```go
5735
+ package main
4559
5736
 
4560
- GET https://api.agentmail.to/v0/inboxes/{inbox_id}/messages/{message_id}/raw
5737
+ import (
5738
+ "fmt"
5739
+ "net/http"
5740
+ "io"
5741
+ )
4561
5742
 
4562
- Reference: https://docs.agentmail.to/api-reference/inboxes/messages/get-raw
5743
+ func main() {
4563
5744
 
4564
- ## OpenAPI Specification
5745
+ url := "https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/attachments/%3Aattachment_id"
4565
5746
 
4566
- ```yaml
4567
- openapi: 3.1.1
4568
- info:
5747
+ req, _ := http.NewRequest("GET", url, nil)
5748
+
5749
+ req.Header.Add("Authorization", "Bearer <api_key>")
5750
+
5751
+ res, _ := http.DefaultClient.Do(req)
5752
+
5753
+ defer res.Body.Close()
5754
+ body, _ := io.ReadAll(res.Body)
5755
+
5756
+ fmt.Println(res)
5757
+ fmt.Println(string(body))
5758
+
5759
+ }
5760
+ ```
5761
+
5762
+ ```ruby
5763
+ require 'uri'
5764
+ require 'net/http'
5765
+
5766
+ url = URI("https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/attachments/%3Aattachment_id")
5767
+
5768
+ http = Net::HTTP.new(url.host, url.port)
5769
+ http.use_ssl = true
5770
+
5771
+ request = Net::HTTP::Get.new(url)
5772
+ request["Authorization"] = 'Bearer <api_key>'
5773
+
5774
+ response = http.request(request)
5775
+ puts response.read_body
5776
+ ```
5777
+
5778
+ ```java
5779
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/attachments/%3Aattachment_id")
5780
+ .header("Authorization", "Bearer <api_key>")
5781
+ .asString();
5782
+ ```
5783
+
5784
+ ```php
5785
+ <?php
5786
+
5787
+ $client = new \GuzzleHttp\Client();
5788
+
5789
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/attachments/%3Aattachment_id', [
5790
+ 'headers' => [
5791
+ 'Authorization' => 'Bearer <api_key>',
5792
+ ],
5793
+ ]);
5794
+
5795
+ echo $response->getBody();
5796
+ ```
5797
+
5798
+ ```csharp
5799
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/attachments/%3Aattachment_id");
5800
+ var request = new RestRequest(Method.GET);
5801
+ request.AddHeader("Authorization", "Bearer <api_key>");
5802
+ IRestResponse response = client.Execute(request);
5803
+ ```
5804
+
5805
+ ```swift
5806
+ import Foundation
5807
+
5808
+ let headers = ["Authorization": "Bearer <api_key>"]
5809
+
5810
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/attachments/%3Aattachment_id")! as URL,
5811
+ cachePolicy: .useProtocolCachePolicy,
5812
+ timeoutInterval: 10.0)
5813
+ request.httpMethod = "GET"
5814
+ request.allHTTPHeaderFields = headers
5815
+
5816
+ let session = URLSession.shared
5817
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
5818
+ if (error != nil) {
5819
+ print(error as Any)
5820
+ } else {
5821
+ let httpResponse = response as? HTTPURLResponse
5822
+ print(httpResponse)
5823
+ }
5824
+ })
5825
+
5826
+ dataTask.resume()
5827
+ ```
5828
+
5829
+ # Get Raw Message
5830
+
5831
+ GET https://api.agentmail.to/v0/inboxes/{inbox_id}/messages/{message_id}/raw
5832
+
5833
+ Reference: https://docs.agentmail.to/api-reference/inboxes/messages/get-raw
5834
+
5835
+ ## OpenAPI Specification
5836
+
5837
+ ```yaml
5838
+ openapi: 3.1.1
5839
+ info:
4569
5840
  title: Get Raw Message
4570
5841
  version: endpoint_inboxes/messages.getRaw
4571
5842
  paths:
@@ -4646,6 +5917,101 @@ client.inboxes.messages.get_raw(
4646
5917
 
4647
5918
  ```
4648
5919
 
5920
+ ```go
5921
+ package main
5922
+
5923
+ import (
5924
+ "fmt"
5925
+ "net/http"
5926
+ "io"
5927
+ )
5928
+
5929
+ func main() {
5930
+
5931
+ url := "https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/raw"
5932
+
5933
+ req, _ := http.NewRequest("GET", url, nil)
5934
+
5935
+ req.Header.Add("Authorization", "Bearer <api_key>")
5936
+
5937
+ res, _ := http.DefaultClient.Do(req)
5938
+
5939
+ defer res.Body.Close()
5940
+ body, _ := io.ReadAll(res.Body)
5941
+
5942
+ fmt.Println(res)
5943
+ fmt.Println(string(body))
5944
+
5945
+ }
5946
+ ```
5947
+
5948
+ ```ruby
5949
+ require 'uri'
5950
+ require 'net/http'
5951
+
5952
+ url = URI("https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/raw")
5953
+
5954
+ http = Net::HTTP.new(url.host, url.port)
5955
+ http.use_ssl = true
5956
+
5957
+ request = Net::HTTP::Get.new(url)
5958
+ request["Authorization"] = 'Bearer <api_key>'
5959
+
5960
+ response = http.request(request)
5961
+ puts response.read_body
5962
+ ```
5963
+
5964
+ ```java
5965
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/raw")
5966
+ .header("Authorization", "Bearer <api_key>")
5967
+ .asString();
5968
+ ```
5969
+
5970
+ ```php
5971
+ <?php
5972
+
5973
+ $client = new \GuzzleHttp\Client();
5974
+
5975
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/raw', [
5976
+ 'headers' => [
5977
+ 'Authorization' => 'Bearer <api_key>',
5978
+ ],
5979
+ ]);
5980
+
5981
+ echo $response->getBody();
5982
+ ```
5983
+
5984
+ ```csharp
5985
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/raw");
5986
+ var request = new RestRequest(Method.GET);
5987
+ request.AddHeader("Authorization", "Bearer <api_key>");
5988
+ IRestResponse response = client.Execute(request);
5989
+ ```
5990
+
5991
+ ```swift
5992
+ import Foundation
5993
+
5994
+ let headers = ["Authorization": "Bearer <api_key>"]
5995
+
5996
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/raw")! as URL,
5997
+ cachePolicy: .useProtocolCachePolicy,
5998
+ timeoutInterval: 10.0)
5999
+ request.httpMethod = "GET"
6000
+ request.allHTTPHeaderFields = headers
6001
+
6002
+ let session = URLSession.shared
6003
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
6004
+ if (error != nil) {
6005
+ print(error as Any)
6006
+ } else {
6007
+ let httpResponse = response as? HTTPURLResponse
6008
+ print(httpResponse)
6009
+ }
6010
+ })
6011
+
6012
+ dataTask.resume()
6013
+ ```
6014
+
4649
6015
  # Send Message
4650
6016
 
4651
6017
  POST https://api.agentmail.to/v0/inboxes/{inbox_id}/messages/send
@@ -4820,6 +6186,120 @@ client.inboxes.messages.send(
4820
6186
 
4821
6187
  ```
4822
6188
 
6189
+ ```go
6190
+ package main
6191
+
6192
+ import (
6193
+ "fmt"
6194
+ "strings"
6195
+ "net/http"
6196
+ "io"
6197
+ )
6198
+
6199
+ func main() {
6200
+
6201
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/messages/send"
6202
+
6203
+ payload := strings.NewReader("{}")
6204
+
6205
+ req, _ := http.NewRequest("POST", url, payload)
6206
+
6207
+ req.Header.Add("Authorization", "Bearer <api_key>")
6208
+ req.Header.Add("Content-Type", "application/json")
6209
+
6210
+ res, _ := http.DefaultClient.Do(req)
6211
+
6212
+ defer res.Body.Close()
6213
+ body, _ := io.ReadAll(res.Body)
6214
+
6215
+ fmt.Println(res)
6216
+ fmt.Println(string(body))
6217
+
6218
+ }
6219
+ ```
6220
+
6221
+ ```ruby
6222
+ require 'uri'
6223
+ require 'net/http'
6224
+
6225
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/messages/send")
6226
+
6227
+ http = Net::HTTP.new(url.host, url.port)
6228
+ http.use_ssl = true
6229
+
6230
+ request = Net::HTTP::Post.new(url)
6231
+ request["Authorization"] = 'Bearer <api_key>'
6232
+ request["Content-Type"] = 'application/json'
6233
+ request.body = "{}"
6234
+
6235
+ response = http.request(request)
6236
+ puts response.read_body
6237
+ ```
6238
+
6239
+ ```java
6240
+ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes/inbox_id/messages/send")
6241
+ .header("Authorization", "Bearer <api_key>")
6242
+ .header("Content-Type", "application/json")
6243
+ .body("{}")
6244
+ .asString();
6245
+ ```
6246
+
6247
+ ```php
6248
+ <?php
6249
+
6250
+ $client = new \GuzzleHttp\Client();
6251
+
6252
+ $response = $client->request('POST', 'https://api.agentmail.to/v0/inboxes/inbox_id/messages/send', [
6253
+ 'body' => '{}',
6254
+ 'headers' => [
6255
+ 'Authorization' => 'Bearer <api_key>',
6256
+ 'Content-Type' => 'application/json',
6257
+ ],
6258
+ ]);
6259
+
6260
+ echo $response->getBody();
6261
+ ```
6262
+
6263
+ ```csharp
6264
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages/send");
6265
+ var request = new RestRequest(Method.POST);
6266
+ request.AddHeader("Authorization", "Bearer <api_key>");
6267
+ request.AddHeader("Content-Type", "application/json");
6268
+ request.AddParameter("application/json", "{}", ParameterType.RequestBody);
6269
+ IRestResponse response = client.Execute(request);
6270
+ ```
6271
+
6272
+ ```swift
6273
+ import Foundation
6274
+
6275
+ let headers = [
6276
+ "Authorization": "Bearer <api_key>",
6277
+ "Content-Type": "application/json"
6278
+ ]
6279
+ let parameters = [] as [String : Any]
6280
+
6281
+ let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
6282
+
6283
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/messages/send")! as URL,
6284
+ cachePolicy: .useProtocolCachePolicy,
6285
+ timeoutInterval: 10.0)
6286
+ request.httpMethod = "POST"
6287
+ request.allHTTPHeaderFields = headers
6288
+ request.httpBody = postData as Data
6289
+
6290
+ let session = URLSession.shared
6291
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
6292
+ if (error != nil) {
6293
+ print(error as Any)
6294
+ } else {
6295
+ let httpResponse = response as? HTTPURLResponse
6296
+ print(httpResponse)
6297
+ }
6298
+ })
6299
+
6300
+ dataTask.resume()
6301
+ ```
6302
+
4823
6303
  # Reply To Message
4824
6304
 
4825
6305
  POST https://api.agentmail.to/v0/inboxes/{inbox_id}/messages/{message_id}/reply
@@ -4996,6 +6476,120 @@ client.inboxes.messages.reply(
4996
6476
 
4997
6477
  ```
4998
6478
 
6479
+ ```go
6480
+ package main
6481
+
6482
+ import (
6483
+ "fmt"
6484
+ "strings"
6485
+ "net/http"
6486
+ "io"
6487
+ )
6488
+
6489
+ func main() {
6490
+
6491
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/reply"
6492
+
6493
+ payload := strings.NewReader("{}")
6494
+
6495
+ req, _ := http.NewRequest("POST", url, payload)
6496
+
6497
+ req.Header.Add("Authorization", "Bearer <api_key>")
6498
+ req.Header.Add("Content-Type", "application/json")
6499
+
6500
+ res, _ := http.DefaultClient.Do(req)
6501
+
6502
+ defer res.Body.Close()
6503
+ body, _ := io.ReadAll(res.Body)
6504
+
6505
+ fmt.Println(res)
6506
+ fmt.Println(string(body))
6507
+
6508
+ }
6509
+ ```
6510
+
6511
+ ```ruby
6512
+ require 'uri'
6513
+ require 'net/http'
6514
+
6515
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/reply")
6516
+
6517
+ http = Net::HTTP.new(url.host, url.port)
6518
+ http.use_ssl = true
6519
+
6520
+ request = Net::HTTP::Post.new(url)
6521
+ request["Authorization"] = 'Bearer <api_key>'
6522
+ request["Content-Type"] = 'application/json'
6523
+ request.body = "{}"
6524
+
6525
+ response = http.request(request)
6526
+ puts response.read_body
6527
+ ```
6528
+
6529
+ ```java
6530
+ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/reply")
6531
+ .header("Authorization", "Bearer <api_key>")
6532
+ .header("Content-Type", "application/json")
6533
+ .body("{}")
6534
+ .asString();
6535
+ ```
6536
+
6537
+ ```php
6538
+ <?php
6539
+
6540
+ $client = new \GuzzleHttp\Client();
6541
+
6542
+ $response = $client->request('POST', 'https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/reply', [
6543
+ 'body' => '{}',
6544
+ 'headers' => [
6545
+ 'Authorization' => 'Bearer <api_key>',
6546
+ 'Content-Type' => 'application/json',
6547
+ ],
6548
+ ]);
6549
+
6550
+ echo $response->getBody();
6551
+ ```
6552
+
6553
+ ```csharp
6554
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/reply");
6555
+ var request = new RestRequest(Method.POST);
6556
+ request.AddHeader("Authorization", "Bearer <api_key>");
6557
+ request.AddHeader("Content-Type", "application/json");
6558
+ request.AddParameter("application/json", "{}", ParameterType.RequestBody);
6559
+ IRestResponse response = client.Execute(request);
6560
+ ```
6561
+
6562
+ ```swift
6563
+ import Foundation
6564
+
6565
+ let headers = [
6566
+ "Authorization": "Bearer <api_key>",
6567
+ "Content-Type": "application/json"
6568
+ ]
6569
+ let parameters = [] as [String : Any]
6570
+
6571
+ let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
6572
+
6573
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/reply")! as URL,
6574
+ cachePolicy: .useProtocolCachePolicy,
6575
+ timeoutInterval: 10.0)
6576
+ request.httpMethod = "POST"
6577
+ request.allHTTPHeaderFields = headers
6578
+ request.httpBody = postData as Data
6579
+
6580
+ let session = URLSession.shared
6581
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
6582
+ if (error != nil) {
6583
+ print(error as Any)
6584
+ } else {
6585
+ let httpResponse = response as? HTTPURLResponse
6586
+ print(httpResponse)
6587
+ }
6588
+ })
6589
+
6590
+ dataTask.resume()
6591
+ ```
6592
+
4999
6593
  # Update Message
5000
6594
 
5001
6595
  PATCH https://api.agentmail.to/v0/inboxes/{inbox_id}/messages/{message_id}
@@ -5238,6 +6832,120 @@ client.inboxes.messages.update(
5238
6832
 
5239
6833
  ```
5240
6834
 
6835
+ ```go
6836
+ package main
6837
+
6838
+ import (
6839
+ "fmt"
6840
+ "strings"
6841
+ "net/http"
6842
+ "io"
6843
+ )
6844
+
6845
+ func main() {
6846
+
6847
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id"
6848
+
6849
+ payload := strings.NewReader("{}")
6850
+
6851
+ req, _ := http.NewRequest("PATCH", url, payload)
6852
+
6853
+ req.Header.Add("Authorization", "Bearer <api_key>")
6854
+ req.Header.Add("Content-Type", "application/json")
6855
+
6856
+ res, _ := http.DefaultClient.Do(req)
6857
+
6858
+ defer res.Body.Close()
6859
+ body, _ := io.ReadAll(res.Body)
6860
+
6861
+ fmt.Println(res)
6862
+ fmt.Println(string(body))
6863
+
6864
+ }
6865
+ ```
6866
+
6867
+ ```ruby
6868
+ require 'uri'
6869
+ require 'net/http'
6870
+
6871
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id")
6872
+
6873
+ http = Net::HTTP.new(url.host, url.port)
6874
+ http.use_ssl = true
6875
+
6876
+ request = Net::HTTP::Patch.new(url)
6877
+ request["Authorization"] = 'Bearer <api_key>'
6878
+ request["Content-Type"] = 'application/json'
6879
+ request.body = "{}"
6880
+
6881
+ response = http.request(request)
6882
+ puts response.read_body
6883
+ ```
6884
+
6885
+ ```java
6886
+ HttpResponse<String> response = Unirest.patch("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id")
6887
+ .header("Authorization", "Bearer <api_key>")
6888
+ .header("Content-Type", "application/json")
6889
+ .body("{}")
6890
+ .asString();
6891
+ ```
6892
+
6893
+ ```php
6894
+ <?php
6895
+
6896
+ $client = new \GuzzleHttp\Client();
6897
+
6898
+ $response = $client->request('PATCH', 'https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id', [
6899
+ 'body' => '{}',
6900
+ 'headers' => [
6901
+ 'Authorization' => 'Bearer <api_key>',
6902
+ 'Content-Type' => 'application/json',
6903
+ ],
6904
+ ]);
6905
+
6906
+ echo $response->getBody();
6907
+ ```
6908
+
6909
+ ```csharp
6910
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id");
6911
+ var request = new RestRequest(Method.PATCH);
6912
+ request.AddHeader("Authorization", "Bearer <api_key>");
6913
+ request.AddHeader("Content-Type", "application/json");
6914
+ request.AddParameter("application/json", "{}", ParameterType.RequestBody);
6915
+ IRestResponse response = client.Execute(request);
6916
+ ```
6917
+
6918
+ ```swift
6919
+ import Foundation
6920
+
6921
+ let headers = [
6922
+ "Authorization": "Bearer <api_key>",
6923
+ "Content-Type": "application/json"
6924
+ ]
6925
+ let parameters = [] as [String : Any]
6926
+
6927
+ let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
6928
+
6929
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id")! as URL,
6930
+ cachePolicy: .useProtocolCachePolicy,
6931
+ timeoutInterval: 10.0)
6932
+ request.httpMethod = "PATCH"
6933
+ request.allHTTPHeaderFields = headers
6934
+ request.httpBody = postData as Data
6935
+
6936
+ let session = URLSession.shared
6937
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
6938
+ if (error != nil) {
6939
+ print(error as Any)
6940
+ } else {
6941
+ let httpResponse = response as? HTTPURLResponse
6942
+ print(httpResponse)
6943
+ }
6944
+ })
6945
+
6946
+ dataTask.resume()
6947
+ ```
6948
+
5241
6949
  # List Drafts
5242
6950
 
5243
6951
  GET https://api.agentmail.to/v0/inboxes/{inbox_id}/drafts
@@ -5486,6 +7194,101 @@ client.inboxes.drafts.list(
5486
7194
 
5487
7195
  ```
5488
7196
 
7197
+ ```go
7198
+ package main
7199
+
7200
+ import (
7201
+ "fmt"
7202
+ "net/http"
7203
+ "io"
7204
+ )
7205
+
7206
+ func main() {
7207
+
7208
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/drafts"
7209
+
7210
+ req, _ := http.NewRequest("GET", url, nil)
7211
+
7212
+ req.Header.Add("Authorization", "Bearer <api_key>")
7213
+
7214
+ res, _ := http.DefaultClient.Do(req)
7215
+
7216
+ defer res.Body.Close()
7217
+ body, _ := io.ReadAll(res.Body)
7218
+
7219
+ fmt.Println(res)
7220
+ fmt.Println(string(body))
7221
+
7222
+ }
7223
+ ```
7224
+
7225
+ ```ruby
7226
+ require 'uri'
7227
+ require 'net/http'
7228
+
7229
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/drafts")
7230
+
7231
+ http = Net::HTTP.new(url.host, url.port)
7232
+ http.use_ssl = true
7233
+
7234
+ request = Net::HTTP::Get.new(url)
7235
+ request["Authorization"] = 'Bearer <api_key>'
7236
+
7237
+ response = http.request(request)
7238
+ puts response.read_body
7239
+ ```
7240
+
7241
+ ```java
7242
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/drafts")
7243
+ .header("Authorization", "Bearer <api_key>")
7244
+ .asString();
7245
+ ```
7246
+
7247
+ ```php
7248
+ <?php
7249
+
7250
+ $client = new \GuzzleHttp\Client();
7251
+
7252
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/inbox_id/drafts', [
7253
+ 'headers' => [
7254
+ 'Authorization' => 'Bearer <api_key>',
7255
+ ],
7256
+ ]);
7257
+
7258
+ echo $response->getBody();
7259
+ ```
7260
+
7261
+ ```csharp
7262
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts");
7263
+ var request = new RestRequest(Method.GET);
7264
+ request.AddHeader("Authorization", "Bearer <api_key>");
7265
+ IRestResponse response = client.Execute(request);
7266
+ ```
7267
+
7268
+ ```swift
7269
+ import Foundation
7270
+
7271
+ let headers = ["Authorization": "Bearer <api_key>"]
7272
+
7273
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/drafts")! as URL,
7274
+ cachePolicy: .useProtocolCachePolicy,
7275
+ timeoutInterval: 10.0)
7276
+ request.httpMethod = "GET"
7277
+ request.allHTTPHeaderFields = headers
7278
+
7279
+ let session = URLSession.shared
7280
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
7281
+ if (error != nil) {
7282
+ print(error as Any)
7283
+ } else {
7284
+ let httpResponse = response as? HTTPURLResponse
7285
+ print(httpResponse)
7286
+ }
7287
+ })
7288
+
7289
+ dataTask.resume()
7290
+ ```
7291
+
5489
7292
  # Get Draft
5490
7293
 
5491
7294
  GET https://api.agentmail.to/v0/inboxes/{inbox_id}/drafts/{draft_id}
@@ -5702,37 +7505,132 @@ client.inboxes.drafts.get(
5702
7505
 
5703
7506
  ```
5704
7507
 
5705
- # Create Draft
7508
+ ```go
7509
+ package main
5706
7510
 
5707
- POST https://api.agentmail.to/v0/inboxes/{inbox_id}/drafts
5708
- Content-Type: application/json
7511
+ import (
7512
+ "fmt"
7513
+ "net/http"
7514
+ "io"
7515
+ )
5709
7516
 
5710
- Reference: https://docs.agentmail.to/api-reference/inboxes/drafts/create
7517
+ func main() {
5711
7518
 
5712
- ## OpenAPI Specification
7519
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id"
5713
7520
 
5714
- ```yaml
5715
- openapi: 3.1.1
5716
- info:
5717
- title: Create Draft
5718
- version: endpoint_inboxes/drafts.create
5719
- paths:
5720
- /v0/inboxes/{inbox_id}/drafts:
5721
- post:
5722
- operationId: create
5723
- summary: Create Draft
5724
- tags:
5725
- - - subpackage_inboxes
5726
- - subpackage_inboxes/drafts
5727
- parameters:
5728
- - name: inbox_id
5729
- in: path
5730
- required: true
5731
- schema:
5732
- $ref: '#/components/schemas/type_inboxes:InboxId'
5733
- - name: Authorization
5734
- in: header
5735
- description: >-
7521
+ req, _ := http.NewRequest("GET", url, nil)
7522
+
7523
+ req.Header.Add("Authorization", "Bearer <api_key>")
7524
+
7525
+ res, _ := http.DefaultClient.Do(req)
7526
+
7527
+ defer res.Body.Close()
7528
+ body, _ := io.ReadAll(res.Body)
7529
+
7530
+ fmt.Println(res)
7531
+ fmt.Println(string(body))
7532
+
7533
+ }
7534
+ ```
7535
+
7536
+ ```ruby
7537
+ require 'uri'
7538
+ require 'net/http'
7539
+
7540
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id")
7541
+
7542
+ http = Net::HTTP.new(url.host, url.port)
7543
+ http.use_ssl = true
7544
+
7545
+ request = Net::HTTP::Get.new(url)
7546
+ request["Authorization"] = 'Bearer <api_key>'
7547
+
7548
+ response = http.request(request)
7549
+ puts response.read_body
7550
+ ```
7551
+
7552
+ ```java
7553
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id")
7554
+ .header("Authorization", "Bearer <api_key>")
7555
+ .asString();
7556
+ ```
7557
+
7558
+ ```php
7559
+ <?php
7560
+
7561
+ $client = new \GuzzleHttp\Client();
7562
+
7563
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id', [
7564
+ 'headers' => [
7565
+ 'Authorization' => 'Bearer <api_key>',
7566
+ ],
7567
+ ]);
7568
+
7569
+ echo $response->getBody();
7570
+ ```
7571
+
7572
+ ```csharp
7573
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id");
7574
+ var request = new RestRequest(Method.GET);
7575
+ request.AddHeader("Authorization", "Bearer <api_key>");
7576
+ IRestResponse response = client.Execute(request);
7577
+ ```
7578
+
7579
+ ```swift
7580
+ import Foundation
7581
+
7582
+ let headers = ["Authorization": "Bearer <api_key>"]
7583
+
7584
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id")! as URL,
7585
+ cachePolicy: .useProtocolCachePolicy,
7586
+ timeoutInterval: 10.0)
7587
+ request.httpMethod = "GET"
7588
+ request.allHTTPHeaderFields = headers
7589
+
7590
+ let session = URLSession.shared
7591
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
7592
+ if (error != nil) {
7593
+ print(error as Any)
7594
+ } else {
7595
+ let httpResponse = response as? HTTPURLResponse
7596
+ print(httpResponse)
7597
+ }
7598
+ })
7599
+
7600
+ dataTask.resume()
7601
+ ```
7602
+
7603
+ # Create Draft
7604
+
7605
+ POST https://api.agentmail.to/v0/inboxes/{inbox_id}/drafts
7606
+ Content-Type: application/json
7607
+
7608
+ Reference: https://docs.agentmail.to/api-reference/inboxes/drafts/create
7609
+
7610
+ ## OpenAPI Specification
7611
+
7612
+ ```yaml
7613
+ openapi: 3.1.1
7614
+ info:
7615
+ title: Create Draft
7616
+ version: endpoint_inboxes/drafts.create
7617
+ paths:
7618
+ /v0/inboxes/{inbox_id}/drafts:
7619
+ post:
7620
+ operationId: create
7621
+ summary: Create Draft
7622
+ tags:
7623
+ - - subpackage_inboxes
7624
+ - subpackage_inboxes/drafts
7625
+ parameters:
7626
+ - name: inbox_id
7627
+ in: path
7628
+ required: true
7629
+ schema:
7630
+ $ref: '#/components/schemas/type_inboxes:InboxId'
7631
+ - name: Authorization
7632
+ in: header
7633
+ description: >-
5736
7634
  Bearer authentication of the form `Bearer <token>`, where token is
5737
7635
  your auth token.
5738
7636
  required: true
@@ -5941,6 +7839,120 @@ client.inboxes.drafts.create(
5941
7839
 
5942
7840
  ```
5943
7841
 
7842
+ ```go
7843
+ package main
7844
+
7845
+ import (
7846
+ "fmt"
7847
+ "strings"
7848
+ "net/http"
7849
+ "io"
7850
+ )
7851
+
7852
+ func main() {
7853
+
7854
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/drafts"
7855
+
7856
+ payload := strings.NewReader("{}")
7857
+
7858
+ req, _ := http.NewRequest("POST", url, payload)
7859
+
7860
+ req.Header.Add("Authorization", "Bearer <api_key>")
7861
+ req.Header.Add("Content-Type", "application/json")
7862
+
7863
+ res, _ := http.DefaultClient.Do(req)
7864
+
7865
+ defer res.Body.Close()
7866
+ body, _ := io.ReadAll(res.Body)
7867
+
7868
+ fmt.Println(res)
7869
+ fmt.Println(string(body))
7870
+
7871
+ }
7872
+ ```
7873
+
7874
+ ```ruby
7875
+ require 'uri'
7876
+ require 'net/http'
7877
+
7878
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/drafts")
7879
+
7880
+ http = Net::HTTP.new(url.host, url.port)
7881
+ http.use_ssl = true
7882
+
7883
+ request = Net::HTTP::Post.new(url)
7884
+ request["Authorization"] = 'Bearer <api_key>'
7885
+ request["Content-Type"] = 'application/json'
7886
+ request.body = "{}"
7887
+
7888
+ response = http.request(request)
7889
+ puts response.read_body
7890
+ ```
7891
+
7892
+ ```java
7893
+ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes/inbox_id/drafts")
7894
+ .header("Authorization", "Bearer <api_key>")
7895
+ .header("Content-Type", "application/json")
7896
+ .body("{}")
7897
+ .asString();
7898
+ ```
7899
+
7900
+ ```php
7901
+ <?php
7902
+
7903
+ $client = new \GuzzleHttp\Client();
7904
+
7905
+ $response = $client->request('POST', 'https://api.agentmail.to/v0/inboxes/inbox_id/drafts', [
7906
+ 'body' => '{}',
7907
+ 'headers' => [
7908
+ 'Authorization' => 'Bearer <api_key>',
7909
+ 'Content-Type' => 'application/json',
7910
+ ],
7911
+ ]);
7912
+
7913
+ echo $response->getBody();
7914
+ ```
7915
+
7916
+ ```csharp
7917
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts");
7918
+ var request = new RestRequest(Method.POST);
7919
+ request.AddHeader("Authorization", "Bearer <api_key>");
7920
+ request.AddHeader("Content-Type", "application/json");
7921
+ request.AddParameter("application/json", "{}", ParameterType.RequestBody);
7922
+ IRestResponse response = client.Execute(request);
7923
+ ```
7924
+
7925
+ ```swift
7926
+ import Foundation
7927
+
7928
+ let headers = [
7929
+ "Authorization": "Bearer <api_key>",
7930
+ "Content-Type": "application/json"
7931
+ ]
7932
+ let parameters = [] as [String : Any]
7933
+
7934
+ let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
7935
+
7936
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/drafts")! as URL,
7937
+ cachePolicy: .useProtocolCachePolicy,
7938
+ timeoutInterval: 10.0)
7939
+ request.httpMethod = "POST"
7940
+ request.allHTTPHeaderFields = headers
7941
+ request.httpBody = postData as Data
7942
+
7943
+ let session = URLSession.shared
7944
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
7945
+ if (error != nil) {
7946
+ print(error as Any)
7947
+ } else {
7948
+ let httpResponse = response as? HTTPURLResponse
7949
+ print(httpResponse)
7950
+ }
7951
+ })
7952
+
7953
+ dataTask.resume()
7954
+ ```
7955
+
5944
7956
  # Send Draft
5945
7957
 
5946
7958
  POST https://api.agentmail.to/v0/inboxes/{inbox_id}/drafts/{draft_id}/send
@@ -6068,6 +8080,120 @@ client.inboxes.drafts.send(
6068
8080
 
6069
8081
  ```
6070
8082
 
8083
+ ```go
8084
+ package main
8085
+
8086
+ import (
8087
+ "fmt"
8088
+ "strings"
8089
+ "net/http"
8090
+ "io"
8091
+ )
8092
+
8093
+ func main() {
8094
+
8095
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id/send"
8096
+
8097
+ payload := strings.NewReader("{}")
8098
+
8099
+ req, _ := http.NewRequest("POST", url, payload)
8100
+
8101
+ req.Header.Add("Authorization", "Bearer <api_key>")
8102
+ req.Header.Add("Content-Type", "application/json")
8103
+
8104
+ res, _ := http.DefaultClient.Do(req)
8105
+
8106
+ defer res.Body.Close()
8107
+ body, _ := io.ReadAll(res.Body)
8108
+
8109
+ fmt.Println(res)
8110
+ fmt.Println(string(body))
8111
+
8112
+ }
8113
+ ```
8114
+
8115
+ ```ruby
8116
+ require 'uri'
8117
+ require 'net/http'
8118
+
8119
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id/send")
8120
+
8121
+ http = Net::HTTP.new(url.host, url.port)
8122
+ http.use_ssl = true
8123
+
8124
+ request = Net::HTTP::Post.new(url)
8125
+ request["Authorization"] = 'Bearer <api_key>'
8126
+ request["Content-Type"] = 'application/json'
8127
+ request.body = "{}"
8128
+
8129
+ response = http.request(request)
8130
+ puts response.read_body
8131
+ ```
8132
+
8133
+ ```java
8134
+ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id/send")
8135
+ .header("Authorization", "Bearer <api_key>")
8136
+ .header("Content-Type", "application/json")
8137
+ .body("{}")
8138
+ .asString();
8139
+ ```
8140
+
8141
+ ```php
8142
+ <?php
8143
+
8144
+ $client = new \GuzzleHttp\Client();
8145
+
8146
+ $response = $client->request('POST', 'https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id/send', [
8147
+ 'body' => '{}',
8148
+ 'headers' => [
8149
+ 'Authorization' => 'Bearer <api_key>',
8150
+ 'Content-Type' => 'application/json',
8151
+ ],
8152
+ ]);
8153
+
8154
+ echo $response->getBody();
8155
+ ```
8156
+
8157
+ ```csharp
8158
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id/send");
8159
+ var request = new RestRequest(Method.POST);
8160
+ request.AddHeader("Authorization", "Bearer <api_key>");
8161
+ request.AddHeader("Content-Type", "application/json");
8162
+ request.AddParameter("application/json", "{}", ParameterType.RequestBody);
8163
+ IRestResponse response = client.Execute(request);
8164
+ ```
8165
+
8166
+ ```swift
8167
+ import Foundation
8168
+
8169
+ let headers = [
8170
+ "Authorization": "Bearer <api_key>",
8171
+ "Content-Type": "application/json"
8172
+ ]
8173
+ let parameters = [] as [String : Any]
8174
+
8175
+ let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
8176
+
8177
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id/send")! as URL,
8178
+ cachePolicy: .useProtocolCachePolicy,
8179
+ timeoutInterval: 10.0)
8180
+ request.httpMethod = "POST"
8181
+ request.allHTTPHeaderFields = headers
8182
+ request.httpBody = postData as Data
8183
+
8184
+ let session = URLSession.shared
8185
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
8186
+ if (error != nil) {
8187
+ print(error as Any)
8188
+ } else {
8189
+ let httpResponse = response as? HTTPURLResponse
8190
+ print(httpResponse)
8191
+ }
8192
+ })
8193
+
8194
+ dataTask.resume()
8195
+ ```
8196
+
6071
8197
  # Delete Draft
6072
8198
 
6073
8199
  DELETE https://api.agentmail.to/v0/inboxes/{inbox_id}/drafts/{draft_id}
@@ -6154,6 +8280,101 @@ client.inboxes.drafts.delete(
6154
8280
 
6155
8281
  ```
6156
8282
 
8283
+ ```go
8284
+ package main
8285
+
8286
+ import (
8287
+ "fmt"
8288
+ "net/http"
8289
+ "io"
8290
+ )
8291
+
8292
+ func main() {
8293
+
8294
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id"
8295
+
8296
+ req, _ := http.NewRequest("DELETE", url, nil)
8297
+
8298
+ req.Header.Add("Authorization", "Bearer <api_key>")
8299
+
8300
+ res, _ := http.DefaultClient.Do(req)
8301
+
8302
+ defer res.Body.Close()
8303
+ body, _ := io.ReadAll(res.Body)
8304
+
8305
+ fmt.Println(res)
8306
+ fmt.Println(string(body))
8307
+
8308
+ }
8309
+ ```
8310
+
8311
+ ```ruby
8312
+ require 'uri'
8313
+ require 'net/http'
8314
+
8315
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id")
8316
+
8317
+ http = Net::HTTP.new(url.host, url.port)
8318
+ http.use_ssl = true
8319
+
8320
+ request = Net::HTTP::Delete.new(url)
8321
+ request["Authorization"] = 'Bearer <api_key>'
8322
+
8323
+ response = http.request(request)
8324
+ puts response.read_body
8325
+ ```
8326
+
8327
+ ```java
8328
+ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id")
8329
+ .header("Authorization", "Bearer <api_key>")
8330
+ .asString();
8331
+ ```
8332
+
8333
+ ```php
8334
+ <?php
8335
+
8336
+ $client = new \GuzzleHttp\Client();
8337
+
8338
+ $response = $client->request('DELETE', 'https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id', [
8339
+ 'headers' => [
8340
+ 'Authorization' => 'Bearer <api_key>',
8341
+ ],
8342
+ ]);
8343
+
8344
+ echo $response->getBody();
8345
+ ```
8346
+
8347
+ ```csharp
8348
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id");
8349
+ var request = new RestRequest(Method.DELETE);
8350
+ request.AddHeader("Authorization", "Bearer <api_key>");
8351
+ IRestResponse response = client.Execute(request);
8352
+ ```
8353
+
8354
+ ```swift
8355
+ import Foundation
8356
+
8357
+ let headers = ["Authorization": "Bearer <api_key>"]
8358
+
8359
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id")! as URL,
8360
+ cachePolicy: .useProtocolCachePolicy,
8361
+ timeoutInterval: 10.0)
8362
+ request.httpMethod = "DELETE"
8363
+ request.allHTTPHeaderFields = headers
8364
+
8365
+ let session = URLSession.shared
8366
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
8367
+ if (error != nil) {
8368
+ print(error as Any)
8369
+ } else {
8370
+ let httpResponse = response as? HTTPURLResponse
8371
+ print(httpResponse)
8372
+ }
8373
+ })
8374
+
8375
+ dataTask.resume()
8376
+ ```
8377
+
6157
8378
  # List Metrics
6158
8379
 
6159
8380
  GET https://api.agentmail.to/v0/inboxes/{inbox_id}/metrics
@@ -6319,6 +8540,101 @@ client.inboxes.metrics.get(
6319
8540
 
6320
8541
  ```
6321
8542
 
8543
+ ```go
8544
+ package main
8545
+
8546
+ import (
8547
+ "fmt"
8548
+ "net/http"
8549
+ "io"
8550
+ )
8551
+
8552
+ func main() {
8553
+
8554
+ url := "https://api.agentmail.to/v0/inboxes/inbox_id/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z"
8555
+
8556
+ req, _ := http.NewRequest("GET", url, nil)
8557
+
8558
+ req.Header.Add("Authorization", "Bearer <api_key>")
8559
+
8560
+ res, _ := http.DefaultClient.Do(req)
8561
+
8562
+ defer res.Body.Close()
8563
+ body, _ := io.ReadAll(res.Body)
8564
+
8565
+ fmt.Println(res)
8566
+ fmt.Println(string(body))
8567
+
8568
+ }
8569
+ ```
8570
+
8571
+ ```ruby
8572
+ require 'uri'
8573
+ require 'net/http'
8574
+
8575
+ url = URI("https://api.agentmail.to/v0/inboxes/inbox_id/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z")
8576
+
8577
+ http = Net::HTTP.new(url.host, url.port)
8578
+ http.use_ssl = true
8579
+
8580
+ request = Net::HTTP::Get.new(url)
8581
+ request["Authorization"] = 'Bearer <api_key>'
8582
+
8583
+ response = http.request(request)
8584
+ puts response.read_body
8585
+ ```
8586
+
8587
+ ```java
8588
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z")
8589
+ .header("Authorization", "Bearer <api_key>")
8590
+ .asString();
8591
+ ```
8592
+
8593
+ ```php
8594
+ <?php
8595
+
8596
+ $client = new \GuzzleHttp\Client();
8597
+
8598
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/inboxes/inbox_id/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z', [
8599
+ 'headers' => [
8600
+ 'Authorization' => 'Bearer <api_key>',
8601
+ ],
8602
+ ]);
8603
+
8604
+ echo $response->getBody();
8605
+ ```
8606
+
8607
+ ```csharp
8608
+ var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z");
8609
+ var request = new RestRequest(Method.GET);
8610
+ request.AddHeader("Authorization", "Bearer <api_key>");
8611
+ IRestResponse response = client.Execute(request);
8612
+ ```
8613
+
8614
+ ```swift
8615
+ import Foundation
8616
+
8617
+ let headers = ["Authorization": "Bearer <api_key>"]
8618
+
8619
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/inboxes/inbox_id/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z")! as URL,
8620
+ cachePolicy: .useProtocolCachePolicy,
8621
+ timeoutInterval: 10.0)
8622
+ request.httpMethod = "GET"
8623
+ request.allHTTPHeaderFields = headers
8624
+
8625
+ let session = URLSession.shared
8626
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
8627
+ if (error != nil) {
8628
+ print(error as Any)
8629
+ } else {
8630
+ let httpResponse = response as? HTTPURLResponse
8631
+ print(httpResponse)
8632
+ }
8633
+ })
8634
+
8635
+ dataTask.resume()
8636
+ ```
8637
+
6322
8638
  # List Threads
6323
8639
 
6324
8640
  GET https://api.agentmail.to/v0/threads
@@ -6576,6 +8892,101 @@ client.threads.list()
6576
8892
 
6577
8893
  ```
6578
8894
 
8895
+ ```go
8896
+ package main
8897
+
8898
+ import (
8899
+ "fmt"
8900
+ "net/http"
8901
+ "io"
8902
+ )
8903
+
8904
+ func main() {
8905
+
8906
+ url := "https://api.agentmail.to/v0/threads"
8907
+
8908
+ req, _ := http.NewRequest("GET", url, nil)
8909
+
8910
+ req.Header.Add("Authorization", "Bearer <api_key>")
8911
+
8912
+ res, _ := http.DefaultClient.Do(req)
8913
+
8914
+ defer res.Body.Close()
8915
+ body, _ := io.ReadAll(res.Body)
8916
+
8917
+ fmt.Println(res)
8918
+ fmt.Println(string(body))
8919
+
8920
+ }
8921
+ ```
8922
+
8923
+ ```ruby
8924
+ require 'uri'
8925
+ require 'net/http'
8926
+
8927
+ url = URI("https://api.agentmail.to/v0/threads")
8928
+
8929
+ http = Net::HTTP.new(url.host, url.port)
8930
+ http.use_ssl = true
8931
+
8932
+ request = Net::HTTP::Get.new(url)
8933
+ request["Authorization"] = 'Bearer <api_key>'
8934
+
8935
+ response = http.request(request)
8936
+ puts response.read_body
8937
+ ```
8938
+
8939
+ ```java
8940
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/threads")
8941
+ .header("Authorization", "Bearer <api_key>")
8942
+ .asString();
8943
+ ```
8944
+
8945
+ ```php
8946
+ <?php
8947
+
8948
+ $client = new \GuzzleHttp\Client();
8949
+
8950
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/threads', [
8951
+ 'headers' => [
8952
+ 'Authorization' => 'Bearer <api_key>',
8953
+ ],
8954
+ ]);
8955
+
8956
+ echo $response->getBody();
8957
+ ```
8958
+
8959
+ ```csharp
8960
+ var client = new RestClient("https://api.agentmail.to/v0/threads");
8961
+ var request = new RestRequest(Method.GET);
8962
+ request.AddHeader("Authorization", "Bearer <api_key>");
8963
+ IRestResponse response = client.Execute(request);
8964
+ ```
8965
+
8966
+ ```swift
8967
+ import Foundation
8968
+
8969
+ let headers = ["Authorization": "Bearer <api_key>"]
8970
+
8971
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/threads")! as URL,
8972
+ cachePolicy: .useProtocolCachePolicy,
8973
+ timeoutInterval: 10.0)
8974
+ request.httpMethod = "GET"
8975
+ request.allHTTPHeaderFields = headers
8976
+
8977
+ let session = URLSession.shared
8978
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
8979
+ if (error != nil) {
8980
+ print(error as Any)
8981
+ } else {
8982
+ let httpResponse = response as? HTTPURLResponse
8983
+ print(httpResponse)
8984
+ }
8985
+ })
8986
+
8987
+ dataTask.resume()
8988
+ ```
8989
+
6579
8990
  # Get Thread
6580
8991
 
6581
8992
  GET https://api.agentmail.to/v0/threads/{thread_id}
@@ -6886,19 +9297,114 @@ client.threads.get(
6886
9297
 
6887
9298
  ```
6888
9299
 
6889
- # Get Attachment
9300
+ ```go
9301
+ package main
6890
9302
 
6891
- GET https://api.agentmail.to/v0/threads/{thread_id}/attachments/{attachment_id}
9303
+ import (
9304
+ "fmt"
9305
+ "net/http"
9306
+ "io"
9307
+ )
6892
9308
 
6893
- Reference: https://docs.agentmail.to/api-reference/threads/get-attachment
9309
+ func main() {
6894
9310
 
6895
- ## OpenAPI Specification
9311
+ url := "https://api.agentmail.to/v0/threads/thread_id"
6896
9312
 
6897
- ```yaml
6898
- openapi: 3.1.1
6899
- info:
6900
- title: Get Attachment
6901
- version: endpoint_threads.getAttachment
9313
+ req, _ := http.NewRequest("GET", url, nil)
9314
+
9315
+ req.Header.Add("Authorization", "Bearer <api_key>")
9316
+
9317
+ res, _ := http.DefaultClient.Do(req)
9318
+
9319
+ defer res.Body.Close()
9320
+ body, _ := io.ReadAll(res.Body)
9321
+
9322
+ fmt.Println(res)
9323
+ fmt.Println(string(body))
9324
+
9325
+ }
9326
+ ```
9327
+
9328
+ ```ruby
9329
+ require 'uri'
9330
+ require 'net/http'
9331
+
9332
+ url = URI("https://api.agentmail.to/v0/threads/thread_id")
9333
+
9334
+ http = Net::HTTP.new(url.host, url.port)
9335
+ http.use_ssl = true
9336
+
9337
+ request = Net::HTTP::Get.new(url)
9338
+ request["Authorization"] = 'Bearer <api_key>'
9339
+
9340
+ response = http.request(request)
9341
+ puts response.read_body
9342
+ ```
9343
+
9344
+ ```java
9345
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/threads/thread_id")
9346
+ .header("Authorization", "Bearer <api_key>")
9347
+ .asString();
9348
+ ```
9349
+
9350
+ ```php
9351
+ <?php
9352
+
9353
+ $client = new \GuzzleHttp\Client();
9354
+
9355
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/threads/thread_id', [
9356
+ 'headers' => [
9357
+ 'Authorization' => 'Bearer <api_key>',
9358
+ ],
9359
+ ]);
9360
+
9361
+ echo $response->getBody();
9362
+ ```
9363
+
9364
+ ```csharp
9365
+ var client = new RestClient("https://api.agentmail.to/v0/threads/thread_id");
9366
+ var request = new RestRequest(Method.GET);
9367
+ request.AddHeader("Authorization", "Bearer <api_key>");
9368
+ IRestResponse response = client.Execute(request);
9369
+ ```
9370
+
9371
+ ```swift
9372
+ import Foundation
9373
+
9374
+ let headers = ["Authorization": "Bearer <api_key>"]
9375
+
9376
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/threads/thread_id")! as URL,
9377
+ cachePolicy: .useProtocolCachePolicy,
9378
+ timeoutInterval: 10.0)
9379
+ request.httpMethod = "GET"
9380
+ request.allHTTPHeaderFields = headers
9381
+
9382
+ let session = URLSession.shared
9383
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
9384
+ if (error != nil) {
9385
+ print(error as Any)
9386
+ } else {
9387
+ let httpResponse = response as? HTTPURLResponse
9388
+ print(httpResponse)
9389
+ }
9390
+ })
9391
+
9392
+ dataTask.resume()
9393
+ ```
9394
+
9395
+ # Get Attachment
9396
+
9397
+ GET https://api.agentmail.to/v0/threads/{thread_id}/attachments/{attachment_id}
9398
+
9399
+ Reference: https://docs.agentmail.to/api-reference/threads/get-attachment
9400
+
9401
+ ## OpenAPI Specification
9402
+
9403
+ ```yaml
9404
+ openapi: 3.1.1
9405
+ info:
9406
+ title: Get Attachment
9407
+ version: endpoint_threads.getAttachment
6902
9408
  paths:
6903
9409
  /v0/threads/{thread_id}/attachments/{attachment_id}:
6904
9410
  get:
@@ -6976,6 +9482,101 @@ client.threads.get_attachment(
6976
9482
 
6977
9483
  ```
6978
9484
 
9485
+ ```go
9486
+ package main
9487
+
9488
+ import (
9489
+ "fmt"
9490
+ "net/http"
9491
+ "io"
9492
+ )
9493
+
9494
+ func main() {
9495
+
9496
+ url := "https://api.agentmail.to/v0/threads/%3Athread_id/attachments/%3Aattachment_id"
9497
+
9498
+ req, _ := http.NewRequest("GET", url, nil)
9499
+
9500
+ req.Header.Add("Authorization", "Bearer <api_key>")
9501
+
9502
+ res, _ := http.DefaultClient.Do(req)
9503
+
9504
+ defer res.Body.Close()
9505
+ body, _ := io.ReadAll(res.Body)
9506
+
9507
+ fmt.Println(res)
9508
+ fmt.Println(string(body))
9509
+
9510
+ }
9511
+ ```
9512
+
9513
+ ```ruby
9514
+ require 'uri'
9515
+ require 'net/http'
9516
+
9517
+ url = URI("https://api.agentmail.to/v0/threads/%3Athread_id/attachments/%3Aattachment_id")
9518
+
9519
+ http = Net::HTTP.new(url.host, url.port)
9520
+ http.use_ssl = true
9521
+
9522
+ request = Net::HTTP::Get.new(url)
9523
+ request["Authorization"] = 'Bearer <api_key>'
9524
+
9525
+ response = http.request(request)
9526
+ puts response.read_body
9527
+ ```
9528
+
9529
+ ```java
9530
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/threads/%3Athread_id/attachments/%3Aattachment_id")
9531
+ .header("Authorization", "Bearer <api_key>")
9532
+ .asString();
9533
+ ```
9534
+
9535
+ ```php
9536
+ <?php
9537
+
9538
+ $client = new \GuzzleHttp\Client();
9539
+
9540
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/threads/%3Athread_id/attachments/%3Aattachment_id', [
9541
+ 'headers' => [
9542
+ 'Authorization' => 'Bearer <api_key>',
9543
+ ],
9544
+ ]);
9545
+
9546
+ echo $response->getBody();
9547
+ ```
9548
+
9549
+ ```csharp
9550
+ var client = new RestClient("https://api.agentmail.to/v0/threads/%3Athread_id/attachments/%3Aattachment_id");
9551
+ var request = new RestRequest(Method.GET);
9552
+ request.AddHeader("Authorization", "Bearer <api_key>");
9553
+ IRestResponse response = client.Execute(request);
9554
+ ```
9555
+
9556
+ ```swift
9557
+ import Foundation
9558
+
9559
+ let headers = ["Authorization": "Bearer <api_key>"]
9560
+
9561
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/threads/%3Athread_id/attachments/%3Aattachment_id")! as URL,
9562
+ cachePolicy: .useProtocolCachePolicy,
9563
+ timeoutInterval: 10.0)
9564
+ request.httpMethod = "GET"
9565
+ request.allHTTPHeaderFields = headers
9566
+
9567
+ let session = URLSession.shared
9568
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
9569
+ if (error != nil) {
9570
+ print(error as Any)
9571
+ } else {
9572
+ let httpResponse = response as? HTTPURLResponse
9573
+ print(httpResponse)
9574
+ }
9575
+ })
9576
+
9577
+ dataTask.resume()
9578
+ ```
9579
+
6979
9580
  # Delete Thread
6980
9581
 
6981
9582
  DELETE https://api.agentmail.to/v0/threads/{thread_id}
@@ -7053,6 +9654,101 @@ client.threads.delete(
7053
9654
 
7054
9655
  ```
7055
9656
 
9657
+ ```go
9658
+ package main
9659
+
9660
+ import (
9661
+ "fmt"
9662
+ "net/http"
9663
+ "io"
9664
+ )
9665
+
9666
+ func main() {
9667
+
9668
+ url := "https://api.agentmail.to/v0/threads/thread_id"
9669
+
9670
+ req, _ := http.NewRequest("DELETE", url, nil)
9671
+
9672
+ req.Header.Add("Authorization", "Bearer <api_key>")
9673
+
9674
+ res, _ := http.DefaultClient.Do(req)
9675
+
9676
+ defer res.Body.Close()
9677
+ body, _ := io.ReadAll(res.Body)
9678
+
9679
+ fmt.Println(res)
9680
+ fmt.Println(string(body))
9681
+
9682
+ }
9683
+ ```
9684
+
9685
+ ```ruby
9686
+ require 'uri'
9687
+ require 'net/http'
9688
+
9689
+ url = URI("https://api.agentmail.to/v0/threads/thread_id")
9690
+
9691
+ http = Net::HTTP.new(url.host, url.port)
9692
+ http.use_ssl = true
9693
+
9694
+ request = Net::HTTP::Delete.new(url)
9695
+ request["Authorization"] = 'Bearer <api_key>'
9696
+
9697
+ response = http.request(request)
9698
+ puts response.read_body
9699
+ ```
9700
+
9701
+ ```java
9702
+ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/threads/thread_id")
9703
+ .header("Authorization", "Bearer <api_key>")
9704
+ .asString();
9705
+ ```
9706
+
9707
+ ```php
9708
+ <?php
9709
+
9710
+ $client = new \GuzzleHttp\Client();
9711
+
9712
+ $response = $client->request('DELETE', 'https://api.agentmail.to/v0/threads/thread_id', [
9713
+ 'headers' => [
9714
+ 'Authorization' => 'Bearer <api_key>',
9715
+ ],
9716
+ ]);
9717
+
9718
+ echo $response->getBody();
9719
+ ```
9720
+
9721
+ ```csharp
9722
+ var client = new RestClient("https://api.agentmail.to/v0/threads/thread_id");
9723
+ var request = new RestRequest(Method.DELETE);
9724
+ request.AddHeader("Authorization", "Bearer <api_key>");
9725
+ IRestResponse response = client.Execute(request);
9726
+ ```
9727
+
9728
+ ```swift
9729
+ import Foundation
9730
+
9731
+ let headers = ["Authorization": "Bearer <api_key>"]
9732
+
9733
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/threads/thread_id")! as URL,
9734
+ cachePolicy: .useProtocolCachePolicy,
9735
+ timeoutInterval: 10.0)
9736
+ request.httpMethod = "DELETE"
9737
+ request.allHTTPHeaderFields = headers
9738
+
9739
+ let session = URLSession.shared
9740
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
9741
+ if (error != nil) {
9742
+ print(error as Any)
9743
+ } else {
9744
+ let httpResponse = response as? HTTPURLResponse
9745
+ print(httpResponse)
9746
+ }
9747
+ })
9748
+
9749
+ dataTask.resume()
9750
+ ```
9751
+
7056
9752
  # List Drafts
7057
9753
 
7058
9754
  GET https://api.agentmail.to/v0/drafts
@@ -7293,6 +9989,101 @@ client.drafts.list()
7293
9989
 
7294
9990
  ```
7295
9991
 
9992
+ ```go
9993
+ package main
9994
+
9995
+ import (
9996
+ "fmt"
9997
+ "net/http"
9998
+ "io"
9999
+ )
10000
+
10001
+ func main() {
10002
+
10003
+ url := "https://api.agentmail.to/v0/drafts"
10004
+
10005
+ req, _ := http.NewRequest("GET", url, nil)
10006
+
10007
+ req.Header.Add("Authorization", "Bearer <api_key>")
10008
+
10009
+ res, _ := http.DefaultClient.Do(req)
10010
+
10011
+ defer res.Body.Close()
10012
+ body, _ := io.ReadAll(res.Body)
10013
+
10014
+ fmt.Println(res)
10015
+ fmt.Println(string(body))
10016
+
10017
+ }
10018
+ ```
10019
+
10020
+ ```ruby
10021
+ require 'uri'
10022
+ require 'net/http'
10023
+
10024
+ url = URI("https://api.agentmail.to/v0/drafts")
10025
+
10026
+ http = Net::HTTP.new(url.host, url.port)
10027
+ http.use_ssl = true
10028
+
10029
+ request = Net::HTTP::Get.new(url)
10030
+ request["Authorization"] = 'Bearer <api_key>'
10031
+
10032
+ response = http.request(request)
10033
+ puts response.read_body
10034
+ ```
10035
+
10036
+ ```java
10037
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/drafts")
10038
+ .header("Authorization", "Bearer <api_key>")
10039
+ .asString();
10040
+ ```
10041
+
10042
+ ```php
10043
+ <?php
10044
+
10045
+ $client = new \GuzzleHttp\Client();
10046
+
10047
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/drafts', [
10048
+ 'headers' => [
10049
+ 'Authorization' => 'Bearer <api_key>',
10050
+ ],
10051
+ ]);
10052
+
10053
+ echo $response->getBody();
10054
+ ```
10055
+
10056
+ ```csharp
10057
+ var client = new RestClient("https://api.agentmail.to/v0/drafts");
10058
+ var request = new RestRequest(Method.GET);
10059
+ request.AddHeader("Authorization", "Bearer <api_key>");
10060
+ IRestResponse response = client.Execute(request);
10061
+ ```
10062
+
10063
+ ```swift
10064
+ import Foundation
10065
+
10066
+ let headers = ["Authorization": "Bearer <api_key>"]
10067
+
10068
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/drafts")! as URL,
10069
+ cachePolicy: .useProtocolCachePolicy,
10070
+ timeoutInterval: 10.0)
10071
+ request.httpMethod = "GET"
10072
+ request.allHTTPHeaderFields = headers
10073
+
10074
+ let session = URLSession.shared
10075
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
10076
+ if (error != nil) {
10077
+ print(error as Any)
10078
+ } else {
10079
+ let httpResponse = response as? HTTPURLResponse
10080
+ print(httpResponse)
10081
+ }
10082
+ })
10083
+
10084
+ dataTask.resume()
10085
+ ```
10086
+
7296
10087
  # Get Draft
7297
10088
 
7298
10089
  GET https://api.agentmail.to/v0/drafts/{draft_id}
@@ -7502,6 +10293,101 @@ client.drafts.get(
7502
10293
 
7503
10294
  ```
7504
10295
 
10296
+ ```go
10297
+ package main
10298
+
10299
+ import (
10300
+ "fmt"
10301
+ "net/http"
10302
+ "io"
10303
+ )
10304
+
10305
+ func main() {
10306
+
10307
+ url := "https://api.agentmail.to/v0/drafts/draft_id"
10308
+
10309
+ req, _ := http.NewRequest("GET", url, nil)
10310
+
10311
+ req.Header.Add("Authorization", "Bearer <api_key>")
10312
+
10313
+ res, _ := http.DefaultClient.Do(req)
10314
+
10315
+ defer res.Body.Close()
10316
+ body, _ := io.ReadAll(res.Body)
10317
+
10318
+ fmt.Println(res)
10319
+ fmt.Println(string(body))
10320
+
10321
+ }
10322
+ ```
10323
+
10324
+ ```ruby
10325
+ require 'uri'
10326
+ require 'net/http'
10327
+
10328
+ url = URI("https://api.agentmail.to/v0/drafts/draft_id")
10329
+
10330
+ http = Net::HTTP.new(url.host, url.port)
10331
+ http.use_ssl = true
10332
+
10333
+ request = Net::HTTP::Get.new(url)
10334
+ request["Authorization"] = 'Bearer <api_key>'
10335
+
10336
+ response = http.request(request)
10337
+ puts response.read_body
10338
+ ```
10339
+
10340
+ ```java
10341
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/drafts/draft_id")
10342
+ .header("Authorization", "Bearer <api_key>")
10343
+ .asString();
10344
+ ```
10345
+
10346
+ ```php
10347
+ <?php
10348
+
10349
+ $client = new \GuzzleHttp\Client();
10350
+
10351
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/drafts/draft_id', [
10352
+ 'headers' => [
10353
+ 'Authorization' => 'Bearer <api_key>',
10354
+ ],
10355
+ ]);
10356
+
10357
+ echo $response->getBody();
10358
+ ```
10359
+
10360
+ ```csharp
10361
+ var client = new RestClient("https://api.agentmail.to/v0/drafts/draft_id");
10362
+ var request = new RestRequest(Method.GET);
10363
+ request.AddHeader("Authorization", "Bearer <api_key>");
10364
+ IRestResponse response = client.Execute(request);
10365
+ ```
10366
+
10367
+ ```swift
10368
+ import Foundation
10369
+
10370
+ let headers = ["Authorization": "Bearer <api_key>"]
10371
+
10372
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/drafts/draft_id")! as URL,
10373
+ cachePolicy: .useProtocolCachePolicy,
10374
+ timeoutInterval: 10.0)
10375
+ request.httpMethod = "GET"
10376
+ request.allHTTPHeaderFields = headers
10377
+
10378
+ let session = URLSession.shared
10379
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
10380
+ if (error != nil) {
10381
+ print(error as Any)
10382
+ } else {
10383
+ let httpResponse = response as? HTTPURLResponse
10384
+ print(httpResponse)
10385
+ }
10386
+ })
10387
+
10388
+ dataTask.resume()
10389
+ ```
10390
+
7505
10391
  # List Domains
7506
10392
 
7507
10393
  GET https://api.agentmail.to/v0/domains
@@ -7625,6 +10511,101 @@ client.domains.list()
7625
10511
 
7626
10512
  ```
7627
10513
 
10514
+ ```go
10515
+ package main
10516
+
10517
+ import (
10518
+ "fmt"
10519
+ "net/http"
10520
+ "io"
10521
+ )
10522
+
10523
+ func main() {
10524
+
10525
+ url := "https://api.agentmail.to/v0/domains"
10526
+
10527
+ req, _ := http.NewRequest("GET", url, nil)
10528
+
10529
+ req.Header.Add("Authorization", "Bearer <api_key>")
10530
+
10531
+ res, _ := http.DefaultClient.Do(req)
10532
+
10533
+ defer res.Body.Close()
10534
+ body, _ := io.ReadAll(res.Body)
10535
+
10536
+ fmt.Println(res)
10537
+ fmt.Println(string(body))
10538
+
10539
+ }
10540
+ ```
10541
+
10542
+ ```ruby
10543
+ require 'uri'
10544
+ require 'net/http'
10545
+
10546
+ url = URI("https://api.agentmail.to/v0/domains")
10547
+
10548
+ http = Net::HTTP.new(url.host, url.port)
10549
+ http.use_ssl = true
10550
+
10551
+ request = Net::HTTP::Get.new(url)
10552
+ request["Authorization"] = 'Bearer <api_key>'
10553
+
10554
+ response = http.request(request)
10555
+ puts response.read_body
10556
+ ```
10557
+
10558
+ ```java
10559
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/domains")
10560
+ .header("Authorization", "Bearer <api_key>")
10561
+ .asString();
10562
+ ```
10563
+
10564
+ ```php
10565
+ <?php
10566
+
10567
+ $client = new \GuzzleHttp\Client();
10568
+
10569
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/domains', [
10570
+ 'headers' => [
10571
+ 'Authorization' => 'Bearer <api_key>',
10572
+ ],
10573
+ ]);
10574
+
10575
+ echo $response->getBody();
10576
+ ```
10577
+
10578
+ ```csharp
10579
+ var client = new RestClient("https://api.agentmail.to/v0/domains");
10580
+ var request = new RestRequest(Method.GET);
10581
+ request.AddHeader("Authorization", "Bearer <api_key>");
10582
+ IRestResponse response = client.Execute(request);
10583
+ ```
10584
+
10585
+ ```swift
10586
+ import Foundation
10587
+
10588
+ let headers = ["Authorization": "Bearer <api_key>"]
10589
+
10590
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/domains")! as URL,
10591
+ cachePolicy: .useProtocolCachePolicy,
10592
+ timeoutInterval: 10.0)
10593
+ request.httpMethod = "GET"
10594
+ request.allHTTPHeaderFields = headers
10595
+
10596
+ let session = URLSession.shared
10597
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
10598
+ if (error != nil) {
10599
+ print(error as Any)
10600
+ } else {
10601
+ let httpResponse = response as? HTTPURLResponse
10602
+ print(httpResponse)
10603
+ }
10604
+ })
10605
+
10606
+ dataTask.resume()
10607
+ ```
10608
+
7628
10609
  # Get Domain
7629
10610
 
7630
10611
  GET https://api.agentmail.to/v0/domains/{domain}
@@ -7771,41 +10752,136 @@ client.domains.get(
7771
10752
 
7772
10753
  ```
7773
10754
 
7774
- # Create Domain
10755
+ ```go
10756
+ package main
7775
10757
 
7776
- POST https://api.agentmail.to/v0/domains
7777
- Content-Type: application/json
10758
+ import (
10759
+ "fmt"
10760
+ "net/http"
10761
+ "io"
10762
+ )
7778
10763
 
7779
- Reference: https://docs.agentmail.to/api-reference/domains/create
10764
+ func main() {
7780
10765
 
7781
- ## OpenAPI Specification
10766
+ url := "https://api.agentmail.to/v0/domains/domain"
7782
10767
 
7783
- ```yaml
7784
- openapi: 3.1.1
7785
- info:
7786
- title: Create Domain
7787
- version: endpoint_domains.create
7788
- paths:
7789
- /v0/domains:
7790
- post:
7791
- operationId: create
7792
- summary: Create Domain
7793
- tags:
7794
- - - subpackage_domains
7795
- parameters:
7796
- - name: Authorization
7797
- in: header
7798
- description: >-
7799
- Bearer authentication of the form `Bearer <token>`, where token is
7800
- your auth token.
7801
- required: true
7802
- schema:
7803
- type: string
7804
- responses:
7805
- '200':
7806
- description: Response with status 200
7807
- content:
7808
- application/json:
10768
+ req, _ := http.NewRequest("GET", url, nil)
10769
+
10770
+ req.Header.Add("Authorization", "Bearer <api_key>")
10771
+
10772
+ res, _ := http.DefaultClient.Do(req)
10773
+
10774
+ defer res.Body.Close()
10775
+ body, _ := io.ReadAll(res.Body)
10776
+
10777
+ fmt.Println(res)
10778
+ fmt.Println(string(body))
10779
+
10780
+ }
10781
+ ```
10782
+
10783
+ ```ruby
10784
+ require 'uri'
10785
+ require 'net/http'
10786
+
10787
+ url = URI("https://api.agentmail.to/v0/domains/domain")
10788
+
10789
+ http = Net::HTTP.new(url.host, url.port)
10790
+ http.use_ssl = true
10791
+
10792
+ request = Net::HTTP::Get.new(url)
10793
+ request["Authorization"] = 'Bearer <api_key>'
10794
+
10795
+ response = http.request(request)
10796
+ puts response.read_body
10797
+ ```
10798
+
10799
+ ```java
10800
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/domains/domain")
10801
+ .header("Authorization", "Bearer <api_key>")
10802
+ .asString();
10803
+ ```
10804
+
10805
+ ```php
10806
+ <?php
10807
+
10808
+ $client = new \GuzzleHttp\Client();
10809
+
10810
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/domains/domain', [
10811
+ 'headers' => [
10812
+ 'Authorization' => 'Bearer <api_key>',
10813
+ ],
10814
+ ]);
10815
+
10816
+ echo $response->getBody();
10817
+ ```
10818
+
10819
+ ```csharp
10820
+ var client = new RestClient("https://api.agentmail.to/v0/domains/domain");
10821
+ var request = new RestRequest(Method.GET);
10822
+ request.AddHeader("Authorization", "Bearer <api_key>");
10823
+ IRestResponse response = client.Execute(request);
10824
+ ```
10825
+
10826
+ ```swift
10827
+ import Foundation
10828
+
10829
+ let headers = ["Authorization": "Bearer <api_key>"]
10830
+
10831
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/domains/domain")! as URL,
10832
+ cachePolicy: .useProtocolCachePolicy,
10833
+ timeoutInterval: 10.0)
10834
+ request.httpMethod = "GET"
10835
+ request.allHTTPHeaderFields = headers
10836
+
10837
+ let session = URLSession.shared
10838
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
10839
+ if (error != nil) {
10840
+ print(error as Any)
10841
+ } else {
10842
+ let httpResponse = response as? HTTPURLResponse
10843
+ print(httpResponse)
10844
+ }
10845
+ })
10846
+
10847
+ dataTask.resume()
10848
+ ```
10849
+
10850
+ # Create Domain
10851
+
10852
+ POST https://api.agentmail.to/v0/domains
10853
+ Content-Type: application/json
10854
+
10855
+ Reference: https://docs.agentmail.to/api-reference/domains/create
10856
+
10857
+ ## OpenAPI Specification
10858
+
10859
+ ```yaml
10860
+ openapi: 3.1.1
10861
+ info:
10862
+ title: Create Domain
10863
+ version: endpoint_domains.create
10864
+ paths:
10865
+ /v0/domains:
10866
+ post:
10867
+ operationId: create
10868
+ summary: Create Domain
10869
+ tags:
10870
+ - - subpackage_domains
10871
+ parameters:
10872
+ - name: Authorization
10873
+ in: header
10874
+ description: >-
10875
+ Bearer authentication of the form `Bearer <token>`, where token is
10876
+ your auth token.
10877
+ required: true
10878
+ schema:
10879
+ type: string
10880
+ responses:
10881
+ '200':
10882
+ description: Response with status 200
10883
+ content:
10884
+ application/json:
7809
10885
  schema:
7810
10886
  $ref: '#/components/schemas/type_domains:CreateDomainResponse'
7811
10887
  '400':
@@ -7931,6 +11007,122 @@ client.domains.create(
7931
11007
 
7932
11008
  ```
7933
11009
 
11010
+ ```go
11011
+ package main
11012
+
11013
+ import (
11014
+ "fmt"
11015
+ "strings"
11016
+ "net/http"
11017
+ "io"
11018
+ )
11019
+
11020
+ func main() {
11021
+
11022
+ url := "https://api.agentmail.to/v0/domains"
11023
+
11024
+ payload := strings.NewReader("{\n \"domain\": \"domain\"\n}")
11025
+
11026
+ req, _ := http.NewRequest("POST", url, payload)
11027
+
11028
+ req.Header.Add("Authorization", "Bearer <api_key>")
11029
+ req.Header.Add("Content-Type", "application/json")
11030
+
11031
+ res, _ := http.DefaultClient.Do(req)
11032
+
11033
+ defer res.Body.Close()
11034
+ body, _ := io.ReadAll(res.Body)
11035
+
11036
+ fmt.Println(res)
11037
+ fmt.Println(string(body))
11038
+
11039
+ }
11040
+ ```
11041
+
11042
+ ```ruby
11043
+ require 'uri'
11044
+ require 'net/http'
11045
+
11046
+ url = URI("https://api.agentmail.to/v0/domains")
11047
+
11048
+ http = Net::HTTP.new(url.host, url.port)
11049
+ http.use_ssl = true
11050
+
11051
+ request = Net::HTTP::Post.new(url)
11052
+ request["Authorization"] = 'Bearer <api_key>'
11053
+ request["Content-Type"] = 'application/json'
11054
+ request.body = "{\n \"domain\": \"domain\"\n}"
11055
+
11056
+ response = http.request(request)
11057
+ puts response.read_body
11058
+ ```
11059
+
11060
+ ```java
11061
+ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/domains")
11062
+ .header("Authorization", "Bearer <api_key>")
11063
+ .header("Content-Type", "application/json")
11064
+ .body("{\n \"domain\": \"domain\"\n}")
11065
+ .asString();
11066
+ ```
11067
+
11068
+ ```php
11069
+ <?php
11070
+
11071
+ $client = new \GuzzleHttp\Client();
11072
+
11073
+ $response = $client->request('POST', 'https://api.agentmail.to/v0/domains', [
11074
+ 'body' => '{
11075
+ "domain": "domain"
11076
+ }',
11077
+ 'headers' => [
11078
+ 'Authorization' => 'Bearer <api_key>',
11079
+ 'Content-Type' => 'application/json',
11080
+ ],
11081
+ ]);
11082
+
11083
+ echo $response->getBody();
11084
+ ```
11085
+
11086
+ ```csharp
11087
+ var client = new RestClient("https://api.agentmail.to/v0/domains");
11088
+ var request = new RestRequest(Method.POST);
11089
+ request.AddHeader("Authorization", "Bearer <api_key>");
11090
+ request.AddHeader("Content-Type", "application/json");
11091
+ request.AddParameter("application/json", "{\n \"domain\": \"domain\"\n}", ParameterType.RequestBody);
11092
+ IRestResponse response = client.Execute(request);
11093
+ ```
11094
+
11095
+ ```swift
11096
+ import Foundation
11097
+
11098
+ let headers = [
11099
+ "Authorization": "Bearer <api_key>",
11100
+ "Content-Type": "application/json"
11101
+ ]
11102
+ let parameters = ["domain": "domain"] as [String : Any]
11103
+
11104
+ let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
11105
+
11106
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/domains")! as URL,
11107
+ cachePolicy: .useProtocolCachePolicy,
11108
+ timeoutInterval: 10.0)
11109
+ request.httpMethod = "POST"
11110
+ request.allHTTPHeaderFields = headers
11111
+ request.httpBody = postData as Data
11112
+
11113
+ let session = URLSession.shared
11114
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
11115
+ if (error != nil) {
11116
+ print(error as Any)
11117
+ } else {
11118
+ let httpResponse = response as? HTTPURLResponse
11119
+ print(httpResponse)
11120
+ }
11121
+ })
11122
+
11123
+ dataTask.resume()
11124
+ ```
11125
+
7934
11126
  # Delete Domain
7935
11127
 
7936
11128
  DELETE https://api.agentmail.to/v0/domains/{domain}
@@ -8008,6 +11200,101 @@ client.domains.delete(
8008
11200
 
8009
11201
  ```
8010
11202
 
11203
+ ```go
11204
+ package main
11205
+
11206
+ import (
11207
+ "fmt"
11208
+ "net/http"
11209
+ "io"
11210
+ )
11211
+
11212
+ func main() {
11213
+
11214
+ url := "https://api.agentmail.to/v0/domains/domain"
11215
+
11216
+ req, _ := http.NewRequest("DELETE", url, nil)
11217
+
11218
+ req.Header.Add("Authorization", "Bearer <api_key>")
11219
+
11220
+ res, _ := http.DefaultClient.Do(req)
11221
+
11222
+ defer res.Body.Close()
11223
+ body, _ := io.ReadAll(res.Body)
11224
+
11225
+ fmt.Println(res)
11226
+ fmt.Println(string(body))
11227
+
11228
+ }
11229
+ ```
11230
+
11231
+ ```ruby
11232
+ require 'uri'
11233
+ require 'net/http'
11234
+
11235
+ url = URI("https://api.agentmail.to/v0/domains/domain")
11236
+
11237
+ http = Net::HTTP.new(url.host, url.port)
11238
+ http.use_ssl = true
11239
+
11240
+ request = Net::HTTP::Delete.new(url)
11241
+ request["Authorization"] = 'Bearer <api_key>'
11242
+
11243
+ response = http.request(request)
11244
+ puts response.read_body
11245
+ ```
11246
+
11247
+ ```java
11248
+ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/domains/domain")
11249
+ .header("Authorization", "Bearer <api_key>")
11250
+ .asString();
11251
+ ```
11252
+
11253
+ ```php
11254
+ <?php
11255
+
11256
+ $client = new \GuzzleHttp\Client();
11257
+
11258
+ $response = $client->request('DELETE', 'https://api.agentmail.to/v0/domains/domain', [
11259
+ 'headers' => [
11260
+ 'Authorization' => 'Bearer <api_key>',
11261
+ ],
11262
+ ]);
11263
+
11264
+ echo $response->getBody();
11265
+ ```
11266
+
11267
+ ```csharp
11268
+ var client = new RestClient("https://api.agentmail.to/v0/domains/domain");
11269
+ var request = new RestRequest(Method.DELETE);
11270
+ request.AddHeader("Authorization", "Bearer <api_key>");
11271
+ IRestResponse response = client.Execute(request);
11272
+ ```
11273
+
11274
+ ```swift
11275
+ import Foundation
11276
+
11277
+ let headers = ["Authorization": "Bearer <api_key>"]
11278
+
11279
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/domains/domain")! as URL,
11280
+ cachePolicy: .useProtocolCachePolicy,
11281
+ timeoutInterval: 10.0)
11282
+ request.httpMethod = "DELETE"
11283
+ request.allHTTPHeaderFields = headers
11284
+
11285
+ let session = URLSession.shared
11286
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
11287
+ if (error != nil) {
11288
+ print(error as Any)
11289
+ } else {
11290
+ let httpResponse = response as? HTTPURLResponse
11291
+ print(httpResponse)
11292
+ }
11293
+ })
11294
+
11295
+ dataTask.resume()
11296
+ ```
11297
+
8011
11298
  # List Webhooks
8012
11299
 
8013
11300
  GET https://api.agentmail.to/v0/webhooks
@@ -8162,6 +11449,101 @@ client.webhooks.list()
8162
11449
 
8163
11450
  ```
8164
11451
 
11452
+ ```go
11453
+ package main
11454
+
11455
+ import (
11456
+ "fmt"
11457
+ "net/http"
11458
+ "io"
11459
+ )
11460
+
11461
+ func main() {
11462
+
11463
+ url := "https://api.agentmail.to/v0/webhooks"
11464
+
11465
+ req, _ := http.NewRequest("GET", url, nil)
11466
+
11467
+ req.Header.Add("Authorization", "Bearer <api_key>")
11468
+
11469
+ res, _ := http.DefaultClient.Do(req)
11470
+
11471
+ defer res.Body.Close()
11472
+ body, _ := io.ReadAll(res.Body)
11473
+
11474
+ fmt.Println(res)
11475
+ fmt.Println(string(body))
11476
+
11477
+ }
11478
+ ```
11479
+
11480
+ ```ruby
11481
+ require 'uri'
11482
+ require 'net/http'
11483
+
11484
+ url = URI("https://api.agentmail.to/v0/webhooks")
11485
+
11486
+ http = Net::HTTP.new(url.host, url.port)
11487
+ http.use_ssl = true
11488
+
11489
+ request = Net::HTTP::Get.new(url)
11490
+ request["Authorization"] = 'Bearer <api_key>'
11491
+
11492
+ response = http.request(request)
11493
+ puts response.read_body
11494
+ ```
11495
+
11496
+ ```java
11497
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/webhooks")
11498
+ .header("Authorization", "Bearer <api_key>")
11499
+ .asString();
11500
+ ```
11501
+
11502
+ ```php
11503
+ <?php
11504
+
11505
+ $client = new \GuzzleHttp\Client();
11506
+
11507
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/webhooks', [
11508
+ 'headers' => [
11509
+ 'Authorization' => 'Bearer <api_key>',
11510
+ ],
11511
+ ]);
11512
+
11513
+ echo $response->getBody();
11514
+ ```
11515
+
11516
+ ```csharp
11517
+ var client = new RestClient("https://api.agentmail.to/v0/webhooks");
11518
+ var request = new RestRequest(Method.GET);
11519
+ request.AddHeader("Authorization", "Bearer <api_key>");
11520
+ IRestResponse response = client.Execute(request);
11521
+ ```
11522
+
11523
+ ```swift
11524
+ import Foundation
11525
+
11526
+ let headers = ["Authorization": "Bearer <api_key>"]
11527
+
11528
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/webhooks")! as URL,
11529
+ cachePolicy: .useProtocolCachePolicy,
11530
+ timeoutInterval: 10.0)
11531
+ request.httpMethod = "GET"
11532
+ request.allHTTPHeaderFields = headers
11533
+
11534
+ let session = URLSession.shared
11535
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
11536
+ if (error != nil) {
11537
+ print(error as Any)
11538
+ } else {
11539
+ let httpResponse = response as? HTTPURLResponse
11540
+ print(httpResponse)
11541
+ }
11542
+ })
11543
+
11544
+ dataTask.resume()
11545
+ ```
11546
+
8165
11547
  # Get Webhook
8166
11548
 
8167
11549
  GET https://api.agentmail.to/v0/webhooks/{webhook_id}
@@ -8294,6 +11676,101 @@ client.webhooks.get(
8294
11676
 
8295
11677
  ```
8296
11678
 
11679
+ ```go
11680
+ package main
11681
+
11682
+ import (
11683
+ "fmt"
11684
+ "net/http"
11685
+ "io"
11686
+ )
11687
+
11688
+ func main() {
11689
+
11690
+ url := "https://api.agentmail.to/v0/webhooks/webhook_id"
11691
+
11692
+ req, _ := http.NewRequest("GET", url, nil)
11693
+
11694
+ req.Header.Add("Authorization", "Bearer <api_key>")
11695
+
11696
+ res, _ := http.DefaultClient.Do(req)
11697
+
11698
+ defer res.Body.Close()
11699
+ body, _ := io.ReadAll(res.Body)
11700
+
11701
+ fmt.Println(res)
11702
+ fmt.Println(string(body))
11703
+
11704
+ }
11705
+ ```
11706
+
11707
+ ```ruby
11708
+ require 'uri'
11709
+ require 'net/http'
11710
+
11711
+ url = URI("https://api.agentmail.to/v0/webhooks/webhook_id")
11712
+
11713
+ http = Net::HTTP.new(url.host, url.port)
11714
+ http.use_ssl = true
11715
+
11716
+ request = Net::HTTP::Get.new(url)
11717
+ request["Authorization"] = 'Bearer <api_key>'
11718
+
11719
+ response = http.request(request)
11720
+ puts response.read_body
11721
+ ```
11722
+
11723
+ ```java
11724
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/webhooks/webhook_id")
11725
+ .header("Authorization", "Bearer <api_key>")
11726
+ .asString();
11727
+ ```
11728
+
11729
+ ```php
11730
+ <?php
11731
+
11732
+ $client = new \GuzzleHttp\Client();
11733
+
11734
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/webhooks/webhook_id', [
11735
+ 'headers' => [
11736
+ 'Authorization' => 'Bearer <api_key>',
11737
+ ],
11738
+ ]);
11739
+
11740
+ echo $response->getBody();
11741
+ ```
11742
+
11743
+ ```csharp
11744
+ var client = new RestClient("https://api.agentmail.to/v0/webhooks/webhook_id");
11745
+ var request = new RestRequest(Method.GET);
11746
+ request.AddHeader("Authorization", "Bearer <api_key>");
11747
+ IRestResponse response = client.Execute(request);
11748
+ ```
11749
+
11750
+ ```swift
11751
+ import Foundation
11752
+
11753
+ let headers = ["Authorization": "Bearer <api_key>"]
11754
+
11755
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/webhooks/webhook_id")! as URL,
11756
+ cachePolicy: .useProtocolCachePolicy,
11757
+ timeoutInterval: 10.0)
11758
+ request.httpMethod = "GET"
11759
+ request.allHTTPHeaderFields = headers
11760
+
11761
+ let session = URLSession.shared
11762
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
11763
+ if (error != nil) {
11764
+ print(error as Any)
11765
+ } else {
11766
+ let httpResponse = response as? HTTPURLResponse
11767
+ print(httpResponse)
11768
+ }
11769
+ })
11770
+
11771
+ dataTask.resume()
11772
+ ```
11773
+
8297
11774
  # Create Webhook
8298
11775
 
8299
11776
  POST https://api.agentmail.to/v0/webhooks
@@ -8451,6 +11928,129 @@ client.webhooks.create(
8451
11928
 
8452
11929
  ```
8453
11930
 
11931
+ ```go
11932
+ package main
11933
+
11934
+ import (
11935
+ "fmt"
11936
+ "strings"
11937
+ "net/http"
11938
+ "io"
11939
+ )
11940
+
11941
+ func main() {
11942
+
11943
+ url := "https://api.agentmail.to/v0/webhooks"
11944
+
11945
+ payload := strings.NewReader("{\n \"url\": \"url\",\n \"event_types\": [\n \"message.received\",\n \"message.received\"\n ]\n}")
11946
+
11947
+ req, _ := http.NewRequest("POST", url, payload)
11948
+
11949
+ req.Header.Add("Authorization", "Bearer <api_key>")
11950
+ req.Header.Add("Content-Type", "application/json")
11951
+
11952
+ res, _ := http.DefaultClient.Do(req)
11953
+
11954
+ defer res.Body.Close()
11955
+ body, _ := io.ReadAll(res.Body)
11956
+
11957
+ fmt.Println(res)
11958
+ fmt.Println(string(body))
11959
+
11960
+ }
11961
+ ```
11962
+
11963
+ ```ruby
11964
+ require 'uri'
11965
+ require 'net/http'
11966
+
11967
+ url = URI("https://api.agentmail.to/v0/webhooks")
11968
+
11969
+ http = Net::HTTP.new(url.host, url.port)
11970
+ http.use_ssl = true
11971
+
11972
+ request = Net::HTTP::Post.new(url)
11973
+ request["Authorization"] = 'Bearer <api_key>'
11974
+ request["Content-Type"] = 'application/json'
11975
+ request.body = "{\n \"url\": \"url\",\n \"event_types\": [\n \"message.received\",\n \"message.received\"\n ]\n}"
11976
+
11977
+ response = http.request(request)
11978
+ puts response.read_body
11979
+ ```
11980
+
11981
+ ```java
11982
+ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/webhooks")
11983
+ .header("Authorization", "Bearer <api_key>")
11984
+ .header("Content-Type", "application/json")
11985
+ .body("{\n \"url\": \"url\",\n \"event_types\": [\n \"message.received\",\n \"message.received\"\n ]\n}")
11986
+ .asString();
11987
+ ```
11988
+
11989
+ ```php
11990
+ <?php
11991
+
11992
+ $client = new \GuzzleHttp\Client();
11993
+
11994
+ $response = $client->request('POST', 'https://api.agentmail.to/v0/webhooks', [
11995
+ 'body' => '{
11996
+ "url": "url",
11997
+ "event_types": [
11998
+ "message.received",
11999
+ "message.received"
12000
+ ]
12001
+ }',
12002
+ 'headers' => [
12003
+ 'Authorization' => 'Bearer <api_key>',
12004
+ 'Content-Type' => 'application/json',
12005
+ ],
12006
+ ]);
12007
+
12008
+ echo $response->getBody();
12009
+ ```
12010
+
12011
+ ```csharp
12012
+ var client = new RestClient("https://api.agentmail.to/v0/webhooks");
12013
+ var request = new RestRequest(Method.POST);
12014
+ request.AddHeader("Authorization", "Bearer <api_key>");
12015
+ request.AddHeader("Content-Type", "application/json");
12016
+ request.AddParameter("application/json", "{\n \"url\": \"url\",\n \"event_types\": [\n \"message.received\",\n \"message.received\"\n ]\n}", ParameterType.RequestBody);
12017
+ IRestResponse response = client.Execute(request);
12018
+ ```
12019
+
12020
+ ```swift
12021
+ import Foundation
12022
+
12023
+ let headers = [
12024
+ "Authorization": "Bearer <api_key>",
12025
+ "Content-Type": "application/json"
12026
+ ]
12027
+ let parameters = [
12028
+ "url": "url",
12029
+ "event_types": ["message.received", "message.received"]
12030
+ ] as [String : Any]
12031
+
12032
+ let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
12033
+
12034
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/webhooks")! as URL,
12035
+ cachePolicy: .useProtocolCachePolicy,
12036
+ timeoutInterval: 10.0)
12037
+ request.httpMethod = "POST"
12038
+ request.allHTTPHeaderFields = headers
12039
+ request.httpBody = postData as Data
12040
+
12041
+ let session = URLSession.shared
12042
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
12043
+ if (error != nil) {
12044
+ print(error as Any)
12045
+ } else {
12046
+ let httpResponse = response as? HTTPURLResponse
12047
+ print(httpResponse)
12048
+ }
12049
+ })
12050
+
12051
+ dataTask.resume()
12052
+ ```
12053
+
8454
12054
  # Delete Webhook
8455
12055
 
8456
12056
  DELETE https://api.agentmail.to/v0/webhooks/{webhook_id}
@@ -8528,6 +12128,101 @@ client.webhooks.delete(
8528
12128
 
8529
12129
  ```
8530
12130
 
12131
+ ```go
12132
+ package main
12133
+
12134
+ import (
12135
+ "fmt"
12136
+ "net/http"
12137
+ "io"
12138
+ )
12139
+
12140
+ func main() {
12141
+
12142
+ url := "https://api.agentmail.to/v0/webhooks/webhook_id"
12143
+
12144
+ req, _ := http.NewRequest("DELETE", url, nil)
12145
+
12146
+ req.Header.Add("Authorization", "Bearer <api_key>")
12147
+
12148
+ res, _ := http.DefaultClient.Do(req)
12149
+
12150
+ defer res.Body.Close()
12151
+ body, _ := io.ReadAll(res.Body)
12152
+
12153
+ fmt.Println(res)
12154
+ fmt.Println(string(body))
12155
+
12156
+ }
12157
+ ```
12158
+
12159
+ ```ruby
12160
+ require 'uri'
12161
+ require 'net/http'
12162
+
12163
+ url = URI("https://api.agentmail.to/v0/webhooks/webhook_id")
12164
+
12165
+ http = Net::HTTP.new(url.host, url.port)
12166
+ http.use_ssl = true
12167
+
12168
+ request = Net::HTTP::Delete.new(url)
12169
+ request["Authorization"] = 'Bearer <api_key>'
12170
+
12171
+ response = http.request(request)
12172
+ puts response.read_body
12173
+ ```
12174
+
12175
+ ```java
12176
+ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/webhooks/webhook_id")
12177
+ .header("Authorization", "Bearer <api_key>")
12178
+ .asString();
12179
+ ```
12180
+
12181
+ ```php
12182
+ <?php
12183
+
12184
+ $client = new \GuzzleHttp\Client();
12185
+
12186
+ $response = $client->request('DELETE', 'https://api.agentmail.to/v0/webhooks/webhook_id', [
12187
+ 'headers' => [
12188
+ 'Authorization' => 'Bearer <api_key>',
12189
+ ],
12190
+ ]);
12191
+
12192
+ echo $response->getBody();
12193
+ ```
12194
+
12195
+ ```csharp
12196
+ var client = new RestClient("https://api.agentmail.to/v0/webhooks/webhook_id");
12197
+ var request = new RestRequest(Method.DELETE);
12198
+ request.AddHeader("Authorization", "Bearer <api_key>");
12199
+ IRestResponse response = client.Execute(request);
12200
+ ```
12201
+
12202
+ ```swift
12203
+ import Foundation
12204
+
12205
+ let headers = ["Authorization": "Bearer <api_key>"]
12206
+
12207
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/webhooks/webhook_id")! as URL,
12208
+ cachePolicy: .useProtocolCachePolicy,
12209
+ timeoutInterval: 10.0)
12210
+ request.httpMethod = "DELETE"
12211
+ request.allHTTPHeaderFields = headers
12212
+
12213
+ let session = URLSession.shared
12214
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
12215
+ if (error != nil) {
12216
+ print(error as Any)
12217
+ } else {
12218
+ let httpResponse = response as? HTTPURLResponse
12219
+ print(httpResponse)
12220
+ }
12221
+ })
12222
+
12223
+ dataTask.resume()
12224
+ ```
12225
+
8531
12226
  # List Metrics
8532
12227
 
8533
12228
  GET https://api.agentmail.to/v0/metrics
@@ -8681,6 +12376,101 @@ client.metrics.list(
8681
12376
 
8682
12377
  ```
8683
12378
 
12379
+ ```go
12380
+ package main
12381
+
12382
+ import (
12383
+ "fmt"
12384
+ "net/http"
12385
+ "io"
12386
+ )
12387
+
12388
+ func main() {
12389
+
12390
+ url := "https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z"
12391
+
12392
+ req, _ := http.NewRequest("GET", url, nil)
12393
+
12394
+ req.Header.Add("Authorization", "Bearer <api_key>")
12395
+
12396
+ res, _ := http.DefaultClient.Do(req)
12397
+
12398
+ defer res.Body.Close()
12399
+ body, _ := io.ReadAll(res.Body)
12400
+
12401
+ fmt.Println(res)
12402
+ fmt.Println(string(body))
12403
+
12404
+ }
12405
+ ```
12406
+
12407
+ ```ruby
12408
+ require 'uri'
12409
+ require 'net/http'
12410
+
12411
+ url = URI("https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z")
12412
+
12413
+ http = Net::HTTP.new(url.host, url.port)
12414
+ http.use_ssl = true
12415
+
12416
+ request = Net::HTTP::Get.new(url)
12417
+ request["Authorization"] = 'Bearer <api_key>'
12418
+
12419
+ response = http.request(request)
12420
+ puts response.read_body
12421
+ ```
12422
+
12423
+ ```java
12424
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z")
12425
+ .header("Authorization", "Bearer <api_key>")
12426
+ .asString();
12427
+ ```
12428
+
12429
+ ```php
12430
+ <?php
12431
+
12432
+ $client = new \GuzzleHttp\Client();
12433
+
12434
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z', [
12435
+ 'headers' => [
12436
+ 'Authorization' => 'Bearer <api_key>',
12437
+ ],
12438
+ ]);
12439
+
12440
+ echo $response->getBody();
12441
+ ```
12442
+
12443
+ ```csharp
12444
+ var client = new RestClient("https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z");
12445
+ var request = new RestRequest(Method.GET);
12446
+ request.AddHeader("Authorization", "Bearer <api_key>");
12447
+ IRestResponse response = client.Execute(request);
12448
+ ```
12449
+
12450
+ ```swift
12451
+ import Foundation
12452
+
12453
+ let headers = ["Authorization": "Bearer <api_key>"]
12454
+
12455
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z")! as URL,
12456
+ cachePolicy: .useProtocolCachePolicy,
12457
+ timeoutInterval: 10.0)
12458
+ request.httpMethod = "GET"
12459
+ request.allHTTPHeaderFields = headers
12460
+
12461
+ let session = URLSession.shared
12462
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
12463
+ if (error != nil) {
12464
+ print(error as Any)
12465
+ } else {
12466
+ let httpResponse = response as? HTTPURLResponse
12467
+ print(httpResponse)
12468
+ }
12469
+ })
12470
+
12471
+ dataTask.resume()
12472
+ ```
12473
+
8684
12474
  # List API Keys
8685
12475
 
8686
12476
  GET https://api.agentmail.to/v0/api-keys
@@ -8808,6 +12598,101 @@ client.api_keys.list()
8808
12598
 
8809
12599
  ```
8810
12600
 
12601
+ ```go
12602
+ package main
12603
+
12604
+ import (
12605
+ "fmt"
12606
+ "net/http"
12607
+ "io"
12608
+ )
12609
+
12610
+ func main() {
12611
+
12612
+ url := "https://api.agentmail.to/v0/api-keys"
12613
+
12614
+ req, _ := http.NewRequest("GET", url, nil)
12615
+
12616
+ req.Header.Add("Authorization", "Bearer <api_key>")
12617
+
12618
+ res, _ := http.DefaultClient.Do(req)
12619
+
12620
+ defer res.Body.Close()
12621
+ body, _ := io.ReadAll(res.Body)
12622
+
12623
+ fmt.Println(res)
12624
+ fmt.Println(string(body))
12625
+
12626
+ }
12627
+ ```
12628
+
12629
+ ```ruby
12630
+ require 'uri'
12631
+ require 'net/http'
12632
+
12633
+ url = URI("https://api.agentmail.to/v0/api-keys")
12634
+
12635
+ http = Net::HTTP.new(url.host, url.port)
12636
+ http.use_ssl = true
12637
+
12638
+ request = Net::HTTP::Get.new(url)
12639
+ request["Authorization"] = 'Bearer <api_key>'
12640
+
12641
+ response = http.request(request)
12642
+ puts response.read_body
12643
+ ```
12644
+
12645
+ ```java
12646
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/api-keys")
12647
+ .header("Authorization", "Bearer <api_key>")
12648
+ .asString();
12649
+ ```
12650
+
12651
+ ```php
12652
+ <?php
12653
+
12654
+ $client = new \GuzzleHttp\Client();
12655
+
12656
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/api-keys', [
12657
+ 'headers' => [
12658
+ 'Authorization' => 'Bearer <api_key>',
12659
+ ],
12660
+ ]);
12661
+
12662
+ echo $response->getBody();
12663
+ ```
12664
+
12665
+ ```csharp
12666
+ var client = new RestClient("https://api.agentmail.to/v0/api-keys");
12667
+ var request = new RestRequest(Method.GET);
12668
+ request.AddHeader("Authorization", "Bearer <api_key>");
12669
+ IRestResponse response = client.Execute(request);
12670
+ ```
12671
+
12672
+ ```swift
12673
+ import Foundation
12674
+
12675
+ let headers = ["Authorization": "Bearer <api_key>"]
12676
+
12677
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/api-keys")! as URL,
12678
+ cachePolicy: .useProtocolCachePolicy,
12679
+ timeoutInterval: 10.0)
12680
+ request.httpMethod = "GET"
12681
+ request.allHTTPHeaderFields = headers
12682
+
12683
+ let session = URLSession.shared
12684
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
12685
+ if (error != nil) {
12686
+ print(error as Any)
12687
+ } else {
12688
+ let httpResponse = response as? HTTPURLResponse
12689
+ print(httpResponse)
12690
+ }
12691
+ })
12692
+
12693
+ dataTask.resume()
12694
+ ```
12695
+
8811
12696
  # Create API Key
8812
12697
 
8813
12698
  POST https://api.agentmail.to/v0/api-keys
@@ -8925,6 +12810,122 @@ client.api_keys.create(
8925
12810
 
8926
12811
  ```
8927
12812
 
12813
+ ```go
12814
+ package main
12815
+
12816
+ import (
12817
+ "fmt"
12818
+ "strings"
12819
+ "net/http"
12820
+ "io"
12821
+ )
12822
+
12823
+ func main() {
12824
+
12825
+ url := "https://api.agentmail.to/v0/api-keys"
12826
+
12827
+ payload := strings.NewReader("{\n \"name\": \"name\"\n}")
12828
+
12829
+ req, _ := http.NewRequest("POST", url, payload)
12830
+
12831
+ req.Header.Add("Authorization", "Bearer <api_key>")
12832
+ req.Header.Add("Content-Type", "application/json")
12833
+
12834
+ res, _ := http.DefaultClient.Do(req)
12835
+
12836
+ defer res.Body.Close()
12837
+ body, _ := io.ReadAll(res.Body)
12838
+
12839
+ fmt.Println(res)
12840
+ fmt.Println(string(body))
12841
+
12842
+ }
12843
+ ```
12844
+
12845
+ ```ruby
12846
+ require 'uri'
12847
+ require 'net/http'
12848
+
12849
+ url = URI("https://api.agentmail.to/v0/api-keys")
12850
+
12851
+ http = Net::HTTP.new(url.host, url.port)
12852
+ http.use_ssl = true
12853
+
12854
+ request = Net::HTTP::Post.new(url)
12855
+ request["Authorization"] = 'Bearer <api_key>'
12856
+ request["Content-Type"] = 'application/json'
12857
+ request.body = "{\n \"name\": \"name\"\n}"
12858
+
12859
+ response = http.request(request)
12860
+ puts response.read_body
12861
+ ```
12862
+
12863
+ ```java
12864
+ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/api-keys")
12865
+ .header("Authorization", "Bearer <api_key>")
12866
+ .header("Content-Type", "application/json")
12867
+ .body("{\n \"name\": \"name\"\n}")
12868
+ .asString();
12869
+ ```
12870
+
12871
+ ```php
12872
+ <?php
12873
+
12874
+ $client = new \GuzzleHttp\Client();
12875
+
12876
+ $response = $client->request('POST', 'https://api.agentmail.to/v0/api-keys', [
12877
+ 'body' => '{
12878
+ "name": "name"
12879
+ }',
12880
+ 'headers' => [
12881
+ 'Authorization' => 'Bearer <api_key>',
12882
+ 'Content-Type' => 'application/json',
12883
+ ],
12884
+ ]);
12885
+
12886
+ echo $response->getBody();
12887
+ ```
12888
+
12889
+ ```csharp
12890
+ var client = new RestClient("https://api.agentmail.to/v0/api-keys");
12891
+ var request = new RestRequest(Method.POST);
12892
+ request.AddHeader("Authorization", "Bearer <api_key>");
12893
+ request.AddHeader("Content-Type", "application/json");
12894
+ request.AddParameter("application/json", "{\n \"name\": \"name\"\n}", ParameterType.RequestBody);
12895
+ IRestResponse response = client.Execute(request);
12896
+ ```
12897
+
12898
+ ```swift
12899
+ import Foundation
12900
+
12901
+ let headers = [
12902
+ "Authorization": "Bearer <api_key>",
12903
+ "Content-Type": "application/json"
12904
+ ]
12905
+ let parameters = ["name": "name"] as [String : Any]
12906
+
12907
+ let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
12908
+
12909
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/api-keys")! as URL,
12910
+ cachePolicy: .useProtocolCachePolicy,
12911
+ timeoutInterval: 10.0)
12912
+ request.httpMethod = "POST"
12913
+ request.allHTTPHeaderFields = headers
12914
+ request.httpBody = postData as Data
12915
+
12916
+ let session = URLSession.shared
12917
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
12918
+ if (error != nil) {
12919
+ print(error as Any)
12920
+ } else {
12921
+ let httpResponse = response as? HTTPURLResponse
12922
+ print(httpResponse)
12923
+ }
12924
+ })
12925
+
12926
+ dataTask.resume()
12927
+ ```
12928
+
8928
12929
  # Delete API Key
8929
12930
 
8930
12931
  DELETE https://api.agentmail.to/v0/api-keys/{api_key}
@@ -9002,6 +13003,101 @@ client.api_keys.delete(
9002
13003
 
9003
13004
  ```
9004
13005
 
13006
+ ```go
13007
+ package main
13008
+
13009
+ import (
13010
+ "fmt"
13011
+ "net/http"
13012
+ "io"
13013
+ )
13014
+
13015
+ func main() {
13016
+
13017
+ url := "https://api.agentmail.to/v0/api-keys/api_key"
13018
+
13019
+ req, _ := http.NewRequest("DELETE", url, nil)
13020
+
13021
+ req.Header.Add("Authorization", "Bearer <api_key>")
13022
+
13023
+ res, _ := http.DefaultClient.Do(req)
13024
+
13025
+ defer res.Body.Close()
13026
+ body, _ := io.ReadAll(res.Body)
13027
+
13028
+ fmt.Println(res)
13029
+ fmt.Println(string(body))
13030
+
13031
+ }
13032
+ ```
13033
+
13034
+ ```ruby
13035
+ require 'uri'
13036
+ require 'net/http'
13037
+
13038
+ url = URI("https://api.agentmail.to/v0/api-keys/api_key")
13039
+
13040
+ http = Net::HTTP.new(url.host, url.port)
13041
+ http.use_ssl = true
13042
+
13043
+ request = Net::HTTP::Delete.new(url)
13044
+ request["Authorization"] = 'Bearer <api_key>'
13045
+
13046
+ response = http.request(request)
13047
+ puts response.read_body
13048
+ ```
13049
+
13050
+ ```java
13051
+ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/api-keys/api_key")
13052
+ .header("Authorization", "Bearer <api_key>")
13053
+ .asString();
13054
+ ```
13055
+
13056
+ ```php
13057
+ <?php
13058
+
13059
+ $client = new \GuzzleHttp\Client();
13060
+
13061
+ $response = $client->request('DELETE', 'https://api.agentmail.to/v0/api-keys/api_key', [
13062
+ 'headers' => [
13063
+ 'Authorization' => 'Bearer <api_key>',
13064
+ ],
13065
+ ]);
13066
+
13067
+ echo $response->getBody();
13068
+ ```
13069
+
13070
+ ```csharp
13071
+ var client = new RestClient("https://api.agentmail.to/v0/api-keys/api_key");
13072
+ var request = new RestRequest(Method.DELETE);
13073
+ request.AddHeader("Authorization", "Bearer <api_key>");
13074
+ IRestResponse response = client.Execute(request);
13075
+ ```
13076
+
13077
+ ```swift
13078
+ import Foundation
13079
+
13080
+ let headers = ["Authorization": "Bearer <api_key>"]
13081
+
13082
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/api-keys/api_key")! as URL,
13083
+ cachePolicy: .useProtocolCachePolicy,
13084
+ timeoutInterval: 10.0)
13085
+ request.httpMethod = "DELETE"
13086
+ request.allHTTPHeaderFields = headers
13087
+
13088
+ let session = URLSession.shared
13089
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
13090
+ if (error != nil) {
13091
+ print(error as Any)
13092
+ } else {
13093
+ let httpResponse = response as? HTTPURLResponse
13094
+ print(httpResponse)
13095
+ }
13096
+ })
13097
+
13098
+ dataTask.resume()
13099
+ ```
13100
+
9005
13101
  # August 13, 2025
9006
13102
 
9007
13103
  ## Summary
@@ -9022,3 +13118,5 @@ Build smarter agents that monitor their own bounce rates, optimize send timing,
9022
13118
  documentation](https://docs.agentmail.to/api-reference/metrics) to get
9023
13119
  started.
9024
13120
  </Note>
13121
+
13122
+