agentmail 0.2.13 → 0.2.15
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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/websockets/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/websockets/client/Client.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/websockets/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/websockets/client/Client.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms-full.txt +547 -134
- package/package.json +1 -1
package/dist/llms-full.txt
CHANGED
|
@@ -8413,6 +8413,14 @@ description: Quick overview of the AgentMail SDK
|
|
|
8413
8413
|
|
|
8414
8414
|
AgentMail provides a powerful API for managing email communications programmatically. Whether you're building automated testing systems, handling customer support workflows, or developing email-based applications, our API offers the tools you need!
|
|
8415
8415
|
|
|
8416
|
+
## Base URL
|
|
8417
|
+
|
|
8418
|
+
All API requests should be made to the following base URL:
|
|
8419
|
+
|
|
8420
|
+
```
|
|
8421
|
+
https://api.agentmail.to/v0/
|
|
8422
|
+
```
|
|
8423
|
+
|
|
8416
8424
|
## Available SDKs
|
|
8417
8425
|
|
|
8418
8426
|
<Cards>
|
|
@@ -8551,7 +8559,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
8551
8559
|
|
|
8552
8560
|
async function main() {
|
|
8553
8561
|
const client = new AgentMailClient({
|
|
8554
|
-
environment: AgentMailEnvironment.
|
|
8562
|
+
environment: AgentMailEnvironment.Prod,
|
|
8555
8563
|
apiKey: "YOUR_TOKEN_HERE",
|
|
8556
8564
|
});
|
|
8557
8565
|
await client.inboxes.list({});
|
|
@@ -8565,7 +8573,7 @@ from agentmail import AgentMail
|
|
|
8565
8573
|
from agentmail.environment import AgentMailEnvironment
|
|
8566
8574
|
|
|
8567
8575
|
client = AgentMail(
|
|
8568
|
-
environment=AgentMailEnvironment.
|
|
8576
|
+
environment=AgentMailEnvironment.PROD,
|
|
8569
8577
|
api_key="YOUR_TOKEN_HERE"
|
|
8570
8578
|
)
|
|
8571
8579
|
|
|
@@ -8624,6 +8632,9 @@ puts response.read_body
|
|
|
8624
8632
|
```
|
|
8625
8633
|
|
|
8626
8634
|
```java
|
|
8635
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
8636
|
+
import com.mashape.unirest.http.Unirest;
|
|
8637
|
+
|
|
8627
8638
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes")
|
|
8628
8639
|
.header("Authorization", "Bearer <api_key>")
|
|
8629
8640
|
.header("Content-Type", "application/json")
|
|
@@ -8633,6 +8644,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
8633
8644
|
|
|
8634
8645
|
```php
|
|
8635
8646
|
<?php
|
|
8647
|
+
require_once('vendor/autoload.php');
|
|
8636
8648
|
|
|
8637
8649
|
$client = new \GuzzleHttp\Client();
|
|
8638
8650
|
|
|
@@ -8648,6 +8660,8 @@ echo $response->getBody();
|
|
|
8648
8660
|
```
|
|
8649
8661
|
|
|
8650
8662
|
```csharp
|
|
8663
|
+
using RestSharp;
|
|
8664
|
+
|
|
8651
8665
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes");
|
|
8652
8666
|
var request = new RestRequest(Method.GET);
|
|
8653
8667
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -8775,7 +8789,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
8775
8789
|
|
|
8776
8790
|
async function main() {
|
|
8777
8791
|
const client = new AgentMailClient({
|
|
8778
|
-
environment: AgentMailEnvironment.
|
|
8792
|
+
environment: AgentMailEnvironment.Prod,
|
|
8779
8793
|
apiKey: "YOUR_TOKEN_HERE",
|
|
8780
8794
|
});
|
|
8781
8795
|
await client.inboxes.get("inbox_id");
|
|
@@ -8789,7 +8803,7 @@ from agentmail import AgentMail
|
|
|
8789
8803
|
from agentmail.environment import AgentMailEnvironment
|
|
8790
8804
|
|
|
8791
8805
|
client = AgentMail(
|
|
8792
|
-
environment=AgentMailEnvironment.
|
|
8806
|
+
environment=AgentMailEnvironment.PROD,
|
|
8793
8807
|
api_key="YOUR_TOKEN_HERE"
|
|
8794
8808
|
)
|
|
8795
8809
|
|
|
@@ -8850,6 +8864,9 @@ puts response.read_body
|
|
|
8850
8864
|
```
|
|
8851
8865
|
|
|
8852
8866
|
```java
|
|
8867
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
8868
|
+
import com.mashape.unirest.http.Unirest;
|
|
8869
|
+
|
|
8853
8870
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id")
|
|
8854
8871
|
.header("Authorization", "Bearer <api_key>")
|
|
8855
8872
|
.header("Content-Type", "application/json")
|
|
@@ -8859,6 +8876,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
8859
8876
|
|
|
8860
8877
|
```php
|
|
8861
8878
|
<?php
|
|
8879
|
+
require_once('vendor/autoload.php');
|
|
8862
8880
|
|
|
8863
8881
|
$client = new \GuzzleHttp\Client();
|
|
8864
8882
|
|
|
@@ -8874,6 +8892,8 @@ echo $response->getBody();
|
|
|
8874
8892
|
```
|
|
8875
8893
|
|
|
8876
8894
|
```csharp
|
|
8895
|
+
using RestSharp;
|
|
8896
|
+
|
|
8877
8897
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id");
|
|
8878
8898
|
var request = new RestRequest(Method.GET);
|
|
8879
8899
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -9017,7 +9037,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
9017
9037
|
|
|
9018
9038
|
async function main() {
|
|
9019
9039
|
const client = new AgentMailClient({
|
|
9020
|
-
environment: AgentMailEnvironment.
|
|
9040
|
+
environment: AgentMailEnvironment.Prod,
|
|
9021
9041
|
apiKey: "YOUR_TOKEN_HERE",
|
|
9022
9042
|
});
|
|
9023
9043
|
await client.inboxes.create({
|
|
@@ -9034,7 +9054,7 @@ from agentmail import AgentMail
|
|
|
9034
9054
|
from agentmail.environment import AgentMailEnvironment
|
|
9035
9055
|
|
|
9036
9056
|
client = AgentMail(
|
|
9037
|
-
environment=AgentMailEnvironment.
|
|
9057
|
+
environment=AgentMailEnvironment.PROD,
|
|
9038
9058
|
api_key="YOUR_TOKEN_HERE"
|
|
9039
9059
|
)
|
|
9040
9060
|
|
|
@@ -9096,6 +9116,9 @@ puts response.read_body
|
|
|
9096
9116
|
```
|
|
9097
9117
|
|
|
9098
9118
|
```java
|
|
9119
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
9120
|
+
import com.mashape.unirest.http.Unirest;
|
|
9121
|
+
|
|
9099
9122
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes")
|
|
9100
9123
|
.header("Authorization", "Bearer <api_key>")
|
|
9101
9124
|
.header("Content-Type", "application/json")
|
|
@@ -9105,6 +9128,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxe
|
|
|
9105
9128
|
|
|
9106
9129
|
```php
|
|
9107
9130
|
<?php
|
|
9131
|
+
require_once('vendor/autoload.php');
|
|
9108
9132
|
|
|
9109
9133
|
$client = new \GuzzleHttp\Client();
|
|
9110
9134
|
|
|
@@ -9125,6 +9149,8 @@ echo $response->getBody();
|
|
|
9125
9149
|
```
|
|
9126
9150
|
|
|
9127
9151
|
```csharp
|
|
9152
|
+
using RestSharp;
|
|
9153
|
+
|
|
9128
9154
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes");
|
|
9129
9155
|
var request = new RestRequest(Method.POST);
|
|
9130
9156
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -9270,7 +9296,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
9270
9296
|
|
|
9271
9297
|
async function main() {
|
|
9272
9298
|
const client = new AgentMailClient({
|
|
9273
|
-
environment: AgentMailEnvironment.
|
|
9299
|
+
environment: AgentMailEnvironment.Prod,
|
|
9274
9300
|
apiKey: "YOUR_TOKEN_HERE",
|
|
9275
9301
|
});
|
|
9276
9302
|
await client.inboxes.update("inbox_id", {
|
|
@@ -9286,7 +9312,7 @@ from agentmail import AgentMail
|
|
|
9286
9312
|
from agentmail.environment import AgentMailEnvironment
|
|
9287
9313
|
|
|
9288
9314
|
client = AgentMail(
|
|
9289
|
-
environment=AgentMailEnvironment.
|
|
9315
|
+
environment=AgentMailEnvironment.PROD,
|
|
9290
9316
|
api_key="YOUR_TOKEN_HERE"
|
|
9291
9317
|
)
|
|
9292
9318
|
|
|
@@ -9348,6 +9374,9 @@ puts response.read_body
|
|
|
9348
9374
|
```
|
|
9349
9375
|
|
|
9350
9376
|
```java
|
|
9377
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
9378
|
+
import com.mashape.unirest.http.Unirest;
|
|
9379
|
+
|
|
9351
9380
|
HttpResponse<String> response = Unirest.patch("https://api.agentmail.to/v0/inboxes/inbox_id")
|
|
9352
9381
|
.header("Authorization", "Bearer <api_key>")
|
|
9353
9382
|
.header("Content-Type", "application/json")
|
|
@@ -9357,6 +9386,7 @@ HttpResponse<String> response = Unirest.patch("https://api.agentmail.to/v0/inbox
|
|
|
9357
9386
|
|
|
9358
9387
|
```php
|
|
9359
9388
|
<?php
|
|
9389
|
+
require_once('vendor/autoload.php');
|
|
9360
9390
|
|
|
9361
9391
|
$client = new \GuzzleHttp\Client();
|
|
9362
9392
|
|
|
@@ -9374,6 +9404,8 @@ echo $response->getBody();
|
|
|
9374
9404
|
```
|
|
9375
9405
|
|
|
9376
9406
|
```csharp
|
|
9407
|
+
using RestSharp;
|
|
9408
|
+
|
|
9377
9409
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id");
|
|
9378
9410
|
var request = new RestRequest(Method.PATCH);
|
|
9379
9411
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -9467,7 +9499,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
9467
9499
|
|
|
9468
9500
|
async function main() {
|
|
9469
9501
|
const client = new AgentMailClient({
|
|
9470
|
-
environment: AgentMailEnvironment.
|
|
9502
|
+
environment: AgentMailEnvironment.Prod,
|
|
9471
9503
|
apiKey: "YOUR_TOKEN_HERE",
|
|
9472
9504
|
});
|
|
9473
9505
|
await client.inboxes.delete("inbox_id");
|
|
@@ -9481,7 +9513,7 @@ from agentmail import AgentMail
|
|
|
9481
9513
|
from agentmail.environment import AgentMailEnvironment
|
|
9482
9514
|
|
|
9483
9515
|
client = AgentMail(
|
|
9484
|
-
environment=AgentMailEnvironment.
|
|
9516
|
+
environment=AgentMailEnvironment.PROD,
|
|
9485
9517
|
api_key="YOUR_TOKEN_HERE"
|
|
9486
9518
|
)
|
|
9487
9519
|
|
|
@@ -9536,6 +9568,9 @@ puts response.read_body
|
|
|
9536
9568
|
```
|
|
9537
9569
|
|
|
9538
9570
|
```java
|
|
9571
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
9572
|
+
import com.mashape.unirest.http.Unirest;
|
|
9573
|
+
|
|
9539
9574
|
HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/inboxes/inbox_id")
|
|
9540
9575
|
.header("Authorization", "Bearer <api_key>")
|
|
9541
9576
|
.asString();
|
|
@@ -9543,6 +9578,7 @@ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/inbo
|
|
|
9543
9578
|
|
|
9544
9579
|
```php
|
|
9545
9580
|
<?php
|
|
9581
|
+
require_once('vendor/autoload.php');
|
|
9546
9582
|
|
|
9547
9583
|
$client = new \GuzzleHttp\Client();
|
|
9548
9584
|
|
|
@@ -9556,6 +9592,8 @@ echo $response->getBody();
|
|
|
9556
9592
|
```
|
|
9557
9593
|
|
|
9558
9594
|
```csharp
|
|
9595
|
+
using RestSharp;
|
|
9596
|
+
|
|
9559
9597
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id");
|
|
9560
9598
|
var request = new RestRequest(Method.DELETE);
|
|
9561
9599
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -9840,7 +9878,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
9840
9878
|
|
|
9841
9879
|
async function main() {
|
|
9842
9880
|
const client = new AgentMailClient({
|
|
9843
|
-
environment: AgentMailEnvironment.
|
|
9881
|
+
environment: AgentMailEnvironment.Prod,
|
|
9844
9882
|
apiKey: "YOUR_TOKEN_HERE",
|
|
9845
9883
|
});
|
|
9846
9884
|
await client.inboxes.threads.list("inbox_id", {});
|
|
@@ -9854,7 +9892,7 @@ from agentmail import AgentMail
|
|
|
9854
9892
|
from agentmail.environment import AgentMailEnvironment
|
|
9855
9893
|
|
|
9856
9894
|
client = AgentMail(
|
|
9857
|
-
environment=AgentMailEnvironment.
|
|
9895
|
+
environment=AgentMailEnvironment.PROD,
|
|
9858
9896
|
api_key="YOUR_TOKEN_HERE"
|
|
9859
9897
|
)
|
|
9860
9898
|
|
|
@@ -9915,6 +9953,9 @@ puts response.read_body
|
|
|
9915
9953
|
```
|
|
9916
9954
|
|
|
9917
9955
|
```java
|
|
9956
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
9957
|
+
import com.mashape.unirest.http.Unirest;
|
|
9958
|
+
|
|
9918
9959
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/threads")
|
|
9919
9960
|
.header("Authorization", "Bearer <api_key>")
|
|
9920
9961
|
.header("Content-Type", "application/json")
|
|
@@ -9924,6 +9965,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
9924
9965
|
|
|
9925
9966
|
```php
|
|
9926
9967
|
<?php
|
|
9968
|
+
require_once('vendor/autoload.php');
|
|
9927
9969
|
|
|
9928
9970
|
$client = new \GuzzleHttp\Client();
|
|
9929
9971
|
|
|
@@ -9939,6 +9981,8 @@ echo $response->getBody();
|
|
|
9939
9981
|
```
|
|
9940
9982
|
|
|
9941
9983
|
```csharp
|
|
9984
|
+
using RestSharp;
|
|
9985
|
+
|
|
9942
9986
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/threads");
|
|
9943
9987
|
var request = new RestRequest(Method.GET);
|
|
9944
9988
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -10291,7 +10335,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
10291
10335
|
|
|
10292
10336
|
async function main() {
|
|
10293
10337
|
const client = new AgentMailClient({
|
|
10294
|
-
environment: AgentMailEnvironment.
|
|
10338
|
+
environment: AgentMailEnvironment.Prod,
|
|
10295
10339
|
apiKey: "YOUR_TOKEN_HERE",
|
|
10296
10340
|
});
|
|
10297
10341
|
await client.inboxes.threads.get("inbox_id", "thread_id");
|
|
@@ -10305,7 +10349,7 @@ from agentmail import AgentMail
|
|
|
10305
10349
|
from agentmail.environment import AgentMailEnvironment
|
|
10306
10350
|
|
|
10307
10351
|
client = AgentMail(
|
|
10308
|
-
environment=AgentMailEnvironment.
|
|
10352
|
+
environment=AgentMailEnvironment.PROD,
|
|
10309
10353
|
api_key="YOUR_TOKEN_HERE"
|
|
10310
10354
|
)
|
|
10311
10355
|
|
|
@@ -10361,6 +10405,9 @@ puts response.read_body
|
|
|
10361
10405
|
```
|
|
10362
10406
|
|
|
10363
10407
|
```java
|
|
10408
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
10409
|
+
import com.mashape.unirest.http.Unirest;
|
|
10410
|
+
|
|
10364
10411
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id")
|
|
10365
10412
|
.header("Authorization", "Bearer <api_key>")
|
|
10366
10413
|
.asString();
|
|
@@ -10368,6 +10415,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
10368
10415
|
|
|
10369
10416
|
```php
|
|
10370
10417
|
<?php
|
|
10418
|
+
require_once('vendor/autoload.php');
|
|
10371
10419
|
|
|
10372
10420
|
$client = new \GuzzleHttp\Client();
|
|
10373
10421
|
|
|
@@ -10381,6 +10429,8 @@ echo $response->getBody();
|
|
|
10381
10429
|
```
|
|
10382
10430
|
|
|
10383
10431
|
```csharp
|
|
10432
|
+
using RestSharp;
|
|
10433
|
+
|
|
10384
10434
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id");
|
|
10385
10435
|
var request = new RestRequest(Method.GET);
|
|
10386
10436
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -10524,7 +10574,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
10524
10574
|
|
|
10525
10575
|
async function main() {
|
|
10526
10576
|
const client = new AgentMailClient({
|
|
10527
|
-
environment: AgentMailEnvironment.
|
|
10577
|
+
environment: AgentMailEnvironment.Prod,
|
|
10528
10578
|
apiKey: "YOUR_TOKEN_HERE",
|
|
10529
10579
|
});
|
|
10530
10580
|
await client.inboxes.threads.getAttachment("inbox_id", "thread_id", "attachment_id");
|
|
@@ -10538,7 +10588,7 @@ from agentmail import AgentMail
|
|
|
10538
10588
|
from agentmail.environment import AgentMailEnvironment
|
|
10539
10589
|
|
|
10540
10590
|
client = AgentMail(
|
|
10541
|
-
environment=AgentMailEnvironment.
|
|
10591
|
+
environment=AgentMailEnvironment.PROD,
|
|
10542
10592
|
api_key="YOUR_TOKEN_HERE"
|
|
10543
10593
|
)
|
|
10544
10594
|
|
|
@@ -10595,6 +10645,9 @@ puts response.read_body
|
|
|
10595
10645
|
```
|
|
10596
10646
|
|
|
10597
10647
|
```java
|
|
10648
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
10649
|
+
import com.mashape.unirest.http.Unirest;
|
|
10650
|
+
|
|
10598
10651
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id/attachments/attachment_id")
|
|
10599
10652
|
.header("Authorization", "Bearer <api_key>")
|
|
10600
10653
|
.asString();
|
|
@@ -10602,6 +10655,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
10602
10655
|
|
|
10603
10656
|
```php
|
|
10604
10657
|
<?php
|
|
10658
|
+
require_once('vendor/autoload.php');
|
|
10605
10659
|
|
|
10606
10660
|
$client = new \GuzzleHttp\Client();
|
|
10607
10661
|
|
|
@@ -10615,6 +10669,8 @@ echo $response->getBody();
|
|
|
10615
10669
|
```
|
|
10616
10670
|
|
|
10617
10671
|
```csharp
|
|
10672
|
+
using RestSharp;
|
|
10673
|
+
|
|
10618
10674
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id/attachments/attachment_id");
|
|
10619
10675
|
var request = new RestRequest(Method.GET);
|
|
10620
10676
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -10707,7 +10763,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
10707
10763
|
|
|
10708
10764
|
async function main() {
|
|
10709
10765
|
const client = new AgentMailClient({
|
|
10710
|
-
environment: AgentMailEnvironment.
|
|
10766
|
+
environment: AgentMailEnvironment.Prod,
|
|
10711
10767
|
apiKey: "YOUR_TOKEN_HERE",
|
|
10712
10768
|
});
|
|
10713
10769
|
await client.inboxes.threads.delete("inbox_id", "thread_id");
|
|
@@ -10721,7 +10777,7 @@ from agentmail import AgentMail
|
|
|
10721
10777
|
from agentmail.environment import AgentMailEnvironment
|
|
10722
10778
|
|
|
10723
10779
|
client = AgentMail(
|
|
10724
|
-
environment=AgentMailEnvironment.
|
|
10780
|
+
environment=AgentMailEnvironment.PROD,
|
|
10725
10781
|
api_key="YOUR_TOKEN_HERE"
|
|
10726
10782
|
)
|
|
10727
10783
|
|
|
@@ -10777,6 +10833,9 @@ puts response.read_body
|
|
|
10777
10833
|
```
|
|
10778
10834
|
|
|
10779
10835
|
```java
|
|
10836
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
10837
|
+
import com.mashape.unirest.http.Unirest;
|
|
10838
|
+
|
|
10780
10839
|
HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id")
|
|
10781
10840
|
.header("Authorization", "Bearer <api_key>")
|
|
10782
10841
|
.asString();
|
|
@@ -10784,6 +10843,7 @@ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/inbo
|
|
|
10784
10843
|
|
|
10785
10844
|
```php
|
|
10786
10845
|
<?php
|
|
10846
|
+
require_once('vendor/autoload.php');
|
|
10787
10847
|
|
|
10788
10848
|
$client = new \GuzzleHttp\Client();
|
|
10789
10849
|
|
|
@@ -10797,6 +10857,8 @@ echo $response->getBody();
|
|
|
10797
10857
|
```
|
|
10798
10858
|
|
|
10799
10859
|
```csharp
|
|
10860
|
+
using RestSharp;
|
|
10861
|
+
|
|
10800
10862
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/threads/thread_id");
|
|
10801
10863
|
var request = new RestRequest(Method.DELETE);
|
|
10802
10864
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -11092,7 +11154,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
11092
11154
|
|
|
11093
11155
|
async function main() {
|
|
11094
11156
|
const client = new AgentMailClient({
|
|
11095
|
-
environment: AgentMailEnvironment.
|
|
11157
|
+
environment: AgentMailEnvironment.Prod,
|
|
11096
11158
|
apiKey: "YOUR_TOKEN_HERE",
|
|
11097
11159
|
});
|
|
11098
11160
|
await client.inboxes.messages.list("inbox_id", {});
|
|
@@ -11106,7 +11168,7 @@ from agentmail import AgentMail
|
|
|
11106
11168
|
from agentmail.environment import AgentMailEnvironment
|
|
11107
11169
|
|
|
11108
11170
|
client = AgentMail(
|
|
11109
|
-
environment=AgentMailEnvironment.
|
|
11171
|
+
environment=AgentMailEnvironment.PROD,
|
|
11110
11172
|
api_key="YOUR_TOKEN_HERE"
|
|
11111
11173
|
)
|
|
11112
11174
|
|
|
@@ -11161,6 +11223,9 @@ puts response.read_body
|
|
|
11161
11223
|
```
|
|
11162
11224
|
|
|
11163
11225
|
```java
|
|
11226
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
11227
|
+
import com.mashape.unirest.http.Unirest;
|
|
11228
|
+
|
|
11164
11229
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/messages")
|
|
11165
11230
|
.header("Authorization", "Bearer <api_key>")
|
|
11166
11231
|
.asString();
|
|
@@ -11168,6 +11233,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
11168
11233
|
|
|
11169
11234
|
```php
|
|
11170
11235
|
<?php
|
|
11236
|
+
require_once('vendor/autoload.php');
|
|
11171
11237
|
|
|
11172
11238
|
$client = new \GuzzleHttp\Client();
|
|
11173
11239
|
|
|
@@ -11181,6 +11247,8 @@ echo $response->getBody();
|
|
|
11181
11247
|
```
|
|
11182
11248
|
|
|
11183
11249
|
```csharp
|
|
11250
|
+
using RestSharp;
|
|
11251
|
+
|
|
11184
11252
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages");
|
|
11185
11253
|
var request = new RestRequest(Method.GET);
|
|
11186
11254
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -11430,7 +11498,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
11430
11498
|
|
|
11431
11499
|
async function main() {
|
|
11432
11500
|
const client = new AgentMailClient({
|
|
11433
|
-
environment: AgentMailEnvironment.
|
|
11501
|
+
environment: AgentMailEnvironment.Prod,
|
|
11434
11502
|
apiKey: "YOUR_TOKEN_HERE",
|
|
11435
11503
|
});
|
|
11436
11504
|
await client.inboxes.messages.get("inbox_id", "message_id");
|
|
@@ -11444,7 +11512,7 @@ from agentmail import AgentMail
|
|
|
11444
11512
|
from agentmail.environment import AgentMailEnvironment
|
|
11445
11513
|
|
|
11446
11514
|
client = AgentMail(
|
|
11447
|
-
environment=AgentMailEnvironment.
|
|
11515
|
+
environment=AgentMailEnvironment.PROD,
|
|
11448
11516
|
api_key="YOUR_TOKEN_HERE"
|
|
11449
11517
|
)
|
|
11450
11518
|
|
|
@@ -11500,6 +11568,9 @@ puts response.read_body
|
|
|
11500
11568
|
```
|
|
11501
11569
|
|
|
11502
11570
|
```java
|
|
11571
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
11572
|
+
import com.mashape.unirest.http.Unirest;
|
|
11573
|
+
|
|
11503
11574
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id")
|
|
11504
11575
|
.header("Authorization", "Bearer <api_key>")
|
|
11505
11576
|
.asString();
|
|
@@ -11507,6 +11578,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
11507
11578
|
|
|
11508
11579
|
```php
|
|
11509
11580
|
<?php
|
|
11581
|
+
require_once('vendor/autoload.php');
|
|
11510
11582
|
|
|
11511
11583
|
$client = new \GuzzleHttp\Client();
|
|
11512
11584
|
|
|
@@ -11520,6 +11592,8 @@ echo $response->getBody();
|
|
|
11520
11592
|
```
|
|
11521
11593
|
|
|
11522
11594
|
```csharp
|
|
11595
|
+
using RestSharp;
|
|
11596
|
+
|
|
11523
11597
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id");
|
|
11524
11598
|
var request = new RestRequest(Method.GET);
|
|
11525
11599
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -11663,7 +11737,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
11663
11737
|
|
|
11664
11738
|
async function main() {
|
|
11665
11739
|
const client = new AgentMailClient({
|
|
11666
|
-
environment: AgentMailEnvironment.
|
|
11740
|
+
environment: AgentMailEnvironment.Prod,
|
|
11667
11741
|
apiKey: "YOUR_TOKEN_HERE",
|
|
11668
11742
|
});
|
|
11669
11743
|
await client.inboxes.messages.getAttachment("inbox_id", "message_id", "attachment_id");
|
|
@@ -11677,7 +11751,7 @@ from agentmail import AgentMail
|
|
|
11677
11751
|
from agentmail.environment import AgentMailEnvironment
|
|
11678
11752
|
|
|
11679
11753
|
client = AgentMail(
|
|
11680
|
-
environment=AgentMailEnvironment.
|
|
11754
|
+
environment=AgentMailEnvironment.PROD,
|
|
11681
11755
|
api_key="YOUR_TOKEN_HERE"
|
|
11682
11756
|
)
|
|
11683
11757
|
|
|
@@ -11734,6 +11808,9 @@ puts response.read_body
|
|
|
11734
11808
|
```
|
|
11735
11809
|
|
|
11736
11810
|
```java
|
|
11811
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
11812
|
+
import com.mashape.unirest.http.Unirest;
|
|
11813
|
+
|
|
11737
11814
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/attachments/attachment_id")
|
|
11738
11815
|
.header("Authorization", "Bearer <api_key>")
|
|
11739
11816
|
.asString();
|
|
@@ -11741,6 +11818,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
11741
11818
|
|
|
11742
11819
|
```php
|
|
11743
11820
|
<?php
|
|
11821
|
+
require_once('vendor/autoload.php');
|
|
11744
11822
|
|
|
11745
11823
|
$client = new \GuzzleHttp\Client();
|
|
11746
11824
|
|
|
@@ -11754,6 +11832,8 @@ echo $response->getBody();
|
|
|
11754
11832
|
```
|
|
11755
11833
|
|
|
11756
11834
|
```csharp
|
|
11835
|
+
using RestSharp;
|
|
11836
|
+
|
|
11757
11837
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/attachments/attachment_id");
|
|
11758
11838
|
var request = new RestRequest(Method.GET);
|
|
11759
11839
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -11851,7 +11931,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
11851
11931
|
|
|
11852
11932
|
async function main() {
|
|
11853
11933
|
const client = new AgentMailClient({
|
|
11854
|
-
environment: AgentMailEnvironment.
|
|
11934
|
+
environment: AgentMailEnvironment.Prod,
|
|
11855
11935
|
apiKey: "YOUR_TOKEN_HERE",
|
|
11856
11936
|
});
|
|
11857
11937
|
await client.inboxes.messages.getRaw(":inbox_id", ":message_id");
|
|
@@ -11865,7 +11945,7 @@ from agentmail import AgentMail
|
|
|
11865
11945
|
from agentmail.environment import AgentMailEnvironment
|
|
11866
11946
|
|
|
11867
11947
|
client = AgentMail(
|
|
11868
|
-
environment=AgentMailEnvironment.
|
|
11948
|
+
environment=AgentMailEnvironment.PROD,
|
|
11869
11949
|
api_key="YOUR_TOKEN_HERE"
|
|
11870
11950
|
)
|
|
11871
11951
|
|
|
@@ -11921,6 +12001,9 @@ puts response.read_body
|
|
|
11921
12001
|
```
|
|
11922
12002
|
|
|
11923
12003
|
```java
|
|
12004
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
12005
|
+
import com.mashape.unirest.http.Unirest;
|
|
12006
|
+
|
|
11924
12007
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/raw")
|
|
11925
12008
|
.header("Authorization", "Bearer <api_key>")
|
|
11926
12009
|
.asString();
|
|
@@ -11928,6 +12011,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
11928
12011
|
|
|
11929
12012
|
```php
|
|
11930
12013
|
<?php
|
|
12014
|
+
require_once('vendor/autoload.php');
|
|
11931
12015
|
|
|
11932
12016
|
$client = new \GuzzleHttp\Client();
|
|
11933
12017
|
|
|
@@ -11941,6 +12025,8 @@ echo $response->getBody();
|
|
|
11941
12025
|
```
|
|
11942
12026
|
|
|
11943
12027
|
```csharp
|
|
12028
|
+
using RestSharp;
|
|
12029
|
+
|
|
11944
12030
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/%3Ainbox_id/messages/%3Amessage_id/raw");
|
|
11945
12031
|
var request = new RestRequest(Method.GET);
|
|
11946
12032
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -12139,7 +12225,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
12139
12225
|
|
|
12140
12226
|
async function main() {
|
|
12141
12227
|
const client = new AgentMailClient({
|
|
12142
|
-
environment: AgentMailEnvironment.
|
|
12228
|
+
environment: AgentMailEnvironment.Prod,
|
|
12143
12229
|
apiKey: "YOUR_TOKEN_HERE",
|
|
12144
12230
|
});
|
|
12145
12231
|
await client.inboxes.messages.send("inbox_id", {});
|
|
@@ -12153,7 +12239,7 @@ from agentmail import AgentMail
|
|
|
12153
12239
|
from agentmail.environment import AgentMailEnvironment
|
|
12154
12240
|
|
|
12155
12241
|
client = AgentMail(
|
|
12156
|
-
environment=AgentMailEnvironment.
|
|
12242
|
+
environment=AgentMailEnvironment.PROD,
|
|
12157
12243
|
api_key="YOUR_TOKEN_HERE"
|
|
12158
12244
|
)
|
|
12159
12245
|
|
|
@@ -12214,6 +12300,9 @@ puts response.read_body
|
|
|
12214
12300
|
```
|
|
12215
12301
|
|
|
12216
12302
|
```java
|
|
12303
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
12304
|
+
import com.mashape.unirest.http.Unirest;
|
|
12305
|
+
|
|
12217
12306
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes/inbox_id/messages/send")
|
|
12218
12307
|
.header("Authorization", "Bearer <api_key>")
|
|
12219
12308
|
.header("Content-Type", "application/json")
|
|
@@ -12223,6 +12312,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxe
|
|
|
12223
12312
|
|
|
12224
12313
|
```php
|
|
12225
12314
|
<?php
|
|
12315
|
+
require_once('vendor/autoload.php');
|
|
12226
12316
|
|
|
12227
12317
|
$client = new \GuzzleHttp\Client();
|
|
12228
12318
|
|
|
@@ -12238,6 +12328,8 @@ echo $response->getBody();
|
|
|
12238
12328
|
```
|
|
12239
12329
|
|
|
12240
12330
|
```csharp
|
|
12331
|
+
using RestSharp;
|
|
12332
|
+
|
|
12241
12333
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages/send");
|
|
12242
12334
|
var request = new RestRequest(Method.POST);
|
|
12243
12335
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -12450,7 +12542,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
12450
12542
|
|
|
12451
12543
|
async function main() {
|
|
12452
12544
|
const client = new AgentMailClient({
|
|
12453
|
-
environment: AgentMailEnvironment.
|
|
12545
|
+
environment: AgentMailEnvironment.Prod,
|
|
12454
12546
|
apiKey: "YOUR_TOKEN_HERE",
|
|
12455
12547
|
});
|
|
12456
12548
|
await client.inboxes.messages.reply("inbox_id", "message_id", {});
|
|
@@ -12464,7 +12556,7 @@ from agentmail import AgentMail
|
|
|
12464
12556
|
from agentmail.environment import AgentMailEnvironment
|
|
12465
12557
|
|
|
12466
12558
|
client = AgentMail(
|
|
12467
|
-
environment=AgentMailEnvironment.
|
|
12559
|
+
environment=AgentMailEnvironment.PROD,
|
|
12468
12560
|
api_key="YOUR_TOKEN_HERE"
|
|
12469
12561
|
)
|
|
12470
12562
|
|
|
@@ -12526,6 +12618,9 @@ puts response.read_body
|
|
|
12526
12618
|
```
|
|
12527
12619
|
|
|
12528
12620
|
```java
|
|
12621
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
12622
|
+
import com.mashape.unirest.http.Unirest;
|
|
12623
|
+
|
|
12529
12624
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/reply")
|
|
12530
12625
|
.header("Authorization", "Bearer <api_key>")
|
|
12531
12626
|
.header("Content-Type", "application/json")
|
|
@@ -12535,6 +12630,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxe
|
|
|
12535
12630
|
|
|
12536
12631
|
```php
|
|
12537
12632
|
<?php
|
|
12633
|
+
require_once('vendor/autoload.php');
|
|
12538
12634
|
|
|
12539
12635
|
$client = new \GuzzleHttp\Client();
|
|
12540
12636
|
|
|
@@ -12550,6 +12646,8 @@ echo $response->getBody();
|
|
|
12550
12646
|
```
|
|
12551
12647
|
|
|
12552
12648
|
```csharp
|
|
12649
|
+
using RestSharp;
|
|
12650
|
+
|
|
12553
12651
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/reply");
|
|
12554
12652
|
var request = new RestRequest(Method.POST);
|
|
12555
12653
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -12746,7 +12844,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
12746
12844
|
|
|
12747
12845
|
async function main() {
|
|
12748
12846
|
const client = new AgentMailClient({
|
|
12749
|
-
environment: AgentMailEnvironment.
|
|
12847
|
+
environment: AgentMailEnvironment.Prod,
|
|
12750
12848
|
apiKey: "YOUR_TOKEN_HERE",
|
|
12751
12849
|
});
|
|
12752
12850
|
await client.inboxes.messages.replyAll("inbox_id", "message_id", {});
|
|
@@ -12760,7 +12858,7 @@ from agentmail import AgentMail
|
|
|
12760
12858
|
from agentmail.environment import AgentMailEnvironment
|
|
12761
12859
|
|
|
12762
12860
|
client = AgentMail(
|
|
12763
|
-
environment=AgentMailEnvironment.
|
|
12861
|
+
environment=AgentMailEnvironment.PROD,
|
|
12764
12862
|
api_key="YOUR_TOKEN_HERE"
|
|
12765
12863
|
)
|
|
12766
12864
|
|
|
@@ -12822,6 +12920,9 @@ puts response.read_body
|
|
|
12822
12920
|
```
|
|
12823
12921
|
|
|
12824
12922
|
```java
|
|
12923
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
12924
|
+
import com.mashape.unirest.http.Unirest;
|
|
12925
|
+
|
|
12825
12926
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/reply-all")
|
|
12826
12927
|
.header("Authorization", "Bearer <api_key>")
|
|
12827
12928
|
.header("Content-Type", "application/json")
|
|
@@ -12831,6 +12932,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxe
|
|
|
12831
12932
|
|
|
12832
12933
|
```php
|
|
12833
12934
|
<?php
|
|
12935
|
+
require_once('vendor/autoload.php');
|
|
12834
12936
|
|
|
12835
12937
|
$client = new \GuzzleHttp\Client();
|
|
12836
12938
|
|
|
@@ -12846,6 +12948,8 @@ echo $response->getBody();
|
|
|
12846
12948
|
```
|
|
12847
12949
|
|
|
12848
12950
|
```csharp
|
|
12951
|
+
using RestSharp;
|
|
12952
|
+
|
|
12849
12953
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/reply-all");
|
|
12850
12954
|
var request = new RestRequest(Method.POST);
|
|
12851
12955
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -13058,7 +13162,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
13058
13162
|
|
|
13059
13163
|
async function main() {
|
|
13060
13164
|
const client = new AgentMailClient({
|
|
13061
|
-
environment: AgentMailEnvironment.
|
|
13165
|
+
environment: AgentMailEnvironment.Prod,
|
|
13062
13166
|
apiKey: "YOUR_TOKEN_HERE",
|
|
13063
13167
|
});
|
|
13064
13168
|
await client.inboxes.messages.forward("inbox_id", "message_id", {});
|
|
@@ -13072,7 +13176,7 @@ from agentmail import AgentMail
|
|
|
13072
13176
|
from agentmail.environment import AgentMailEnvironment
|
|
13073
13177
|
|
|
13074
13178
|
client = AgentMail(
|
|
13075
|
-
environment=AgentMailEnvironment.
|
|
13179
|
+
environment=AgentMailEnvironment.PROD,
|
|
13076
13180
|
api_key="YOUR_TOKEN_HERE"
|
|
13077
13181
|
)
|
|
13078
13182
|
|
|
@@ -13134,6 +13238,9 @@ puts response.read_body
|
|
|
13134
13238
|
```
|
|
13135
13239
|
|
|
13136
13240
|
```java
|
|
13241
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
13242
|
+
import com.mashape.unirest.http.Unirest;
|
|
13243
|
+
|
|
13137
13244
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/forward")
|
|
13138
13245
|
.header("Authorization", "Bearer <api_key>")
|
|
13139
13246
|
.header("Content-Type", "application/json")
|
|
@@ -13143,6 +13250,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxe
|
|
|
13143
13250
|
|
|
13144
13251
|
```php
|
|
13145
13252
|
<?php
|
|
13253
|
+
require_once('vendor/autoload.php');
|
|
13146
13254
|
|
|
13147
13255
|
$client = new \GuzzleHttp\Client();
|
|
13148
13256
|
|
|
@@ -13158,6 +13266,8 @@ echo $response->getBody();
|
|
|
13158
13266
|
```
|
|
13159
13267
|
|
|
13160
13268
|
```csharp
|
|
13269
|
+
using RestSharp;
|
|
13270
|
+
|
|
13161
13271
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id/forward");
|
|
13162
13272
|
var request = new RestRequest(Method.POST);
|
|
13163
13273
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -13438,7 +13548,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
13438
13548
|
|
|
13439
13549
|
async function main() {
|
|
13440
13550
|
const client = new AgentMailClient({
|
|
13441
|
-
environment: AgentMailEnvironment.
|
|
13551
|
+
environment: AgentMailEnvironment.Prod,
|
|
13442
13552
|
apiKey: "YOUR_TOKEN_HERE",
|
|
13443
13553
|
});
|
|
13444
13554
|
await client.inboxes.messages.update("inbox_id", "message_id", {});
|
|
@@ -13452,7 +13562,7 @@ from agentmail import AgentMail
|
|
|
13452
13562
|
from agentmail.environment import AgentMailEnvironment
|
|
13453
13563
|
|
|
13454
13564
|
client = AgentMail(
|
|
13455
|
-
environment=AgentMailEnvironment.
|
|
13565
|
+
environment=AgentMailEnvironment.PROD,
|
|
13456
13566
|
api_key="YOUR_TOKEN_HERE"
|
|
13457
13567
|
)
|
|
13458
13568
|
|
|
@@ -13514,6 +13624,9 @@ puts response.read_body
|
|
|
13514
13624
|
```
|
|
13515
13625
|
|
|
13516
13626
|
```java
|
|
13627
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
13628
|
+
import com.mashape.unirest.http.Unirest;
|
|
13629
|
+
|
|
13517
13630
|
HttpResponse<String> response = Unirest.patch("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id")
|
|
13518
13631
|
.header("Authorization", "Bearer <api_key>")
|
|
13519
13632
|
.header("Content-Type", "application/json")
|
|
@@ -13523,6 +13636,7 @@ HttpResponse<String> response = Unirest.patch("https://api.agentmail.to/v0/inbox
|
|
|
13523
13636
|
|
|
13524
13637
|
```php
|
|
13525
13638
|
<?php
|
|
13639
|
+
require_once('vendor/autoload.php');
|
|
13526
13640
|
|
|
13527
13641
|
$client = new \GuzzleHttp\Client();
|
|
13528
13642
|
|
|
@@ -13538,6 +13652,8 @@ echo $response->getBody();
|
|
|
13538
13652
|
```
|
|
13539
13653
|
|
|
13540
13654
|
```csharp
|
|
13655
|
+
using RestSharp;
|
|
13656
|
+
|
|
13541
13657
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/messages/message_id");
|
|
13542
13658
|
var request = new RestRequest(Method.PATCH);
|
|
13543
13659
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -13809,7 +13925,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
13809
13925
|
|
|
13810
13926
|
async function main() {
|
|
13811
13927
|
const client = new AgentMailClient({
|
|
13812
|
-
environment: AgentMailEnvironment.
|
|
13928
|
+
environment: AgentMailEnvironment.Prod,
|
|
13813
13929
|
apiKey: "YOUR_TOKEN_HERE",
|
|
13814
13930
|
});
|
|
13815
13931
|
await client.inboxes.drafts.list("inbox_id", {});
|
|
@@ -13823,7 +13939,7 @@ from agentmail import AgentMail
|
|
|
13823
13939
|
from agentmail.environment import AgentMailEnvironment
|
|
13824
13940
|
|
|
13825
13941
|
client = AgentMail(
|
|
13826
|
-
environment=AgentMailEnvironment.
|
|
13942
|
+
environment=AgentMailEnvironment.PROD,
|
|
13827
13943
|
api_key="YOUR_TOKEN_HERE"
|
|
13828
13944
|
)
|
|
13829
13945
|
|
|
@@ -13878,6 +13994,9 @@ puts response.read_body
|
|
|
13878
13994
|
```
|
|
13879
13995
|
|
|
13880
13996
|
```java
|
|
13997
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
13998
|
+
import com.mashape.unirest.http.Unirest;
|
|
13999
|
+
|
|
13881
14000
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/drafts")
|
|
13882
14001
|
.header("Authorization", "Bearer <api_key>")
|
|
13883
14002
|
.asString();
|
|
@@ -13885,6 +14004,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
13885
14004
|
|
|
13886
14005
|
```php
|
|
13887
14006
|
<?php
|
|
14007
|
+
require_once('vendor/autoload.php');
|
|
13888
14008
|
|
|
13889
14009
|
$client = new \GuzzleHttp\Client();
|
|
13890
14010
|
|
|
@@ -13898,6 +14018,8 @@ echo $response->getBody();
|
|
|
13898
14018
|
```
|
|
13899
14019
|
|
|
13900
14020
|
```csharp
|
|
14021
|
+
using RestSharp;
|
|
14022
|
+
|
|
13901
14023
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts");
|
|
13902
14024
|
var request = new RestRequest(Method.GET);
|
|
13903
14025
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -14132,7 +14254,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
14132
14254
|
|
|
14133
14255
|
async function main() {
|
|
14134
14256
|
const client = new AgentMailClient({
|
|
14135
|
-
environment: AgentMailEnvironment.
|
|
14257
|
+
environment: AgentMailEnvironment.Prod,
|
|
14136
14258
|
apiKey: "YOUR_TOKEN_HERE",
|
|
14137
14259
|
});
|
|
14138
14260
|
await client.inboxes.drafts.get("inbox_id", "draft_id");
|
|
@@ -14146,7 +14268,7 @@ from agentmail import AgentMail
|
|
|
14146
14268
|
from agentmail.environment import AgentMailEnvironment
|
|
14147
14269
|
|
|
14148
14270
|
client = AgentMail(
|
|
14149
|
-
environment=AgentMailEnvironment.
|
|
14271
|
+
environment=AgentMailEnvironment.PROD,
|
|
14150
14272
|
api_key="YOUR_TOKEN_HERE"
|
|
14151
14273
|
)
|
|
14152
14274
|
|
|
@@ -14202,6 +14324,9 @@ puts response.read_body
|
|
|
14202
14324
|
```
|
|
14203
14325
|
|
|
14204
14326
|
```java
|
|
14327
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
14328
|
+
import com.mashape.unirest.http.Unirest;
|
|
14329
|
+
|
|
14205
14330
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id")
|
|
14206
14331
|
.header("Authorization", "Bearer <api_key>")
|
|
14207
14332
|
.asString();
|
|
@@ -14209,6 +14334,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
14209
14334
|
|
|
14210
14335
|
```php
|
|
14211
14336
|
<?php
|
|
14337
|
+
require_once('vendor/autoload.php');
|
|
14212
14338
|
|
|
14213
14339
|
$client = new \GuzzleHttp\Client();
|
|
14214
14340
|
|
|
@@ -14222,6 +14348,8 @@ echo $response->getBody();
|
|
|
14222
14348
|
```
|
|
14223
14349
|
|
|
14224
14350
|
```csharp
|
|
14351
|
+
using RestSharp;
|
|
14352
|
+
|
|
14225
14353
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id");
|
|
14226
14354
|
var request = new RestRequest(Method.GET);
|
|
14227
14355
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -14365,7 +14493,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
14365
14493
|
|
|
14366
14494
|
async function main() {
|
|
14367
14495
|
const client = new AgentMailClient({
|
|
14368
|
-
environment: AgentMailEnvironment.
|
|
14496
|
+
environment: AgentMailEnvironment.Prod,
|
|
14369
14497
|
apiKey: "YOUR_TOKEN_HERE",
|
|
14370
14498
|
});
|
|
14371
14499
|
await client.inboxes.drafts.getAttachment("inbox_id", "draft_id", "attachment_id");
|
|
@@ -14379,7 +14507,7 @@ from agentmail import AgentMail
|
|
|
14379
14507
|
from agentmail.environment import AgentMailEnvironment
|
|
14380
14508
|
|
|
14381
14509
|
client = AgentMail(
|
|
14382
|
-
environment=AgentMailEnvironment.
|
|
14510
|
+
environment=AgentMailEnvironment.PROD,
|
|
14383
14511
|
api_key="YOUR_TOKEN_HERE"
|
|
14384
14512
|
)
|
|
14385
14513
|
|
|
@@ -14436,6 +14564,9 @@ puts response.read_body
|
|
|
14436
14564
|
```
|
|
14437
14565
|
|
|
14438
14566
|
```java
|
|
14567
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
14568
|
+
import com.mashape.unirest.http.Unirest;
|
|
14569
|
+
|
|
14439
14570
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id/attachments/attachment_id")
|
|
14440
14571
|
.header("Authorization", "Bearer <api_key>")
|
|
14441
14572
|
.asString();
|
|
@@ -14443,6 +14574,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
14443
14574
|
|
|
14444
14575
|
```php
|
|
14445
14576
|
<?php
|
|
14577
|
+
require_once('vendor/autoload.php');
|
|
14446
14578
|
|
|
14447
14579
|
$client = new \GuzzleHttp\Client();
|
|
14448
14580
|
|
|
@@ -14456,6 +14588,8 @@ echo $response->getBody();
|
|
|
14456
14588
|
```
|
|
14457
14589
|
|
|
14458
14590
|
```csharp
|
|
14591
|
+
using RestSharp;
|
|
14592
|
+
|
|
14459
14593
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id/attachments/attachment_id");
|
|
14460
14594
|
var request = new RestRequest(Method.GET);
|
|
14461
14595
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -14738,7 +14872,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
14738
14872
|
|
|
14739
14873
|
async function main() {
|
|
14740
14874
|
const client = new AgentMailClient({
|
|
14741
|
-
environment: AgentMailEnvironment.
|
|
14875
|
+
environment: AgentMailEnvironment.Prod,
|
|
14742
14876
|
apiKey: "YOUR_TOKEN_HERE",
|
|
14743
14877
|
});
|
|
14744
14878
|
await client.inboxes.drafts.create("inbox_id", {});
|
|
@@ -14752,7 +14886,7 @@ from agentmail import AgentMail
|
|
|
14752
14886
|
from agentmail.environment import AgentMailEnvironment
|
|
14753
14887
|
|
|
14754
14888
|
client = AgentMail(
|
|
14755
|
-
environment=AgentMailEnvironment.
|
|
14889
|
+
environment=AgentMailEnvironment.PROD,
|
|
14756
14890
|
api_key="YOUR_TOKEN_HERE"
|
|
14757
14891
|
)
|
|
14758
14892
|
|
|
@@ -14813,6 +14947,9 @@ puts response.read_body
|
|
|
14813
14947
|
```
|
|
14814
14948
|
|
|
14815
14949
|
```java
|
|
14950
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
14951
|
+
import com.mashape.unirest.http.Unirest;
|
|
14952
|
+
|
|
14816
14953
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes/inbox_id/drafts")
|
|
14817
14954
|
.header("Authorization", "Bearer <api_key>")
|
|
14818
14955
|
.header("Content-Type", "application/json")
|
|
@@ -14822,6 +14959,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxe
|
|
|
14822
14959
|
|
|
14823
14960
|
```php
|
|
14824
14961
|
<?php
|
|
14962
|
+
require_once('vendor/autoload.php');
|
|
14825
14963
|
|
|
14826
14964
|
$client = new \GuzzleHttp\Client();
|
|
14827
14965
|
|
|
@@ -14837,6 +14975,8 @@ echo $response->getBody();
|
|
|
14837
14975
|
```
|
|
14838
14976
|
|
|
14839
14977
|
```csharp
|
|
14978
|
+
using RestSharp;
|
|
14979
|
+
|
|
14840
14980
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts");
|
|
14841
14981
|
var request = new RestRequest(Method.POST);
|
|
14842
14982
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -15105,7 +15245,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
15105
15245
|
|
|
15106
15246
|
async function main() {
|
|
15107
15247
|
const client = new AgentMailClient({
|
|
15108
|
-
environment: AgentMailEnvironment.
|
|
15248
|
+
environment: AgentMailEnvironment.Prod,
|
|
15109
15249
|
apiKey: "YOUR_TOKEN_HERE",
|
|
15110
15250
|
});
|
|
15111
15251
|
await client.inboxes.drafts.update("inbox_id", "draft_id", {});
|
|
@@ -15119,7 +15259,7 @@ from agentmail import AgentMail
|
|
|
15119
15259
|
from agentmail.environment import AgentMailEnvironment
|
|
15120
15260
|
|
|
15121
15261
|
client = AgentMail(
|
|
15122
|
-
environment=AgentMailEnvironment.
|
|
15262
|
+
environment=AgentMailEnvironment.PROD,
|
|
15123
15263
|
api_key="YOUR_TOKEN_HERE"
|
|
15124
15264
|
)
|
|
15125
15265
|
|
|
@@ -15181,6 +15321,9 @@ puts response.read_body
|
|
|
15181
15321
|
```
|
|
15182
15322
|
|
|
15183
15323
|
```java
|
|
15324
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
15325
|
+
import com.mashape.unirest.http.Unirest;
|
|
15326
|
+
|
|
15184
15327
|
HttpResponse<String> response = Unirest.patch("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id")
|
|
15185
15328
|
.header("Authorization", "Bearer <api_key>")
|
|
15186
15329
|
.header("Content-Type", "application/json")
|
|
@@ -15190,6 +15333,7 @@ HttpResponse<String> response = Unirest.patch("https://api.agentmail.to/v0/inbox
|
|
|
15190
15333
|
|
|
15191
15334
|
```php
|
|
15192
15335
|
<?php
|
|
15336
|
+
require_once('vendor/autoload.php');
|
|
15193
15337
|
|
|
15194
15338
|
$client = new \GuzzleHttp\Client();
|
|
15195
15339
|
|
|
@@ -15205,6 +15349,8 @@ echo $response->getBody();
|
|
|
15205
15349
|
```
|
|
15206
15350
|
|
|
15207
15351
|
```csharp
|
|
15352
|
+
using RestSharp;
|
|
15353
|
+
|
|
15208
15354
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id");
|
|
15209
15355
|
var request = new RestRequest(Method.PATCH);
|
|
15210
15356
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -15349,7 +15495,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
15349
15495
|
|
|
15350
15496
|
async function main() {
|
|
15351
15497
|
const client = new AgentMailClient({
|
|
15352
|
-
environment: AgentMailEnvironment.
|
|
15498
|
+
environment: AgentMailEnvironment.Prod,
|
|
15353
15499
|
apiKey: "YOUR_TOKEN_HERE",
|
|
15354
15500
|
});
|
|
15355
15501
|
await client.inboxes.drafts.send("inbox_id", "draft_id", {});
|
|
@@ -15363,7 +15509,7 @@ from agentmail import AgentMail
|
|
|
15363
15509
|
from agentmail.environment import AgentMailEnvironment
|
|
15364
15510
|
|
|
15365
15511
|
client = AgentMail(
|
|
15366
|
-
environment=AgentMailEnvironment.
|
|
15512
|
+
environment=AgentMailEnvironment.PROD,
|
|
15367
15513
|
api_key="YOUR_TOKEN_HERE"
|
|
15368
15514
|
)
|
|
15369
15515
|
|
|
@@ -15425,6 +15571,9 @@ puts response.read_body
|
|
|
15425
15571
|
```
|
|
15426
15572
|
|
|
15427
15573
|
```java
|
|
15574
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
15575
|
+
import com.mashape.unirest.http.Unirest;
|
|
15576
|
+
|
|
15428
15577
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id/send")
|
|
15429
15578
|
.header("Authorization", "Bearer <api_key>")
|
|
15430
15579
|
.header("Content-Type", "application/json")
|
|
@@ -15434,6 +15583,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxe
|
|
|
15434
15583
|
|
|
15435
15584
|
```php
|
|
15436
15585
|
<?php
|
|
15586
|
+
require_once('vendor/autoload.php');
|
|
15437
15587
|
|
|
15438
15588
|
$client = new \GuzzleHttp\Client();
|
|
15439
15589
|
|
|
@@ -15449,6 +15599,8 @@ echo $response->getBody();
|
|
|
15449
15599
|
```
|
|
15450
15600
|
|
|
15451
15601
|
```csharp
|
|
15602
|
+
using RestSharp;
|
|
15603
|
+
|
|
15452
15604
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id/send");
|
|
15453
15605
|
var request = new RestRequest(Method.POST);
|
|
15454
15606
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -15550,7 +15702,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
15550
15702
|
|
|
15551
15703
|
async function main() {
|
|
15552
15704
|
const client = new AgentMailClient({
|
|
15553
|
-
environment: AgentMailEnvironment.
|
|
15705
|
+
environment: AgentMailEnvironment.Prod,
|
|
15554
15706
|
apiKey: "YOUR_TOKEN_HERE",
|
|
15555
15707
|
});
|
|
15556
15708
|
await client.inboxes.drafts.delete("inbox_id", "draft_id");
|
|
@@ -15564,7 +15716,7 @@ from agentmail import AgentMail
|
|
|
15564
15716
|
from agentmail.environment import AgentMailEnvironment
|
|
15565
15717
|
|
|
15566
15718
|
client = AgentMail(
|
|
15567
|
-
environment=AgentMailEnvironment.
|
|
15719
|
+
environment=AgentMailEnvironment.PROD,
|
|
15568
15720
|
api_key="YOUR_TOKEN_HERE"
|
|
15569
15721
|
)
|
|
15570
15722
|
|
|
@@ -15620,6 +15772,9 @@ puts response.read_body
|
|
|
15620
15772
|
```
|
|
15621
15773
|
|
|
15622
15774
|
```java
|
|
15775
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
15776
|
+
import com.mashape.unirest.http.Unirest;
|
|
15777
|
+
|
|
15623
15778
|
HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id")
|
|
15624
15779
|
.header("Authorization", "Bearer <api_key>")
|
|
15625
15780
|
.asString();
|
|
@@ -15627,6 +15782,7 @@ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/inbo
|
|
|
15627
15782
|
|
|
15628
15783
|
```php
|
|
15629
15784
|
<?php
|
|
15785
|
+
require_once('vendor/autoload.php');
|
|
15630
15786
|
|
|
15631
15787
|
$client = new \GuzzleHttp\Client();
|
|
15632
15788
|
|
|
@@ -15640,6 +15796,8 @@ echo $response->getBody();
|
|
|
15640
15796
|
```
|
|
15641
15797
|
|
|
15642
15798
|
```csharp
|
|
15799
|
+
using RestSharp;
|
|
15800
|
+
|
|
15643
15801
|
var client = new RestClient("https://api.agentmail.to/v0/inboxes/inbox_id/drafts/draft_id");
|
|
15644
15802
|
var request = new RestRequest(Method.DELETE);
|
|
15645
15803
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -15814,7 +15972,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
15814
15972
|
|
|
15815
15973
|
async function main() {
|
|
15816
15974
|
const client = new AgentMailClient({
|
|
15817
|
-
environment: AgentMailEnvironment.
|
|
15975
|
+
environment: AgentMailEnvironment.Prod,
|
|
15818
15976
|
apiKey: "YOUR_TOKEN_HERE",
|
|
15819
15977
|
});
|
|
15820
15978
|
await client.inboxes.metrics.get("inbox_id", {
|
|
@@ -15832,7 +15990,7 @@ from agentmail.environment import AgentMailEnvironment
|
|
|
15832
15990
|
from datetime import datetime
|
|
15833
15991
|
|
|
15834
15992
|
client = AgentMail(
|
|
15835
|
-
environment=AgentMailEnvironment.
|
|
15993
|
+
environment=AgentMailEnvironment.PROD,
|
|
15836
15994
|
api_key="YOUR_TOKEN_HERE"
|
|
15837
15995
|
)
|
|
15838
15996
|
|
|
@@ -15895,6 +16053,9 @@ puts response.read_body
|
|
|
15895
16053
|
```
|
|
15896
16054
|
|
|
15897
16055
|
```java
|
|
16056
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
16057
|
+
import com.mashape.unirest.http.Unirest;
|
|
16058
|
+
|
|
15898
16059
|
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")
|
|
15899
16060
|
.header("Authorization", "Bearer <api_key>")
|
|
15900
16061
|
.header("Content-Type", "application/json")
|
|
@@ -15904,6 +16065,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/inboxes
|
|
|
15904
16065
|
|
|
15905
16066
|
```php
|
|
15906
16067
|
<?php
|
|
16068
|
+
require_once('vendor/autoload.php');
|
|
15907
16069
|
|
|
15908
16070
|
$client = new \GuzzleHttp\Client();
|
|
15909
16071
|
|
|
@@ -15919,6 +16081,8 @@ echo $response->getBody();
|
|
|
15919
16081
|
```
|
|
15920
16082
|
|
|
15921
16083
|
```csharp
|
|
16084
|
+
using RestSharp;
|
|
16085
|
+
|
|
15922
16086
|
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");
|
|
15923
16087
|
var request = new RestRequest(Method.GET);
|
|
15924
16088
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -16206,7 +16370,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
16206
16370
|
|
|
16207
16371
|
async function main() {
|
|
16208
16372
|
const client = new AgentMailClient({
|
|
16209
|
-
environment: AgentMailEnvironment.
|
|
16373
|
+
environment: AgentMailEnvironment.Prod,
|
|
16210
16374
|
apiKey: "YOUR_TOKEN_HERE",
|
|
16211
16375
|
});
|
|
16212
16376
|
await client.threads.list({});
|
|
@@ -16220,7 +16384,7 @@ from agentmail import AgentMail
|
|
|
16220
16384
|
from agentmail.environment import AgentMailEnvironment
|
|
16221
16385
|
|
|
16222
16386
|
client = AgentMail(
|
|
16223
|
-
environment=AgentMailEnvironment.
|
|
16387
|
+
environment=AgentMailEnvironment.PROD,
|
|
16224
16388
|
api_key="YOUR_TOKEN_HERE"
|
|
16225
16389
|
)
|
|
16226
16390
|
|
|
@@ -16279,6 +16443,9 @@ puts response.read_body
|
|
|
16279
16443
|
```
|
|
16280
16444
|
|
|
16281
16445
|
```java
|
|
16446
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
16447
|
+
import com.mashape.unirest.http.Unirest;
|
|
16448
|
+
|
|
16282
16449
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/threads")
|
|
16283
16450
|
.header("Authorization", "Bearer <api_key>")
|
|
16284
16451
|
.header("Content-Type", "application/json")
|
|
@@ -16288,6 +16455,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/threads
|
|
|
16288
16455
|
|
|
16289
16456
|
```php
|
|
16290
16457
|
<?php
|
|
16458
|
+
require_once('vendor/autoload.php');
|
|
16291
16459
|
|
|
16292
16460
|
$client = new \GuzzleHttp\Client();
|
|
16293
16461
|
|
|
@@ -16303,6 +16471,8 @@ echo $response->getBody();
|
|
|
16303
16471
|
```
|
|
16304
16472
|
|
|
16305
16473
|
```csharp
|
|
16474
|
+
using RestSharp;
|
|
16475
|
+
|
|
16306
16476
|
var client = new RestClient("https://api.agentmail.to/v0/threads");
|
|
16307
16477
|
var request = new RestRequest(Method.GET);
|
|
16308
16478
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -16649,7 +16819,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
16649
16819
|
|
|
16650
16820
|
async function main() {
|
|
16651
16821
|
const client = new AgentMailClient({
|
|
16652
|
-
environment: AgentMailEnvironment.
|
|
16822
|
+
environment: AgentMailEnvironment.Prod,
|
|
16653
16823
|
apiKey: "YOUR_TOKEN_HERE",
|
|
16654
16824
|
});
|
|
16655
16825
|
await client.threads.get("thread_id");
|
|
@@ -16663,7 +16833,7 @@ from agentmail import AgentMail
|
|
|
16663
16833
|
from agentmail.environment import AgentMailEnvironment
|
|
16664
16834
|
|
|
16665
16835
|
client = AgentMail(
|
|
16666
|
-
environment=AgentMailEnvironment.
|
|
16836
|
+
environment=AgentMailEnvironment.PROD,
|
|
16667
16837
|
api_key="YOUR_TOKEN_HERE"
|
|
16668
16838
|
)
|
|
16669
16839
|
|
|
@@ -16718,6 +16888,9 @@ puts response.read_body
|
|
|
16718
16888
|
```
|
|
16719
16889
|
|
|
16720
16890
|
```java
|
|
16891
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
16892
|
+
import com.mashape.unirest.http.Unirest;
|
|
16893
|
+
|
|
16721
16894
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/threads/thread_id")
|
|
16722
16895
|
.header("Authorization", "Bearer <api_key>")
|
|
16723
16896
|
.asString();
|
|
@@ -16725,6 +16898,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/threads
|
|
|
16725
16898
|
|
|
16726
16899
|
```php
|
|
16727
16900
|
<?php
|
|
16901
|
+
require_once('vendor/autoload.php');
|
|
16728
16902
|
|
|
16729
16903
|
$client = new \GuzzleHttp\Client();
|
|
16730
16904
|
|
|
@@ -16738,6 +16912,8 @@ echo $response->getBody();
|
|
|
16738
16912
|
```
|
|
16739
16913
|
|
|
16740
16914
|
```csharp
|
|
16915
|
+
using RestSharp;
|
|
16916
|
+
|
|
16741
16917
|
var client = new RestClient("https://api.agentmail.to/v0/threads/thread_id");
|
|
16742
16918
|
var request = new RestRequest(Method.GET);
|
|
16743
16919
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -16873,7 +17049,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
16873
17049
|
|
|
16874
17050
|
async function main() {
|
|
16875
17051
|
const client = new AgentMailClient({
|
|
16876
|
-
environment: AgentMailEnvironment.
|
|
17052
|
+
environment: AgentMailEnvironment.Prod,
|
|
16877
17053
|
apiKey: "YOUR_TOKEN_HERE",
|
|
16878
17054
|
});
|
|
16879
17055
|
await client.threads.getAttachment("thread_id", "attachment_id");
|
|
@@ -16887,7 +17063,7 @@ from agentmail import AgentMail
|
|
|
16887
17063
|
from agentmail.environment import AgentMailEnvironment
|
|
16888
17064
|
|
|
16889
17065
|
client = AgentMail(
|
|
16890
|
-
environment=AgentMailEnvironment.
|
|
17066
|
+
environment=AgentMailEnvironment.PROD,
|
|
16891
17067
|
api_key="YOUR_TOKEN_HERE"
|
|
16892
17068
|
)
|
|
16893
17069
|
|
|
@@ -16943,6 +17119,9 @@ puts response.read_body
|
|
|
16943
17119
|
```
|
|
16944
17120
|
|
|
16945
17121
|
```java
|
|
17122
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
17123
|
+
import com.mashape.unirest.http.Unirest;
|
|
17124
|
+
|
|
16946
17125
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/threads/thread_id/attachments/attachment_id")
|
|
16947
17126
|
.header("Authorization", "Bearer <api_key>")
|
|
16948
17127
|
.asString();
|
|
@@ -16950,6 +17129,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/threads
|
|
|
16950
17129
|
|
|
16951
17130
|
```php
|
|
16952
17131
|
<?php
|
|
17132
|
+
require_once('vendor/autoload.php');
|
|
16953
17133
|
|
|
16954
17134
|
$client = new \GuzzleHttp\Client();
|
|
16955
17135
|
|
|
@@ -16963,6 +17143,8 @@ echo $response->getBody();
|
|
|
16963
17143
|
```
|
|
16964
17144
|
|
|
16965
17145
|
```csharp
|
|
17146
|
+
using RestSharp;
|
|
17147
|
+
|
|
16966
17148
|
var client = new RestClient("https://api.agentmail.to/v0/threads/thread_id/attachments/attachment_id");
|
|
16967
17149
|
var request = new RestRequest(Method.GET);
|
|
16968
17150
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -17219,7 +17401,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
17219
17401
|
|
|
17220
17402
|
async function main() {
|
|
17221
17403
|
const client = new AgentMailClient({
|
|
17222
|
-
environment: AgentMailEnvironment.
|
|
17404
|
+
environment: AgentMailEnvironment.Prod,
|
|
17223
17405
|
apiKey: "YOUR_TOKEN_HERE",
|
|
17224
17406
|
});
|
|
17225
17407
|
await client.drafts.list({});
|
|
@@ -17233,7 +17415,7 @@ from agentmail import AgentMail
|
|
|
17233
17415
|
from agentmail.environment import AgentMailEnvironment
|
|
17234
17416
|
|
|
17235
17417
|
client = AgentMail(
|
|
17236
|
-
environment=AgentMailEnvironment.
|
|
17418
|
+
environment=AgentMailEnvironment.PROD,
|
|
17237
17419
|
api_key="YOUR_TOKEN_HERE"
|
|
17238
17420
|
)
|
|
17239
17421
|
|
|
@@ -17286,6 +17468,9 @@ puts response.read_body
|
|
|
17286
17468
|
```
|
|
17287
17469
|
|
|
17288
17470
|
```java
|
|
17471
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
17472
|
+
import com.mashape.unirest.http.Unirest;
|
|
17473
|
+
|
|
17289
17474
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/drafts")
|
|
17290
17475
|
.header("Authorization", "Bearer <api_key>")
|
|
17291
17476
|
.asString();
|
|
@@ -17293,6 +17478,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/drafts"
|
|
|
17293
17478
|
|
|
17294
17479
|
```php
|
|
17295
17480
|
<?php
|
|
17481
|
+
require_once('vendor/autoload.php');
|
|
17296
17482
|
|
|
17297
17483
|
$client = new \GuzzleHttp\Client();
|
|
17298
17484
|
|
|
@@ -17306,6 +17492,8 @@ echo $response->getBody();
|
|
|
17306
17492
|
```
|
|
17307
17493
|
|
|
17308
17494
|
```csharp
|
|
17495
|
+
using RestSharp;
|
|
17496
|
+
|
|
17309
17497
|
var client = new RestClient("https://api.agentmail.to/v0/drafts");
|
|
17310
17498
|
var request = new RestRequest(Method.GET);
|
|
17311
17499
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -17534,7 +17722,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
17534
17722
|
|
|
17535
17723
|
async function main() {
|
|
17536
17724
|
const client = new AgentMailClient({
|
|
17537
|
-
environment: AgentMailEnvironment.
|
|
17725
|
+
environment: AgentMailEnvironment.Prod,
|
|
17538
17726
|
apiKey: "YOUR_TOKEN_HERE",
|
|
17539
17727
|
});
|
|
17540
17728
|
await client.drafts.get("draft_id");
|
|
@@ -17548,7 +17736,7 @@ from agentmail import AgentMail
|
|
|
17548
17736
|
from agentmail.environment import AgentMailEnvironment
|
|
17549
17737
|
|
|
17550
17738
|
client = AgentMail(
|
|
17551
|
-
environment=AgentMailEnvironment.
|
|
17739
|
+
environment=AgentMailEnvironment.PROD,
|
|
17552
17740
|
api_key="YOUR_TOKEN_HERE"
|
|
17553
17741
|
)
|
|
17554
17742
|
|
|
@@ -17603,6 +17791,9 @@ puts response.read_body
|
|
|
17603
17791
|
```
|
|
17604
17792
|
|
|
17605
17793
|
```java
|
|
17794
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
17795
|
+
import com.mashape.unirest.http.Unirest;
|
|
17796
|
+
|
|
17606
17797
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/drafts/draft_id")
|
|
17607
17798
|
.header("Authorization", "Bearer <api_key>")
|
|
17608
17799
|
.asString();
|
|
@@ -17610,6 +17801,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/drafts/
|
|
|
17610
17801
|
|
|
17611
17802
|
```php
|
|
17612
17803
|
<?php
|
|
17804
|
+
require_once('vendor/autoload.php');
|
|
17613
17805
|
|
|
17614
17806
|
$client = new \GuzzleHttp\Client();
|
|
17615
17807
|
|
|
@@ -17623,6 +17815,8 @@ echo $response->getBody();
|
|
|
17623
17815
|
```
|
|
17624
17816
|
|
|
17625
17817
|
```csharp
|
|
17818
|
+
using RestSharp;
|
|
17819
|
+
|
|
17626
17820
|
var client = new RestClient("https://api.agentmail.to/v0/drafts/draft_id");
|
|
17627
17821
|
var request = new RestRequest(Method.GET);
|
|
17628
17822
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -17758,7 +17952,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
17758
17952
|
|
|
17759
17953
|
async function main() {
|
|
17760
17954
|
const client = new AgentMailClient({
|
|
17761
|
-
environment: AgentMailEnvironment.
|
|
17955
|
+
environment: AgentMailEnvironment.Prod,
|
|
17762
17956
|
apiKey: "YOUR_TOKEN_HERE",
|
|
17763
17957
|
});
|
|
17764
17958
|
await client.drafts.getAttachment("draft_id", "attachment_id");
|
|
@@ -17772,7 +17966,7 @@ from agentmail import AgentMail
|
|
|
17772
17966
|
from agentmail.environment import AgentMailEnvironment
|
|
17773
17967
|
|
|
17774
17968
|
client = AgentMail(
|
|
17775
|
-
environment=AgentMailEnvironment.
|
|
17969
|
+
environment=AgentMailEnvironment.PROD,
|
|
17776
17970
|
api_key="YOUR_TOKEN_HERE"
|
|
17777
17971
|
)
|
|
17778
17972
|
|
|
@@ -17828,6 +18022,9 @@ puts response.read_body
|
|
|
17828
18022
|
```
|
|
17829
18023
|
|
|
17830
18024
|
```java
|
|
18025
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
18026
|
+
import com.mashape.unirest.http.Unirest;
|
|
18027
|
+
|
|
17831
18028
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/drafts/draft_id/attachments/attachment_id")
|
|
17832
18029
|
.header("Authorization", "Bearer <api_key>")
|
|
17833
18030
|
.asString();
|
|
@@ -17835,6 +18032,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/drafts/
|
|
|
17835
18032
|
|
|
17836
18033
|
```php
|
|
17837
18034
|
<?php
|
|
18035
|
+
require_once('vendor/autoload.php');
|
|
17838
18036
|
|
|
17839
18037
|
$client = new \GuzzleHttp\Client();
|
|
17840
18038
|
|
|
@@ -17848,6 +18046,8 @@ echo $response->getBody();
|
|
|
17848
18046
|
```
|
|
17849
18047
|
|
|
17850
18048
|
```csharp
|
|
18049
|
+
using RestSharp;
|
|
18050
|
+
|
|
17851
18051
|
var client = new RestClient("https://api.agentmail.to/v0/drafts/draft_id/attachments/attachment_id");
|
|
17852
18052
|
var request = new RestRequest(Method.GET);
|
|
17853
18053
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -17991,7 +18191,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
17991
18191
|
|
|
17992
18192
|
async function main() {
|
|
17993
18193
|
const client = new AgentMailClient({
|
|
17994
|
-
environment: AgentMailEnvironment.
|
|
18194
|
+
environment: AgentMailEnvironment.Prod,
|
|
17995
18195
|
apiKey: "YOUR_TOKEN_HERE",
|
|
17996
18196
|
});
|
|
17997
18197
|
await client.domains.list({});
|
|
@@ -18005,7 +18205,7 @@ from agentmail import AgentMail
|
|
|
18005
18205
|
from agentmail.environment import AgentMailEnvironment
|
|
18006
18206
|
|
|
18007
18207
|
client = AgentMail(
|
|
18008
|
-
environment=AgentMailEnvironment.
|
|
18208
|
+
environment=AgentMailEnvironment.PROD,
|
|
18009
18209
|
api_key="YOUR_TOKEN_HERE"
|
|
18010
18210
|
)
|
|
18011
18211
|
|
|
@@ -18064,6 +18264,9 @@ puts response.read_body
|
|
|
18064
18264
|
```
|
|
18065
18265
|
|
|
18066
18266
|
```java
|
|
18267
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
18268
|
+
import com.mashape.unirest.http.Unirest;
|
|
18269
|
+
|
|
18067
18270
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/domains")
|
|
18068
18271
|
.header("Authorization", "Bearer <api_key>")
|
|
18069
18272
|
.header("Content-Type", "application/json")
|
|
@@ -18073,6 +18276,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/domains
|
|
|
18073
18276
|
|
|
18074
18277
|
```php
|
|
18075
18278
|
<?php
|
|
18279
|
+
require_once('vendor/autoload.php');
|
|
18076
18280
|
|
|
18077
18281
|
$client = new \GuzzleHttp\Client();
|
|
18078
18282
|
|
|
@@ -18088,6 +18292,8 @@ echo $response->getBody();
|
|
|
18088
18292
|
```
|
|
18089
18293
|
|
|
18090
18294
|
```csharp
|
|
18295
|
+
using RestSharp;
|
|
18296
|
+
|
|
18091
18297
|
var client = new RestClient("https://api.agentmail.to/v0/domains");
|
|
18092
18298
|
var request = new RestRequest(Method.GET);
|
|
18093
18299
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -18269,7 +18475,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
18269
18475
|
|
|
18270
18476
|
async function main() {
|
|
18271
18477
|
const client = new AgentMailClient({
|
|
18272
|
-
environment: AgentMailEnvironment.
|
|
18478
|
+
environment: AgentMailEnvironment.Prod,
|
|
18273
18479
|
apiKey: "YOUR_TOKEN_HERE",
|
|
18274
18480
|
});
|
|
18275
18481
|
await client.domains.get("domain_id");
|
|
@@ -18283,7 +18489,7 @@ from agentmail import AgentMail
|
|
|
18283
18489
|
from agentmail.environment import AgentMailEnvironment
|
|
18284
18490
|
|
|
18285
18491
|
client = AgentMail(
|
|
18286
|
-
environment=AgentMailEnvironment.
|
|
18492
|
+
environment=AgentMailEnvironment.PROD,
|
|
18287
18493
|
api_key="YOUR_TOKEN_HERE"
|
|
18288
18494
|
)
|
|
18289
18495
|
|
|
@@ -18338,6 +18544,9 @@ puts response.read_body
|
|
|
18338
18544
|
```
|
|
18339
18545
|
|
|
18340
18546
|
```java
|
|
18547
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
18548
|
+
import com.mashape.unirest.http.Unirest;
|
|
18549
|
+
|
|
18341
18550
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/domains/domain_id")
|
|
18342
18551
|
.header("Authorization", "Bearer <api_key>")
|
|
18343
18552
|
.asString();
|
|
@@ -18345,6 +18554,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/domains
|
|
|
18345
18554
|
|
|
18346
18555
|
```php
|
|
18347
18556
|
<?php
|
|
18557
|
+
require_once('vendor/autoload.php');
|
|
18348
18558
|
|
|
18349
18559
|
$client = new \GuzzleHttp\Client();
|
|
18350
18560
|
|
|
@@ -18358,6 +18568,8 @@ echo $response->getBody();
|
|
|
18358
18568
|
```
|
|
18359
18569
|
|
|
18360
18570
|
```csharp
|
|
18571
|
+
using RestSharp;
|
|
18572
|
+
|
|
18361
18573
|
var client = new RestClient("https://api.agentmail.to/v0/domains/domain_id");
|
|
18362
18574
|
var request = new RestRequest(Method.GET);
|
|
18363
18575
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -18447,7 +18659,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
18447
18659
|
|
|
18448
18660
|
async function main() {
|
|
18449
18661
|
const client = new AgentMailClient({
|
|
18450
|
-
environment: AgentMailEnvironment.
|
|
18662
|
+
environment: AgentMailEnvironment.Prod,
|
|
18451
18663
|
apiKey: "YOUR_TOKEN_HERE",
|
|
18452
18664
|
});
|
|
18453
18665
|
await client.domains.getZoneFile(":domain_id");
|
|
@@ -18461,7 +18673,7 @@ from agentmail import AgentMail
|
|
|
18461
18673
|
from agentmail.environment import AgentMailEnvironment
|
|
18462
18674
|
|
|
18463
18675
|
client = AgentMail(
|
|
18464
|
-
environment=AgentMailEnvironment.
|
|
18676
|
+
environment=AgentMailEnvironment.PROD,
|
|
18465
18677
|
api_key="YOUR_TOKEN_HERE"
|
|
18466
18678
|
)
|
|
18467
18679
|
|
|
@@ -18516,6 +18728,9 @@ puts response.read_body
|
|
|
18516
18728
|
```
|
|
18517
18729
|
|
|
18518
18730
|
```java
|
|
18731
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
18732
|
+
import com.mashape.unirest.http.Unirest;
|
|
18733
|
+
|
|
18519
18734
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/domains/%3Adomain_id/zone-file")
|
|
18520
18735
|
.header("Authorization", "Bearer <api_key>")
|
|
18521
18736
|
.asString();
|
|
@@ -18523,6 +18738,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/domains
|
|
|
18523
18738
|
|
|
18524
18739
|
```php
|
|
18525
18740
|
<?php
|
|
18741
|
+
require_once('vendor/autoload.php');
|
|
18526
18742
|
|
|
18527
18743
|
$client = new \GuzzleHttp\Client();
|
|
18528
18744
|
|
|
@@ -18536,6 +18752,8 @@ echo $response->getBody();
|
|
|
18536
18752
|
```
|
|
18537
18753
|
|
|
18538
18754
|
```csharp
|
|
18755
|
+
using RestSharp;
|
|
18756
|
+
|
|
18539
18757
|
var client = new RestClient("https://api.agentmail.to/v0/domains/%3Adomain_id/zone-file");
|
|
18540
18758
|
var request = new RestRequest(Method.GET);
|
|
18541
18759
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -18721,7 +18939,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
18721
18939
|
|
|
18722
18940
|
async function main() {
|
|
18723
18941
|
const client = new AgentMailClient({
|
|
18724
|
-
environment: AgentMailEnvironment.
|
|
18942
|
+
environment: AgentMailEnvironment.Prod,
|
|
18725
18943
|
apiKey: "YOUR_TOKEN_HERE",
|
|
18726
18944
|
});
|
|
18727
18945
|
await client.domains.create({
|
|
@@ -18738,7 +18956,7 @@ from agentmail import AgentMail
|
|
|
18738
18956
|
from agentmail.environment import AgentMailEnvironment
|
|
18739
18957
|
|
|
18740
18958
|
client = AgentMail(
|
|
18741
|
-
environment=AgentMailEnvironment.
|
|
18959
|
+
environment=AgentMailEnvironment.PROD,
|
|
18742
18960
|
api_key="YOUR_TOKEN_HERE"
|
|
18743
18961
|
)
|
|
18744
18962
|
|
|
@@ -18800,6 +19018,9 @@ puts response.read_body
|
|
|
18800
19018
|
```
|
|
18801
19019
|
|
|
18802
19020
|
```java
|
|
19021
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
19022
|
+
import com.mashape.unirest.http.Unirest;
|
|
19023
|
+
|
|
18803
19024
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/domains")
|
|
18804
19025
|
.header("Authorization", "Bearer <api_key>")
|
|
18805
19026
|
.header("Content-Type", "application/json")
|
|
@@ -18809,6 +19030,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/domain
|
|
|
18809
19030
|
|
|
18810
19031
|
```php
|
|
18811
19032
|
<?php
|
|
19033
|
+
require_once('vendor/autoload.php');
|
|
18812
19034
|
|
|
18813
19035
|
$client = new \GuzzleHttp\Client();
|
|
18814
19036
|
|
|
@@ -18827,6 +19049,8 @@ echo $response->getBody();
|
|
|
18827
19049
|
```
|
|
18828
19050
|
|
|
18829
19051
|
```csharp
|
|
19052
|
+
using RestSharp;
|
|
19053
|
+
|
|
18830
19054
|
var client = new RestClient("https://api.agentmail.to/v0/domains");
|
|
18831
19055
|
var request = new RestRequest(Method.POST);
|
|
18832
19056
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -18923,7 +19147,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
18923
19147
|
|
|
18924
19148
|
async function main() {
|
|
18925
19149
|
const client = new AgentMailClient({
|
|
18926
|
-
environment: AgentMailEnvironment.
|
|
19150
|
+
environment: AgentMailEnvironment.Prod,
|
|
18927
19151
|
apiKey: "YOUR_TOKEN_HERE",
|
|
18928
19152
|
});
|
|
18929
19153
|
await client.domains.delete("domain_id");
|
|
@@ -18937,7 +19161,7 @@ from agentmail import AgentMail
|
|
|
18937
19161
|
from agentmail.environment import AgentMailEnvironment
|
|
18938
19162
|
|
|
18939
19163
|
client = AgentMail(
|
|
18940
|
-
environment=AgentMailEnvironment.
|
|
19164
|
+
environment=AgentMailEnvironment.PROD,
|
|
18941
19165
|
api_key="YOUR_TOKEN_HERE"
|
|
18942
19166
|
)
|
|
18943
19167
|
|
|
@@ -18992,6 +19216,9 @@ puts response.read_body
|
|
|
18992
19216
|
```
|
|
18993
19217
|
|
|
18994
19218
|
```java
|
|
19219
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
19220
|
+
import com.mashape.unirest.http.Unirest;
|
|
19221
|
+
|
|
18995
19222
|
HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/domains/domain_id")
|
|
18996
19223
|
.header("Authorization", "Bearer <api_key>")
|
|
18997
19224
|
.asString();
|
|
@@ -18999,6 +19226,7 @@ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/doma
|
|
|
18999
19226
|
|
|
19000
19227
|
```php
|
|
19001
19228
|
<?php
|
|
19229
|
+
require_once('vendor/autoload.php');
|
|
19002
19230
|
|
|
19003
19231
|
$client = new \GuzzleHttp\Client();
|
|
19004
19232
|
|
|
@@ -19012,6 +19240,8 @@ echo $response->getBody();
|
|
|
19012
19240
|
```
|
|
19013
19241
|
|
|
19014
19242
|
```csharp
|
|
19243
|
+
using RestSharp;
|
|
19244
|
+
|
|
19015
19245
|
var client = new RestClient("https://api.agentmail.to/v0/domains/domain_id");
|
|
19016
19246
|
var request = new RestRequest(Method.DELETE);
|
|
19017
19247
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -19096,7 +19326,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
19096
19326
|
|
|
19097
19327
|
async function main() {
|
|
19098
19328
|
const client = new AgentMailClient({
|
|
19099
|
-
environment: AgentMailEnvironment.
|
|
19329
|
+
environment: AgentMailEnvironment.Prod,
|
|
19100
19330
|
apiKey: "YOUR_TOKEN_HERE",
|
|
19101
19331
|
});
|
|
19102
19332
|
await client.domains.verify("domain_id");
|
|
@@ -19110,7 +19340,7 @@ from agentmail import AgentMail
|
|
|
19110
19340
|
from agentmail.environment import AgentMailEnvironment
|
|
19111
19341
|
|
|
19112
19342
|
client = AgentMail(
|
|
19113
|
-
environment=AgentMailEnvironment.
|
|
19343
|
+
environment=AgentMailEnvironment.PROD,
|
|
19114
19344
|
api_key="YOUR_TOKEN_HERE"
|
|
19115
19345
|
)
|
|
19116
19346
|
|
|
@@ -19165,6 +19395,9 @@ puts response.read_body
|
|
|
19165
19395
|
```
|
|
19166
19396
|
|
|
19167
19397
|
```java
|
|
19398
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
19399
|
+
import com.mashape.unirest.http.Unirest;
|
|
19400
|
+
|
|
19168
19401
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/domains/domain_id/verify")
|
|
19169
19402
|
.header("Authorization", "Bearer <api_key>")
|
|
19170
19403
|
.asString();
|
|
@@ -19172,6 +19405,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/domain
|
|
|
19172
19405
|
|
|
19173
19406
|
```php
|
|
19174
19407
|
<?php
|
|
19408
|
+
require_once('vendor/autoload.php');
|
|
19175
19409
|
|
|
19176
19410
|
$client = new \GuzzleHttp\Client();
|
|
19177
19411
|
|
|
@@ -19185,6 +19419,8 @@ echo $response->getBody();
|
|
|
19185
19419
|
```
|
|
19186
19420
|
|
|
19187
19421
|
```csharp
|
|
19422
|
+
using RestSharp;
|
|
19423
|
+
|
|
19188
19424
|
var client = new RestClient("https://api.agentmail.to/v0/domains/domain_id/verify");
|
|
19189
19425
|
var request = new RestRequest(Method.POST);
|
|
19190
19426
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -19360,7 +19596,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
19360
19596
|
|
|
19361
19597
|
async function main() {
|
|
19362
19598
|
const client = new AgentMailClient({
|
|
19363
|
-
environment: AgentMailEnvironment.
|
|
19599
|
+
environment: AgentMailEnvironment.Prod,
|
|
19364
19600
|
apiKey: "YOUR_TOKEN_HERE",
|
|
19365
19601
|
});
|
|
19366
19602
|
await client.webhooks.list({});
|
|
@@ -19374,7 +19610,7 @@ from agentmail import AgentMail
|
|
|
19374
19610
|
from agentmail.environment import AgentMailEnvironment
|
|
19375
19611
|
|
|
19376
19612
|
client = AgentMail(
|
|
19377
|
-
environment=AgentMailEnvironment.
|
|
19613
|
+
environment=AgentMailEnvironment.PROD,
|
|
19378
19614
|
api_key="YOUR_TOKEN_HERE"
|
|
19379
19615
|
)
|
|
19380
19616
|
|
|
@@ -19427,6 +19663,9 @@ puts response.read_body
|
|
|
19427
19663
|
```
|
|
19428
19664
|
|
|
19429
19665
|
```java
|
|
19666
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
19667
|
+
import com.mashape.unirest.http.Unirest;
|
|
19668
|
+
|
|
19430
19669
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/webhooks")
|
|
19431
19670
|
.header("Authorization", "Bearer <api_key>")
|
|
19432
19671
|
.asString();
|
|
@@ -19434,6 +19673,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/webhook
|
|
|
19434
19673
|
|
|
19435
19674
|
```php
|
|
19436
19675
|
<?php
|
|
19676
|
+
require_once('vendor/autoload.php');
|
|
19437
19677
|
|
|
19438
19678
|
$client = new \GuzzleHttp\Client();
|
|
19439
19679
|
|
|
@@ -19447,6 +19687,8 @@ echo $response->getBody();
|
|
|
19447
19687
|
```
|
|
19448
19688
|
|
|
19449
19689
|
```csharp
|
|
19690
|
+
using RestSharp;
|
|
19691
|
+
|
|
19450
19692
|
var client = new RestClient("https://api.agentmail.to/v0/webhooks");
|
|
19451
19693
|
var request = new RestRequest(Method.GET);
|
|
19452
19694
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -19597,7 +19839,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
19597
19839
|
|
|
19598
19840
|
async function main() {
|
|
19599
19841
|
const client = new AgentMailClient({
|
|
19600
|
-
environment: AgentMailEnvironment.
|
|
19842
|
+
environment: AgentMailEnvironment.Prod,
|
|
19601
19843
|
apiKey: "YOUR_TOKEN_HERE",
|
|
19602
19844
|
});
|
|
19603
19845
|
await client.webhooks.get("webhook_id");
|
|
@@ -19611,7 +19853,7 @@ from agentmail import AgentMail
|
|
|
19611
19853
|
from agentmail.environment import AgentMailEnvironment
|
|
19612
19854
|
|
|
19613
19855
|
client = AgentMail(
|
|
19614
|
-
environment=AgentMailEnvironment.
|
|
19856
|
+
environment=AgentMailEnvironment.PROD,
|
|
19615
19857
|
api_key="YOUR_TOKEN_HERE"
|
|
19616
19858
|
)
|
|
19617
19859
|
|
|
@@ -19666,6 +19908,9 @@ puts response.read_body
|
|
|
19666
19908
|
```
|
|
19667
19909
|
|
|
19668
19910
|
```java
|
|
19911
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
19912
|
+
import com.mashape.unirest.http.Unirest;
|
|
19913
|
+
|
|
19669
19914
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/webhooks/webhook_id")
|
|
19670
19915
|
.header("Authorization", "Bearer <api_key>")
|
|
19671
19916
|
.asString();
|
|
@@ -19673,6 +19918,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/webhook
|
|
|
19673
19918
|
|
|
19674
19919
|
```php
|
|
19675
19920
|
<?php
|
|
19921
|
+
require_once('vendor/autoload.php');
|
|
19676
19922
|
|
|
19677
19923
|
$client = new \GuzzleHttp\Client();
|
|
19678
19924
|
|
|
@@ -19686,6 +19932,8 @@ echo $response->getBody();
|
|
|
19686
19932
|
```
|
|
19687
19933
|
|
|
19688
19934
|
```csharp
|
|
19935
|
+
using RestSharp;
|
|
19936
|
+
|
|
19689
19937
|
var client = new RestClient("https://api.agentmail.to/v0/webhooks/webhook_id");
|
|
19690
19938
|
var request = new RestRequest(Method.GET);
|
|
19691
19939
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -19860,7 +20108,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
19860
20108
|
|
|
19861
20109
|
async function main() {
|
|
19862
20110
|
const client = new AgentMailClient({
|
|
19863
|
-
environment: AgentMailEnvironment.
|
|
20111
|
+
environment: AgentMailEnvironment.Prod,
|
|
19864
20112
|
apiKey: "YOUR_TOKEN_HERE",
|
|
19865
20113
|
});
|
|
19866
20114
|
await client.webhooks.update("webhook_id", {});
|
|
@@ -19874,7 +20122,7 @@ from agentmail import AgentMail
|
|
|
19874
20122
|
from agentmail.environment import AgentMailEnvironment
|
|
19875
20123
|
|
|
19876
20124
|
client = AgentMail(
|
|
19877
|
-
environment=AgentMailEnvironment.
|
|
20125
|
+
environment=AgentMailEnvironment.PROD,
|
|
19878
20126
|
api_key="YOUR_TOKEN_HERE"
|
|
19879
20127
|
)
|
|
19880
20128
|
|
|
@@ -19935,6 +20183,9 @@ puts response.read_body
|
|
|
19935
20183
|
```
|
|
19936
20184
|
|
|
19937
20185
|
```java
|
|
20186
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
20187
|
+
import com.mashape.unirest.http.Unirest;
|
|
20188
|
+
|
|
19938
20189
|
HttpResponse<String> response = Unirest.patch("https://api.agentmail.to/v0/webhooks/webhook_id")
|
|
19939
20190
|
.header("Authorization", "Bearer <api_key>")
|
|
19940
20191
|
.header("Content-Type", "application/json")
|
|
@@ -19944,6 +20195,7 @@ HttpResponse<String> response = Unirest.patch("https://api.agentmail.to/v0/webho
|
|
|
19944
20195
|
|
|
19945
20196
|
```php
|
|
19946
20197
|
<?php
|
|
20198
|
+
require_once('vendor/autoload.php');
|
|
19947
20199
|
|
|
19948
20200
|
$client = new \GuzzleHttp\Client();
|
|
19949
20201
|
|
|
@@ -19959,6 +20211,8 @@ echo $response->getBody();
|
|
|
19959
20211
|
```
|
|
19960
20212
|
|
|
19961
20213
|
```csharp
|
|
20214
|
+
using RestSharp;
|
|
20215
|
+
|
|
19962
20216
|
var client = new RestClient("https://api.agentmail.to/v0/webhooks/webhook_id");
|
|
19963
20217
|
var request = new RestRequest(Method.PATCH);
|
|
19964
20218
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -20135,7 +20389,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
20135
20389
|
|
|
20136
20390
|
async function main() {
|
|
20137
20391
|
const client = new AgentMailClient({
|
|
20138
|
-
environment: AgentMailEnvironment.
|
|
20392
|
+
environment: AgentMailEnvironment.Prod,
|
|
20139
20393
|
apiKey: "YOUR_TOKEN_HERE",
|
|
20140
20394
|
});
|
|
20141
20395
|
await client.webhooks.create({
|
|
@@ -20155,7 +20409,7 @@ from agentmail import AgentMail
|
|
|
20155
20409
|
from agentmail.environment import AgentMailEnvironment
|
|
20156
20410
|
|
|
20157
20411
|
client = AgentMail(
|
|
20158
|
-
environment=AgentMailEnvironment.
|
|
20412
|
+
environment=AgentMailEnvironment.PROD,
|
|
20159
20413
|
api_key="YOUR_TOKEN_HERE"
|
|
20160
20414
|
)
|
|
20161
20415
|
|
|
@@ -20220,6 +20474,9 @@ puts response.read_body
|
|
|
20220
20474
|
```
|
|
20221
20475
|
|
|
20222
20476
|
```java
|
|
20477
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
20478
|
+
import com.mashape.unirest.http.Unirest;
|
|
20479
|
+
|
|
20223
20480
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/webhooks")
|
|
20224
20481
|
.header("Authorization", "Bearer <api_key>")
|
|
20225
20482
|
.header("Content-Type", "application/json")
|
|
@@ -20229,6 +20486,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/webhoo
|
|
|
20229
20486
|
|
|
20230
20487
|
```php
|
|
20231
20488
|
<?php
|
|
20489
|
+
require_once('vendor/autoload.php');
|
|
20232
20490
|
|
|
20233
20491
|
$client = new \GuzzleHttp\Client();
|
|
20234
20492
|
|
|
@@ -20250,6 +20508,8 @@ echo $response->getBody();
|
|
|
20250
20508
|
```
|
|
20251
20509
|
|
|
20252
20510
|
```csharp
|
|
20511
|
+
using RestSharp;
|
|
20512
|
+
|
|
20253
20513
|
var client = new RestClient("https://api.agentmail.to/v0/webhooks");
|
|
20254
20514
|
var request = new RestRequest(Method.POST);
|
|
20255
20515
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -20346,7 +20606,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
20346
20606
|
|
|
20347
20607
|
async function main() {
|
|
20348
20608
|
const client = new AgentMailClient({
|
|
20349
|
-
environment: AgentMailEnvironment.
|
|
20609
|
+
environment: AgentMailEnvironment.Prod,
|
|
20350
20610
|
apiKey: "YOUR_TOKEN_HERE",
|
|
20351
20611
|
});
|
|
20352
20612
|
await client.webhooks.delete("webhook_id");
|
|
@@ -20360,7 +20620,7 @@ from agentmail import AgentMail
|
|
|
20360
20620
|
from agentmail.environment import AgentMailEnvironment
|
|
20361
20621
|
|
|
20362
20622
|
client = AgentMail(
|
|
20363
|
-
environment=AgentMailEnvironment.
|
|
20623
|
+
environment=AgentMailEnvironment.PROD,
|
|
20364
20624
|
api_key="YOUR_TOKEN_HERE"
|
|
20365
20625
|
)
|
|
20366
20626
|
|
|
@@ -20415,6 +20675,9 @@ puts response.read_body
|
|
|
20415
20675
|
```
|
|
20416
20676
|
|
|
20417
20677
|
```java
|
|
20678
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
20679
|
+
import com.mashape.unirest.http.Unirest;
|
|
20680
|
+
|
|
20418
20681
|
HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/webhooks/webhook_id")
|
|
20419
20682
|
.header("Authorization", "Bearer <api_key>")
|
|
20420
20683
|
.asString();
|
|
@@ -20422,6 +20685,7 @@ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/webh
|
|
|
20422
20685
|
|
|
20423
20686
|
```php
|
|
20424
20687
|
<?php
|
|
20688
|
+
require_once('vendor/autoload.php');
|
|
20425
20689
|
|
|
20426
20690
|
$client = new \GuzzleHttp\Client();
|
|
20427
20691
|
|
|
@@ -20435,6 +20699,8 @@ echo $response->getBody();
|
|
|
20435
20699
|
```
|
|
20436
20700
|
|
|
20437
20701
|
```csharp
|
|
20702
|
+
using RestSharp;
|
|
20703
|
+
|
|
20438
20704
|
var client = new RestClient("https://api.agentmail.to/v0/webhooks/webhook_id");
|
|
20439
20705
|
var request = new RestRequest(Method.DELETE);
|
|
20440
20706
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -21560,7 +21826,7 @@ channels:
|
|
|
21560
21826
|
query:
|
|
21561
21827
|
type: object
|
|
21562
21828
|
properties:
|
|
21563
|
-
|
|
21829
|
+
api_key:
|
|
21564
21830
|
type: string
|
|
21565
21831
|
publish:
|
|
21566
21832
|
operationId: websockets-publish
|
|
@@ -21591,12 +21857,12 @@ channels:
|
|
|
21591
21857
|
payload:
|
|
21592
21858
|
$ref: '#/components/schemas/type_websockets:Subscribe'
|
|
21593
21859
|
servers:
|
|
21594
|
-
|
|
21860
|
+
prod:
|
|
21595
21861
|
url: wss://ws.agentmail.to/
|
|
21596
21862
|
protocol: wss
|
|
21597
21863
|
x-default: true
|
|
21598
|
-
|
|
21599
|
-
url: wss://ws.agentmail.
|
|
21864
|
+
prod-x402:
|
|
21865
|
+
url: wss://x402.ws.agentmail.to/
|
|
21600
21866
|
protocol: wss
|
|
21601
21867
|
components:
|
|
21602
21868
|
messages:
|
|
@@ -22452,7 +22718,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
22452
22718
|
|
|
22453
22719
|
async function main() {
|
|
22454
22720
|
const client = new AgentMailClient({
|
|
22455
|
-
environment: AgentMailEnvironment.
|
|
22721
|
+
environment: AgentMailEnvironment.Prod,
|
|
22456
22722
|
apiKey: "YOUR_TOKEN_HERE",
|
|
22457
22723
|
});
|
|
22458
22724
|
await client.metrics.list({
|
|
@@ -22470,7 +22736,7 @@ from agentmail.environment import AgentMailEnvironment
|
|
|
22470
22736
|
from datetime import datetime
|
|
22471
22737
|
|
|
22472
22738
|
client = AgentMail(
|
|
22473
|
-
environment=AgentMailEnvironment.
|
|
22739
|
+
environment=AgentMailEnvironment.PROD,
|
|
22474
22740
|
api_key="YOUR_TOKEN_HERE"
|
|
22475
22741
|
)
|
|
22476
22742
|
|
|
@@ -22532,6 +22798,9 @@ puts response.read_body
|
|
|
22532
22798
|
```
|
|
22533
22799
|
|
|
22534
22800
|
```java
|
|
22801
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
22802
|
+
import com.mashape.unirest.http.Unirest;
|
|
22803
|
+
|
|
22535
22804
|
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")
|
|
22536
22805
|
.header("Authorization", "Bearer <api_key>")
|
|
22537
22806
|
.header("Content-Type", "application/json")
|
|
@@ -22541,6 +22810,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/metrics
|
|
|
22541
22810
|
|
|
22542
22811
|
```php
|
|
22543
22812
|
<?php
|
|
22813
|
+
require_once('vendor/autoload.php');
|
|
22544
22814
|
|
|
22545
22815
|
$client = new \GuzzleHttp\Client();
|
|
22546
22816
|
|
|
@@ -22556,6 +22826,8 @@ echo $response->getBody();
|
|
|
22556
22826
|
```
|
|
22557
22827
|
|
|
22558
22828
|
```csharp
|
|
22829
|
+
using RestSharp;
|
|
22830
|
+
|
|
22559
22831
|
var client = new RestClient("https://api.agentmail.to/v0/metrics?start_timestamp=2024-01-15T09%3A30%3A00Z&end_timestamp=2024-01-15T09%3A30%3A00Z");
|
|
22560
22832
|
var request = new RestRequest(Method.GET);
|
|
22561
22833
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -22703,7 +22975,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
22703
22975
|
|
|
22704
22976
|
async function main() {
|
|
22705
22977
|
const client = new AgentMailClient({
|
|
22706
|
-
environment: AgentMailEnvironment.
|
|
22978
|
+
environment: AgentMailEnvironment.Prod,
|
|
22707
22979
|
apiKey: "YOUR_TOKEN_HERE",
|
|
22708
22980
|
});
|
|
22709
22981
|
await client.apiKeys.list({});
|
|
@@ -22717,7 +22989,7 @@ from agentmail import AgentMail
|
|
|
22717
22989
|
from agentmail.environment import AgentMailEnvironment
|
|
22718
22990
|
|
|
22719
22991
|
client = AgentMail(
|
|
22720
|
-
environment=AgentMailEnvironment.
|
|
22992
|
+
environment=AgentMailEnvironment.PROD,
|
|
22721
22993
|
api_key="YOUR_TOKEN_HERE"
|
|
22722
22994
|
)
|
|
22723
22995
|
|
|
@@ -22776,6 +23048,9 @@ puts response.read_body
|
|
|
22776
23048
|
```
|
|
22777
23049
|
|
|
22778
23050
|
```java
|
|
23051
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
23052
|
+
import com.mashape.unirest.http.Unirest;
|
|
23053
|
+
|
|
22779
23054
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/api-keys")
|
|
22780
23055
|
.header("Authorization", "Bearer <api_key>")
|
|
22781
23056
|
.header("Content-Type", "application/json")
|
|
@@ -22785,6 +23060,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/api-key
|
|
|
22785
23060
|
|
|
22786
23061
|
```php
|
|
22787
23062
|
<?php
|
|
23063
|
+
require_once('vendor/autoload.php');
|
|
22788
23064
|
|
|
22789
23065
|
$client = new \GuzzleHttp\Client();
|
|
22790
23066
|
|
|
@@ -22800,6 +23076,8 @@ echo $response->getBody();
|
|
|
22800
23076
|
```
|
|
22801
23077
|
|
|
22802
23078
|
```csharp
|
|
23079
|
+
using RestSharp;
|
|
23080
|
+
|
|
22803
23081
|
var client = new RestClient("https://api.agentmail.to/v0/api-keys");
|
|
22804
23082
|
var request = new RestRequest(Method.GET);
|
|
22805
23083
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -22932,7 +23210,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
22932
23210
|
|
|
22933
23211
|
async function main() {
|
|
22934
23212
|
const client = new AgentMailClient({
|
|
22935
|
-
environment: AgentMailEnvironment.
|
|
23213
|
+
environment: AgentMailEnvironment.Prod,
|
|
22936
23214
|
apiKey: "YOUR_TOKEN_HERE",
|
|
22937
23215
|
});
|
|
22938
23216
|
await client.apiKeys.create({
|
|
@@ -22948,7 +23226,7 @@ from agentmail import AgentMail
|
|
|
22948
23226
|
from agentmail.environment import AgentMailEnvironment
|
|
22949
23227
|
|
|
22950
23228
|
client = AgentMail(
|
|
22951
|
-
environment=AgentMailEnvironment.
|
|
23229
|
+
environment=AgentMailEnvironment.PROD,
|
|
22952
23230
|
api_key="YOUR_TOKEN_HERE"
|
|
22953
23231
|
)
|
|
22954
23232
|
|
|
@@ -23009,6 +23287,9 @@ puts response.read_body
|
|
|
23009
23287
|
```
|
|
23010
23288
|
|
|
23011
23289
|
```java
|
|
23290
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
23291
|
+
import com.mashape.unirest.http.Unirest;
|
|
23292
|
+
|
|
23012
23293
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/api-keys")
|
|
23013
23294
|
.header("Authorization", "Bearer <api_key>")
|
|
23014
23295
|
.header("Content-Type", "application/json")
|
|
@@ -23018,6 +23299,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/api-ke
|
|
|
23018
23299
|
|
|
23019
23300
|
```php
|
|
23020
23301
|
<?php
|
|
23302
|
+
require_once('vendor/autoload.php');
|
|
23021
23303
|
|
|
23022
23304
|
$client = new \GuzzleHttp\Client();
|
|
23023
23305
|
|
|
@@ -23035,6 +23317,8 @@ echo $response->getBody();
|
|
|
23035
23317
|
```
|
|
23036
23318
|
|
|
23037
23319
|
```csharp
|
|
23320
|
+
using RestSharp;
|
|
23321
|
+
|
|
23038
23322
|
var client = new RestClient("https://api.agentmail.to/v0/api-keys");
|
|
23039
23323
|
var request = new RestRequest(Method.POST);
|
|
23040
23324
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -23128,7 +23412,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
23128
23412
|
|
|
23129
23413
|
async function main() {
|
|
23130
23414
|
const client = new AgentMailClient({
|
|
23131
|
-
environment: AgentMailEnvironment.
|
|
23415
|
+
environment: AgentMailEnvironment.Prod,
|
|
23132
23416
|
apiKey: "YOUR_TOKEN_HERE",
|
|
23133
23417
|
});
|
|
23134
23418
|
await client.apiKeys.delete("api_key");
|
|
@@ -23142,7 +23426,7 @@ from agentmail import AgentMail
|
|
|
23142
23426
|
from agentmail.environment import AgentMailEnvironment
|
|
23143
23427
|
|
|
23144
23428
|
client = AgentMail(
|
|
23145
|
-
environment=AgentMailEnvironment.
|
|
23429
|
+
environment=AgentMailEnvironment.PROD,
|
|
23146
23430
|
api_key="YOUR_TOKEN_HERE"
|
|
23147
23431
|
)
|
|
23148
23432
|
|
|
@@ -23197,6 +23481,9 @@ puts response.read_body
|
|
|
23197
23481
|
```
|
|
23198
23482
|
|
|
23199
23483
|
```java
|
|
23484
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
23485
|
+
import com.mashape.unirest.http.Unirest;
|
|
23486
|
+
|
|
23200
23487
|
HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/api-keys/api_key")
|
|
23201
23488
|
.header("Authorization", "Bearer <api_key>")
|
|
23202
23489
|
.asString();
|
|
@@ -23204,6 +23491,7 @@ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/api-
|
|
|
23204
23491
|
|
|
23205
23492
|
```php
|
|
23206
23493
|
<?php
|
|
23494
|
+
require_once('vendor/autoload.php');
|
|
23207
23495
|
|
|
23208
23496
|
$client = new \GuzzleHttp\Client();
|
|
23209
23497
|
|
|
@@ -23217,6 +23505,8 @@ echo $response->getBody();
|
|
|
23217
23505
|
```
|
|
23218
23506
|
|
|
23219
23507
|
```csharp
|
|
23508
|
+
using RestSharp;
|
|
23509
|
+
|
|
23220
23510
|
var client = new RestClient("https://api.agentmail.to/v0/api-keys/api_key");
|
|
23221
23511
|
var request = new RestRequest(Method.DELETE);
|
|
23222
23512
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -23356,7 +23646,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
23356
23646
|
|
|
23357
23647
|
async function main() {
|
|
23358
23648
|
const client = new AgentMailClient({
|
|
23359
|
-
environment: AgentMailEnvironment.
|
|
23649
|
+
environment: AgentMailEnvironment.Prod,
|
|
23360
23650
|
apiKey: "YOUR_TOKEN_HERE",
|
|
23361
23651
|
});
|
|
23362
23652
|
await client.pods.list({});
|
|
@@ -23370,7 +23660,7 @@ from agentmail import AgentMail
|
|
|
23370
23660
|
from agentmail.environment import AgentMailEnvironment
|
|
23371
23661
|
|
|
23372
23662
|
client = AgentMail(
|
|
23373
|
-
environment=AgentMailEnvironment.
|
|
23663
|
+
environment=AgentMailEnvironment.PROD,
|
|
23374
23664
|
api_key="YOUR_TOKEN_HERE"
|
|
23375
23665
|
)
|
|
23376
23666
|
|
|
@@ -23429,6 +23719,9 @@ puts response.read_body
|
|
|
23429
23719
|
```
|
|
23430
23720
|
|
|
23431
23721
|
```java
|
|
23722
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
23723
|
+
import com.mashape.unirest.http.Unirest;
|
|
23724
|
+
|
|
23432
23725
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods")
|
|
23433
23726
|
.header("Authorization", "Bearer <api_key>")
|
|
23434
23727
|
.header("Content-Type", "application/json")
|
|
@@ -23438,6 +23731,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods")
|
|
|
23438
23731
|
|
|
23439
23732
|
```php
|
|
23440
23733
|
<?php
|
|
23734
|
+
require_once('vendor/autoload.php');
|
|
23441
23735
|
|
|
23442
23736
|
$client = new \GuzzleHttp\Client();
|
|
23443
23737
|
|
|
@@ -23453,6 +23747,8 @@ echo $response->getBody();
|
|
|
23453
23747
|
```
|
|
23454
23748
|
|
|
23455
23749
|
```csharp
|
|
23750
|
+
using RestSharp;
|
|
23751
|
+
|
|
23456
23752
|
var client = new RestClient("https://api.agentmail.to/v0/pods");
|
|
23457
23753
|
var request = new RestRequest(Method.GET);
|
|
23458
23754
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -23576,7 +23872,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
23576
23872
|
|
|
23577
23873
|
async function main() {
|
|
23578
23874
|
const client = new AgentMailClient({
|
|
23579
|
-
environment: AgentMailEnvironment.
|
|
23875
|
+
environment: AgentMailEnvironment.Prod,
|
|
23580
23876
|
apiKey: "YOUR_TOKEN_HERE",
|
|
23581
23877
|
});
|
|
23582
23878
|
await client.pods.get("pod_id");
|
|
@@ -23590,7 +23886,7 @@ from agentmail import AgentMail
|
|
|
23590
23886
|
from agentmail.environment import AgentMailEnvironment
|
|
23591
23887
|
|
|
23592
23888
|
client = AgentMail(
|
|
23593
|
-
environment=AgentMailEnvironment.
|
|
23889
|
+
environment=AgentMailEnvironment.PROD,
|
|
23594
23890
|
api_key="YOUR_TOKEN_HERE"
|
|
23595
23891
|
)
|
|
23596
23892
|
|
|
@@ -23651,6 +23947,9 @@ puts response.read_body
|
|
|
23651
23947
|
```
|
|
23652
23948
|
|
|
23653
23949
|
```java
|
|
23950
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
23951
|
+
import com.mashape.unirest.http.Unirest;
|
|
23952
|
+
|
|
23654
23953
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id")
|
|
23655
23954
|
.header("Authorization", "Bearer <api_key>")
|
|
23656
23955
|
.header("Content-Type", "application/json")
|
|
@@ -23660,6 +23959,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/po
|
|
|
23660
23959
|
|
|
23661
23960
|
```php
|
|
23662
23961
|
<?php
|
|
23962
|
+
require_once('vendor/autoload.php');
|
|
23663
23963
|
|
|
23664
23964
|
$client = new \GuzzleHttp\Client();
|
|
23665
23965
|
|
|
@@ -23675,6 +23975,8 @@ echo $response->getBody();
|
|
|
23675
23975
|
```
|
|
23676
23976
|
|
|
23677
23977
|
```csharp
|
|
23978
|
+
using RestSharp;
|
|
23979
|
+
|
|
23678
23980
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id");
|
|
23679
23981
|
var request = new RestRequest(Method.GET);
|
|
23680
23982
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -23806,7 +24108,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
23806
24108
|
|
|
23807
24109
|
async function main() {
|
|
23808
24110
|
const client = new AgentMailClient({
|
|
23809
|
-
environment: AgentMailEnvironment.
|
|
24111
|
+
environment: AgentMailEnvironment.Prod,
|
|
23810
24112
|
apiKey: "YOUR_TOKEN_HERE",
|
|
23811
24113
|
});
|
|
23812
24114
|
await client.pods.create({});
|
|
@@ -23820,7 +24122,7 @@ from agentmail import AgentMail
|
|
|
23820
24122
|
from agentmail.environment import AgentMailEnvironment
|
|
23821
24123
|
|
|
23822
24124
|
client = AgentMail(
|
|
23823
|
-
environment=AgentMailEnvironment.
|
|
24125
|
+
environment=AgentMailEnvironment.PROD,
|
|
23824
24126
|
api_key="YOUR_TOKEN_HERE"
|
|
23825
24127
|
)
|
|
23826
24128
|
|
|
@@ -23879,6 +24181,9 @@ puts response.read_body
|
|
|
23879
24181
|
```
|
|
23880
24182
|
|
|
23881
24183
|
```java
|
|
24184
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
24185
|
+
import com.mashape.unirest.http.Unirest;
|
|
24186
|
+
|
|
23882
24187
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/pods")
|
|
23883
24188
|
.header("Authorization", "Bearer <api_key>")
|
|
23884
24189
|
.header("Content-Type", "application/json")
|
|
@@ -23888,6 +24193,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/pods")
|
|
|
23888
24193
|
|
|
23889
24194
|
```php
|
|
23890
24195
|
<?php
|
|
24196
|
+
require_once('vendor/autoload.php');
|
|
23891
24197
|
|
|
23892
24198
|
$client = new \GuzzleHttp\Client();
|
|
23893
24199
|
|
|
@@ -23903,6 +24209,8 @@ echo $response->getBody();
|
|
|
23903
24209
|
```
|
|
23904
24210
|
|
|
23905
24211
|
```csharp
|
|
24212
|
+
using RestSharp;
|
|
24213
|
+
|
|
23906
24214
|
var client = new RestClient("https://api.agentmail.to/v0/pods");
|
|
23907
24215
|
var request = new RestRequest(Method.POST);
|
|
23908
24216
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -23996,7 +24304,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
23996
24304
|
|
|
23997
24305
|
async function main() {
|
|
23998
24306
|
const client = new AgentMailClient({
|
|
23999
|
-
environment: AgentMailEnvironment.
|
|
24307
|
+
environment: AgentMailEnvironment.Prod,
|
|
24000
24308
|
apiKey: "YOUR_TOKEN_HERE",
|
|
24001
24309
|
});
|
|
24002
24310
|
await client.pods.delete("pod_id");
|
|
@@ -24010,7 +24318,7 @@ from agentmail import AgentMail
|
|
|
24010
24318
|
from agentmail.environment import AgentMailEnvironment
|
|
24011
24319
|
|
|
24012
24320
|
client = AgentMail(
|
|
24013
|
-
environment=AgentMailEnvironment.
|
|
24321
|
+
environment=AgentMailEnvironment.PROD,
|
|
24014
24322
|
api_key="YOUR_TOKEN_HERE"
|
|
24015
24323
|
)
|
|
24016
24324
|
|
|
@@ -24065,6 +24373,9 @@ puts response.read_body
|
|
|
24065
24373
|
```
|
|
24066
24374
|
|
|
24067
24375
|
```java
|
|
24376
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
24377
|
+
import com.mashape.unirest.http.Unirest;
|
|
24378
|
+
|
|
24068
24379
|
HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/pods/pod_id")
|
|
24069
24380
|
.header("Authorization", "Bearer <api_key>")
|
|
24070
24381
|
.asString();
|
|
@@ -24072,6 +24383,7 @@ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/pods
|
|
|
24072
24383
|
|
|
24073
24384
|
```php
|
|
24074
24385
|
<?php
|
|
24386
|
+
require_once('vendor/autoload.php');
|
|
24075
24387
|
|
|
24076
24388
|
$client = new \GuzzleHttp\Client();
|
|
24077
24389
|
|
|
@@ -24085,6 +24397,8 @@ echo $response->getBody();
|
|
|
24085
24397
|
```
|
|
24086
24398
|
|
|
24087
24399
|
```csharp
|
|
24400
|
+
using RestSharp;
|
|
24401
|
+
|
|
24088
24402
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id");
|
|
24089
24403
|
var request = new RestRequest(Method.DELETE);
|
|
24090
24404
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -24237,7 +24551,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
24237
24551
|
|
|
24238
24552
|
async function main() {
|
|
24239
24553
|
const client = new AgentMailClient({
|
|
24240
|
-
environment: AgentMailEnvironment.
|
|
24554
|
+
environment: AgentMailEnvironment.Prod,
|
|
24241
24555
|
apiKey: "YOUR_TOKEN_HERE",
|
|
24242
24556
|
});
|
|
24243
24557
|
await client.pods.inboxes.list("pod_id", {});
|
|
@@ -24251,7 +24565,7 @@ from agentmail import AgentMail
|
|
|
24251
24565
|
from agentmail.environment import AgentMailEnvironment
|
|
24252
24566
|
|
|
24253
24567
|
client = AgentMail(
|
|
24254
|
-
environment=AgentMailEnvironment.
|
|
24568
|
+
environment=AgentMailEnvironment.PROD,
|
|
24255
24569
|
api_key="YOUR_TOKEN_HERE"
|
|
24256
24570
|
)
|
|
24257
24571
|
|
|
@@ -24312,6 +24626,9 @@ puts response.read_body
|
|
|
24312
24626
|
```
|
|
24313
24627
|
|
|
24314
24628
|
```java
|
|
24629
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
24630
|
+
import com.mashape.unirest.http.Unirest;
|
|
24631
|
+
|
|
24315
24632
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/inboxes")
|
|
24316
24633
|
.header("Authorization", "Bearer <api_key>")
|
|
24317
24634
|
.header("Content-Type", "application/json")
|
|
@@ -24321,6 +24638,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/po
|
|
|
24321
24638
|
|
|
24322
24639
|
```php
|
|
24323
24640
|
<?php
|
|
24641
|
+
require_once('vendor/autoload.php');
|
|
24324
24642
|
|
|
24325
24643
|
$client = new \GuzzleHttp\Client();
|
|
24326
24644
|
|
|
@@ -24336,6 +24654,8 @@ echo $response->getBody();
|
|
|
24336
24654
|
```
|
|
24337
24655
|
|
|
24338
24656
|
```csharp
|
|
24657
|
+
using RestSharp;
|
|
24658
|
+
|
|
24339
24659
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/inboxes");
|
|
24340
24660
|
var request = new RestRequest(Method.GET);
|
|
24341
24661
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -24469,7 +24789,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
24469
24789
|
|
|
24470
24790
|
async function main() {
|
|
24471
24791
|
const client = new AgentMailClient({
|
|
24472
|
-
environment: AgentMailEnvironment.
|
|
24792
|
+
environment: AgentMailEnvironment.Prod,
|
|
24473
24793
|
apiKey: "YOUR_TOKEN_HERE",
|
|
24474
24794
|
});
|
|
24475
24795
|
await client.pods.inboxes.get("pod_id", "inbox_id");
|
|
@@ -24483,7 +24803,7 @@ from agentmail import AgentMail
|
|
|
24483
24803
|
from agentmail.environment import AgentMailEnvironment
|
|
24484
24804
|
|
|
24485
24805
|
client = AgentMail(
|
|
24486
|
-
environment=AgentMailEnvironment.
|
|
24806
|
+
environment=AgentMailEnvironment.PROD,
|
|
24487
24807
|
api_key="YOUR_TOKEN_HERE"
|
|
24488
24808
|
)
|
|
24489
24809
|
|
|
@@ -24545,6 +24865,9 @@ puts response.read_body
|
|
|
24545
24865
|
```
|
|
24546
24866
|
|
|
24547
24867
|
```java
|
|
24868
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
24869
|
+
import com.mashape.unirest.http.Unirest;
|
|
24870
|
+
|
|
24548
24871
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/inboxes/inbox_id")
|
|
24549
24872
|
.header("Authorization", "Bearer <api_key>")
|
|
24550
24873
|
.header("Content-Type", "application/json")
|
|
@@ -24554,6 +24877,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/po
|
|
|
24554
24877
|
|
|
24555
24878
|
```php
|
|
24556
24879
|
<?php
|
|
24880
|
+
require_once('vendor/autoload.php');
|
|
24557
24881
|
|
|
24558
24882
|
$client = new \GuzzleHttp\Client();
|
|
24559
24883
|
|
|
@@ -24569,6 +24893,8 @@ echo $response->getBody();
|
|
|
24569
24893
|
```
|
|
24570
24894
|
|
|
24571
24895
|
```csharp
|
|
24896
|
+
using RestSharp;
|
|
24897
|
+
|
|
24572
24898
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/inboxes/inbox_id");
|
|
24573
24899
|
var request = new RestRequest(Method.GET);
|
|
24574
24900
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -24718,7 +25044,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
24718
25044
|
|
|
24719
25045
|
async function main() {
|
|
24720
25046
|
const client = new AgentMailClient({
|
|
24721
|
-
environment: AgentMailEnvironment.
|
|
25047
|
+
environment: AgentMailEnvironment.Prod,
|
|
24722
25048
|
apiKey: "YOUR_TOKEN_HERE",
|
|
24723
25049
|
});
|
|
24724
25050
|
await client.pods.inboxes.create("pod_id", {});
|
|
@@ -24732,7 +25058,7 @@ from agentmail import AgentMail
|
|
|
24732
25058
|
from agentmail.environment import AgentMailEnvironment
|
|
24733
25059
|
|
|
24734
25060
|
client = AgentMail(
|
|
24735
|
-
environment=AgentMailEnvironment.
|
|
25061
|
+
environment=AgentMailEnvironment.PROD,
|
|
24736
25062
|
api_key="YOUR_TOKEN_HERE"
|
|
24737
25063
|
)
|
|
24738
25064
|
|
|
@@ -24793,6 +25119,9 @@ puts response.read_body
|
|
|
24793
25119
|
```
|
|
24794
25120
|
|
|
24795
25121
|
```java
|
|
25122
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
25123
|
+
import com.mashape.unirest.http.Unirest;
|
|
25124
|
+
|
|
24796
25125
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/pods/pod_id/inboxes")
|
|
24797
25126
|
.header("Authorization", "Bearer <api_key>")
|
|
24798
25127
|
.header("Content-Type", "application/json")
|
|
@@ -24802,6 +25131,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/pods/p
|
|
|
24802
25131
|
|
|
24803
25132
|
```php
|
|
24804
25133
|
<?php
|
|
25134
|
+
require_once('vendor/autoload.php');
|
|
24805
25135
|
|
|
24806
25136
|
$client = new \GuzzleHttp\Client();
|
|
24807
25137
|
|
|
@@ -24817,6 +25147,8 @@ echo $response->getBody();
|
|
|
24817
25147
|
```
|
|
24818
25148
|
|
|
24819
25149
|
```csharp
|
|
25150
|
+
using RestSharp;
|
|
25151
|
+
|
|
24820
25152
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/inboxes");
|
|
24821
25153
|
var request = new RestRequest(Method.POST);
|
|
24822
25154
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -24918,7 +25250,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
24918
25250
|
|
|
24919
25251
|
async function main() {
|
|
24920
25252
|
const client = new AgentMailClient({
|
|
24921
|
-
environment: AgentMailEnvironment.
|
|
25253
|
+
environment: AgentMailEnvironment.Prod,
|
|
24922
25254
|
apiKey: "YOUR_TOKEN_HERE",
|
|
24923
25255
|
});
|
|
24924
25256
|
await client.pods.inboxes.delete("pod_id", "inbox_id");
|
|
@@ -24932,7 +25264,7 @@ from agentmail import AgentMail
|
|
|
24932
25264
|
from agentmail.environment import AgentMailEnvironment
|
|
24933
25265
|
|
|
24934
25266
|
client = AgentMail(
|
|
24935
|
-
environment=AgentMailEnvironment.
|
|
25267
|
+
environment=AgentMailEnvironment.PROD,
|
|
24936
25268
|
api_key="YOUR_TOKEN_HERE"
|
|
24937
25269
|
)
|
|
24938
25270
|
|
|
@@ -24988,6 +25320,9 @@ puts response.read_body
|
|
|
24988
25320
|
```
|
|
24989
25321
|
|
|
24990
25322
|
```java
|
|
25323
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
25324
|
+
import com.mashape.unirest.http.Unirest;
|
|
25325
|
+
|
|
24991
25326
|
HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/pods/pod_id/inboxes/inbox_id")
|
|
24992
25327
|
.header("Authorization", "Bearer <api_key>")
|
|
24993
25328
|
.asString();
|
|
@@ -24995,6 +25330,7 @@ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/pods
|
|
|
24995
25330
|
|
|
24996
25331
|
```php
|
|
24997
25332
|
<?php
|
|
25333
|
+
require_once('vendor/autoload.php');
|
|
24998
25334
|
|
|
24999
25335
|
$client = new \GuzzleHttp\Client();
|
|
25000
25336
|
|
|
@@ -25008,6 +25344,8 @@ echo $response->getBody();
|
|
|
25008
25344
|
```
|
|
25009
25345
|
|
|
25010
25346
|
```csharp
|
|
25347
|
+
using RestSharp;
|
|
25348
|
+
|
|
25011
25349
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/inboxes/inbox_id");
|
|
25012
25350
|
var request = new RestRequest(Method.DELETE);
|
|
25013
25351
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -25294,7 +25632,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
25294
25632
|
|
|
25295
25633
|
async function main() {
|
|
25296
25634
|
const client = new AgentMailClient({
|
|
25297
|
-
environment: AgentMailEnvironment.
|
|
25635
|
+
environment: AgentMailEnvironment.Prod,
|
|
25298
25636
|
apiKey: "YOUR_TOKEN_HERE",
|
|
25299
25637
|
});
|
|
25300
25638
|
await client.pods.threads.list("pod_id", {});
|
|
@@ -25308,7 +25646,7 @@ from agentmail import AgentMail
|
|
|
25308
25646
|
from agentmail.environment import AgentMailEnvironment
|
|
25309
25647
|
|
|
25310
25648
|
client = AgentMail(
|
|
25311
|
-
environment=AgentMailEnvironment.
|
|
25649
|
+
environment=AgentMailEnvironment.PROD,
|
|
25312
25650
|
api_key="YOUR_TOKEN_HERE"
|
|
25313
25651
|
)
|
|
25314
25652
|
|
|
@@ -25369,6 +25707,9 @@ puts response.read_body
|
|
|
25369
25707
|
```
|
|
25370
25708
|
|
|
25371
25709
|
```java
|
|
25710
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
25711
|
+
import com.mashape.unirest.http.Unirest;
|
|
25712
|
+
|
|
25372
25713
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/threads")
|
|
25373
25714
|
.header("Authorization", "Bearer <api_key>")
|
|
25374
25715
|
.header("Content-Type", "application/json")
|
|
@@ -25378,6 +25719,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/po
|
|
|
25378
25719
|
|
|
25379
25720
|
```php
|
|
25380
25721
|
<?php
|
|
25722
|
+
require_once('vendor/autoload.php');
|
|
25381
25723
|
|
|
25382
25724
|
$client = new \GuzzleHttp\Client();
|
|
25383
25725
|
|
|
@@ -25393,6 +25735,8 @@ echo $response->getBody();
|
|
|
25393
25735
|
```
|
|
25394
25736
|
|
|
25395
25737
|
```csharp
|
|
25738
|
+
using RestSharp;
|
|
25739
|
+
|
|
25396
25740
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/threads");
|
|
25397
25741
|
var request = new RestRequest(Method.GET);
|
|
25398
25742
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -25747,7 +26091,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
25747
26091
|
|
|
25748
26092
|
async function main() {
|
|
25749
26093
|
const client = new AgentMailClient({
|
|
25750
|
-
environment: AgentMailEnvironment.
|
|
26094
|
+
environment: AgentMailEnvironment.Prod,
|
|
25751
26095
|
apiKey: "YOUR_TOKEN_HERE",
|
|
25752
26096
|
});
|
|
25753
26097
|
await client.pods.threads.get("pod_id", "thread_id");
|
|
@@ -25761,7 +26105,7 @@ from agentmail import AgentMail
|
|
|
25761
26105
|
from agentmail.environment import AgentMailEnvironment
|
|
25762
26106
|
|
|
25763
26107
|
client = AgentMail(
|
|
25764
|
-
environment=AgentMailEnvironment.
|
|
26108
|
+
environment=AgentMailEnvironment.PROD,
|
|
25765
26109
|
api_key="YOUR_TOKEN_HERE"
|
|
25766
26110
|
)
|
|
25767
26111
|
|
|
@@ -25817,6 +26161,9 @@ puts response.read_body
|
|
|
25817
26161
|
```
|
|
25818
26162
|
|
|
25819
26163
|
```java
|
|
26164
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
26165
|
+
import com.mashape.unirest.http.Unirest;
|
|
26166
|
+
|
|
25820
26167
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/threads/thread_id")
|
|
25821
26168
|
.header("Authorization", "Bearer <api_key>")
|
|
25822
26169
|
.asString();
|
|
@@ -25824,6 +26171,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/po
|
|
|
25824
26171
|
|
|
25825
26172
|
```php
|
|
25826
26173
|
<?php
|
|
26174
|
+
require_once('vendor/autoload.php');
|
|
25827
26175
|
|
|
25828
26176
|
$client = new \GuzzleHttp\Client();
|
|
25829
26177
|
|
|
@@ -25837,6 +26185,8 @@ echo $response->getBody();
|
|
|
25837
26185
|
```
|
|
25838
26186
|
|
|
25839
26187
|
```csharp
|
|
26188
|
+
using RestSharp;
|
|
26189
|
+
|
|
25840
26190
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/threads/thread_id");
|
|
25841
26191
|
var request = new RestRequest(Method.GET);
|
|
25842
26192
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -25980,7 +26330,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
25980
26330
|
|
|
25981
26331
|
async function main() {
|
|
25982
26332
|
const client = new AgentMailClient({
|
|
25983
|
-
environment: AgentMailEnvironment.
|
|
26333
|
+
environment: AgentMailEnvironment.Prod,
|
|
25984
26334
|
apiKey: "YOUR_TOKEN_HERE",
|
|
25985
26335
|
});
|
|
25986
26336
|
await client.pods.threads.getAttachment("pod_id", "thread_id", "attachment_id");
|
|
@@ -25994,7 +26344,7 @@ from agentmail import AgentMail
|
|
|
25994
26344
|
from agentmail.environment import AgentMailEnvironment
|
|
25995
26345
|
|
|
25996
26346
|
client = AgentMail(
|
|
25997
|
-
environment=AgentMailEnvironment.
|
|
26347
|
+
environment=AgentMailEnvironment.PROD,
|
|
25998
26348
|
api_key="YOUR_TOKEN_HERE"
|
|
25999
26349
|
)
|
|
26000
26350
|
|
|
@@ -26051,6 +26401,9 @@ puts response.read_body
|
|
|
26051
26401
|
```
|
|
26052
26402
|
|
|
26053
26403
|
```java
|
|
26404
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
26405
|
+
import com.mashape.unirest.http.Unirest;
|
|
26406
|
+
|
|
26054
26407
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/threads/thread_id/attachments/attachment_id")
|
|
26055
26408
|
.header("Authorization", "Bearer <api_key>")
|
|
26056
26409
|
.asString();
|
|
@@ -26058,6 +26411,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/po
|
|
|
26058
26411
|
|
|
26059
26412
|
```php
|
|
26060
26413
|
<?php
|
|
26414
|
+
require_once('vendor/autoload.php');
|
|
26061
26415
|
|
|
26062
26416
|
$client = new \GuzzleHttp\Client();
|
|
26063
26417
|
|
|
@@ -26071,6 +26425,8 @@ echo $response->getBody();
|
|
|
26071
26425
|
```
|
|
26072
26426
|
|
|
26073
26427
|
```csharp
|
|
26428
|
+
using RestSharp;
|
|
26429
|
+
|
|
26074
26430
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/threads/thread_id/attachments/attachment_id");
|
|
26075
26431
|
var request = new RestRequest(Method.GET);
|
|
26076
26432
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -26335,7 +26691,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
26335
26691
|
|
|
26336
26692
|
async function main() {
|
|
26337
26693
|
const client = new AgentMailClient({
|
|
26338
|
-
environment: AgentMailEnvironment.
|
|
26694
|
+
environment: AgentMailEnvironment.Prod,
|
|
26339
26695
|
apiKey: "YOUR_TOKEN_HERE",
|
|
26340
26696
|
});
|
|
26341
26697
|
await client.pods.drafts.list("pod_id", {});
|
|
@@ -26349,7 +26705,7 @@ from agentmail import AgentMail
|
|
|
26349
26705
|
from agentmail.environment import AgentMailEnvironment
|
|
26350
26706
|
|
|
26351
26707
|
client = AgentMail(
|
|
26352
|
-
environment=AgentMailEnvironment.
|
|
26708
|
+
environment=AgentMailEnvironment.PROD,
|
|
26353
26709
|
api_key="YOUR_TOKEN_HERE"
|
|
26354
26710
|
)
|
|
26355
26711
|
|
|
@@ -26404,6 +26760,9 @@ puts response.read_body
|
|
|
26404
26760
|
```
|
|
26405
26761
|
|
|
26406
26762
|
```java
|
|
26763
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
26764
|
+
import com.mashape.unirest.http.Unirest;
|
|
26765
|
+
|
|
26407
26766
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/drafts")
|
|
26408
26767
|
.header("Authorization", "Bearer <api_key>")
|
|
26409
26768
|
.asString();
|
|
@@ -26411,6 +26770,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/po
|
|
|
26411
26770
|
|
|
26412
26771
|
```php
|
|
26413
26772
|
<?php
|
|
26773
|
+
require_once('vendor/autoload.php');
|
|
26414
26774
|
|
|
26415
26775
|
$client = new \GuzzleHttp\Client();
|
|
26416
26776
|
|
|
@@ -26424,6 +26784,8 @@ echo $response->getBody();
|
|
|
26424
26784
|
```
|
|
26425
26785
|
|
|
26426
26786
|
```csharp
|
|
26787
|
+
using RestSharp;
|
|
26788
|
+
|
|
26427
26789
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/drafts");
|
|
26428
26790
|
var request = new RestRequest(Method.GET);
|
|
26429
26791
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -26660,7 +27022,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
26660
27022
|
|
|
26661
27023
|
async function main() {
|
|
26662
27024
|
const client = new AgentMailClient({
|
|
26663
|
-
environment: AgentMailEnvironment.
|
|
27025
|
+
environment: AgentMailEnvironment.Prod,
|
|
26664
27026
|
apiKey: "YOUR_TOKEN_HERE",
|
|
26665
27027
|
});
|
|
26666
27028
|
await client.pods.drafts.get("pod_id", "draft_id");
|
|
@@ -26674,7 +27036,7 @@ from agentmail import AgentMail
|
|
|
26674
27036
|
from agentmail.environment import AgentMailEnvironment
|
|
26675
27037
|
|
|
26676
27038
|
client = AgentMail(
|
|
26677
|
-
environment=AgentMailEnvironment.
|
|
27039
|
+
environment=AgentMailEnvironment.PROD,
|
|
26678
27040
|
api_key="YOUR_TOKEN_HERE"
|
|
26679
27041
|
)
|
|
26680
27042
|
|
|
@@ -26730,6 +27092,9 @@ puts response.read_body
|
|
|
26730
27092
|
```
|
|
26731
27093
|
|
|
26732
27094
|
```java
|
|
27095
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
27096
|
+
import com.mashape.unirest.http.Unirest;
|
|
27097
|
+
|
|
26733
27098
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/drafts/draft_id")
|
|
26734
27099
|
.header("Authorization", "Bearer <api_key>")
|
|
26735
27100
|
.asString();
|
|
@@ -26737,6 +27102,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/po
|
|
|
26737
27102
|
|
|
26738
27103
|
```php
|
|
26739
27104
|
<?php
|
|
27105
|
+
require_once('vendor/autoload.php');
|
|
26740
27106
|
|
|
26741
27107
|
$client = new \GuzzleHttp\Client();
|
|
26742
27108
|
|
|
@@ -26750,6 +27116,8 @@ echo $response->getBody();
|
|
|
26750
27116
|
```
|
|
26751
27117
|
|
|
26752
27118
|
```csharp
|
|
27119
|
+
using RestSharp;
|
|
27120
|
+
|
|
26753
27121
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/drafts/draft_id");
|
|
26754
27122
|
var request = new RestRequest(Method.GET);
|
|
26755
27123
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -26893,7 +27261,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
26893
27261
|
|
|
26894
27262
|
async function main() {
|
|
26895
27263
|
const client = new AgentMailClient({
|
|
26896
|
-
environment: AgentMailEnvironment.
|
|
27264
|
+
environment: AgentMailEnvironment.Prod,
|
|
26897
27265
|
apiKey: "YOUR_TOKEN_HERE",
|
|
26898
27266
|
});
|
|
26899
27267
|
await client.pods.drafts.getAttachment("pod_id", "draft_id", "attachment_id");
|
|
@@ -26907,7 +27275,7 @@ from agentmail import AgentMail
|
|
|
26907
27275
|
from agentmail.environment import AgentMailEnvironment
|
|
26908
27276
|
|
|
26909
27277
|
client = AgentMail(
|
|
26910
|
-
environment=AgentMailEnvironment.
|
|
27278
|
+
environment=AgentMailEnvironment.PROD,
|
|
26911
27279
|
api_key="YOUR_TOKEN_HERE"
|
|
26912
27280
|
)
|
|
26913
27281
|
|
|
@@ -26964,6 +27332,9 @@ puts response.read_body
|
|
|
26964
27332
|
```
|
|
26965
27333
|
|
|
26966
27334
|
```java
|
|
27335
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
27336
|
+
import com.mashape.unirest.http.Unirest;
|
|
27337
|
+
|
|
26967
27338
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/drafts/draft_id/attachments/attachment_id")
|
|
26968
27339
|
.header("Authorization", "Bearer <api_key>")
|
|
26969
27340
|
.asString();
|
|
@@ -26971,6 +27342,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/po
|
|
|
26971
27342
|
|
|
26972
27343
|
```php
|
|
26973
27344
|
<?php
|
|
27345
|
+
require_once('vendor/autoload.php');
|
|
26974
27346
|
|
|
26975
27347
|
$client = new \GuzzleHttp\Client();
|
|
26976
27348
|
|
|
@@ -26984,6 +27356,8 @@ echo $response->getBody();
|
|
|
26984
27356
|
```
|
|
26985
27357
|
|
|
26986
27358
|
```csharp
|
|
27359
|
+
using RestSharp;
|
|
27360
|
+
|
|
26987
27361
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/drafts/draft_id/attachments/attachment_id");
|
|
26988
27362
|
var request = new RestRequest(Method.GET);
|
|
26989
27363
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -27136,7 +27510,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
27136
27510
|
|
|
27137
27511
|
async function main() {
|
|
27138
27512
|
const client = new AgentMailClient({
|
|
27139
|
-
environment: AgentMailEnvironment.
|
|
27513
|
+
environment: AgentMailEnvironment.Prod,
|
|
27140
27514
|
apiKey: "YOUR_TOKEN_HERE",
|
|
27141
27515
|
});
|
|
27142
27516
|
await client.pods.domains.list("pod_id", {});
|
|
@@ -27150,7 +27524,7 @@ from agentmail import AgentMail
|
|
|
27150
27524
|
from agentmail.environment import AgentMailEnvironment
|
|
27151
27525
|
|
|
27152
27526
|
client = AgentMail(
|
|
27153
|
-
environment=AgentMailEnvironment.
|
|
27527
|
+
environment=AgentMailEnvironment.PROD,
|
|
27154
27528
|
api_key="YOUR_TOKEN_HERE"
|
|
27155
27529
|
)
|
|
27156
27530
|
|
|
@@ -27211,6 +27585,9 @@ puts response.read_body
|
|
|
27211
27585
|
```
|
|
27212
27586
|
|
|
27213
27587
|
```java
|
|
27588
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
27589
|
+
import com.mashape.unirest.http.Unirest;
|
|
27590
|
+
|
|
27214
27591
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/domains")
|
|
27215
27592
|
.header("Authorization", "Bearer <api_key>")
|
|
27216
27593
|
.header("Content-Type", "application/json")
|
|
@@ -27220,6 +27597,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/po
|
|
|
27220
27597
|
|
|
27221
27598
|
```php
|
|
27222
27599
|
<?php
|
|
27600
|
+
require_once('vendor/autoload.php');
|
|
27223
27601
|
|
|
27224
27602
|
$client = new \GuzzleHttp\Client();
|
|
27225
27603
|
|
|
@@ -27235,6 +27613,8 @@ echo $response->getBody();
|
|
|
27235
27613
|
```
|
|
27236
27614
|
|
|
27237
27615
|
```csharp
|
|
27616
|
+
using RestSharp;
|
|
27617
|
+
|
|
27238
27618
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/domains");
|
|
27239
27619
|
var request = new RestRequest(Method.GET);
|
|
27240
27620
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -27435,7 +27815,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
27435
27815
|
|
|
27436
27816
|
async function main() {
|
|
27437
27817
|
const client = new AgentMailClient({
|
|
27438
|
-
environment: AgentMailEnvironment.
|
|
27818
|
+
environment: AgentMailEnvironment.Prod,
|
|
27439
27819
|
apiKey: "YOUR_TOKEN_HERE",
|
|
27440
27820
|
});
|
|
27441
27821
|
await client.pods.domains.create("pod_id", {
|
|
@@ -27452,7 +27832,7 @@ from agentmail import AgentMail
|
|
|
27452
27832
|
from agentmail.environment import AgentMailEnvironment
|
|
27453
27833
|
|
|
27454
27834
|
client = AgentMail(
|
|
27455
|
-
environment=AgentMailEnvironment.
|
|
27835
|
+
environment=AgentMailEnvironment.PROD,
|
|
27456
27836
|
api_key="YOUR_TOKEN_HERE"
|
|
27457
27837
|
)
|
|
27458
27838
|
|
|
@@ -27515,6 +27895,9 @@ puts response.read_body
|
|
|
27515
27895
|
```
|
|
27516
27896
|
|
|
27517
27897
|
```java
|
|
27898
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
27899
|
+
import com.mashape.unirest.http.Unirest;
|
|
27900
|
+
|
|
27518
27901
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/pods/pod_id/domains")
|
|
27519
27902
|
.header("Authorization", "Bearer <api_key>")
|
|
27520
27903
|
.header("Content-Type", "application/json")
|
|
@@ -27524,6 +27907,7 @@ HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/pods/p
|
|
|
27524
27907
|
|
|
27525
27908
|
```php
|
|
27526
27909
|
<?php
|
|
27910
|
+
require_once('vendor/autoload.php');
|
|
27527
27911
|
|
|
27528
27912
|
$client = new \GuzzleHttp\Client();
|
|
27529
27913
|
|
|
@@ -27542,6 +27926,8 @@ echo $response->getBody();
|
|
|
27542
27926
|
```
|
|
27543
27927
|
|
|
27544
27928
|
```csharp
|
|
27929
|
+
using RestSharp;
|
|
27930
|
+
|
|
27545
27931
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/domains");
|
|
27546
27932
|
var request = new RestRequest(Method.POST);
|
|
27547
27933
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -27646,7 +28032,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
27646
28032
|
|
|
27647
28033
|
async function main() {
|
|
27648
28034
|
const client = new AgentMailClient({
|
|
27649
|
-
environment: AgentMailEnvironment.
|
|
28035
|
+
environment: AgentMailEnvironment.Prod,
|
|
27650
28036
|
apiKey: "YOUR_TOKEN_HERE",
|
|
27651
28037
|
});
|
|
27652
28038
|
await client.pods.domains.delete("pod_id", "domain_id");
|
|
@@ -27660,7 +28046,7 @@ from agentmail import AgentMail
|
|
|
27660
28046
|
from agentmail.environment import AgentMailEnvironment
|
|
27661
28047
|
|
|
27662
28048
|
client = AgentMail(
|
|
27663
|
-
environment=AgentMailEnvironment.
|
|
28049
|
+
environment=AgentMailEnvironment.PROD,
|
|
27664
28050
|
api_key="YOUR_TOKEN_HERE"
|
|
27665
28051
|
)
|
|
27666
28052
|
|
|
@@ -27716,6 +28102,9 @@ puts response.read_body
|
|
|
27716
28102
|
```
|
|
27717
28103
|
|
|
27718
28104
|
```java
|
|
28105
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
28106
|
+
import com.mashape.unirest.http.Unirest;
|
|
28107
|
+
|
|
27719
28108
|
HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/pods/pod_id/domains/domain_id")
|
|
27720
28109
|
.header("Authorization", "Bearer <api_key>")
|
|
27721
28110
|
.asString();
|
|
@@ -27723,6 +28112,7 @@ HttpResponse<String> response = Unirest.delete("https://api.agentmail.to/v0/pods
|
|
|
27723
28112
|
|
|
27724
28113
|
```php
|
|
27725
28114
|
<?php
|
|
28115
|
+
require_once('vendor/autoload.php');
|
|
27726
28116
|
|
|
27727
28117
|
$client = new \GuzzleHttp\Client();
|
|
27728
28118
|
|
|
@@ -27736,6 +28126,8 @@ echo $response->getBody();
|
|
|
27736
28126
|
```
|
|
27737
28127
|
|
|
27738
28128
|
```csharp
|
|
28129
|
+
using RestSharp;
|
|
28130
|
+
|
|
27739
28131
|
var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/domains/domain_id");
|
|
27740
28132
|
var request = new RestRequest(Method.DELETE);
|
|
27741
28133
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
@@ -27826,6 +28218,21 @@ components:
|
|
|
27826
28218
|
domain_limit:
|
|
27827
28219
|
type: integer
|
|
27828
28220
|
description: Maximum number of domains allowed.
|
|
28221
|
+
billing_id:
|
|
28222
|
+
type: string
|
|
28223
|
+
description: Provider-agnostic billing customer ID.
|
|
28224
|
+
billing_type:
|
|
28225
|
+
type: string
|
|
28226
|
+
description: Billing provider type (e.g. "stripe").
|
|
28227
|
+
billing_subscription_id:
|
|
28228
|
+
type: string
|
|
28229
|
+
description: Active billing subscription ID.
|
|
28230
|
+
authentication_id:
|
|
28231
|
+
type: string
|
|
28232
|
+
description: Provider-agnostic authentication ID.
|
|
28233
|
+
authentication_type:
|
|
28234
|
+
type: string
|
|
28235
|
+
description: Authentication provider type.
|
|
27829
28236
|
updated_at:
|
|
27830
28237
|
type: string
|
|
27831
28238
|
format: date-time
|
|
@@ -27850,7 +28257,7 @@ import { AgentMailClient, AgentMailEnvironment } from "agentmail";
|
|
|
27850
28257
|
|
|
27851
28258
|
async function main() {
|
|
27852
28259
|
const client = new AgentMailClient({
|
|
27853
|
-
environment: AgentMailEnvironment.
|
|
28260
|
+
environment: AgentMailEnvironment.Prod,
|
|
27854
28261
|
apiKey: "YOUR_TOKEN_HERE",
|
|
27855
28262
|
});
|
|
27856
28263
|
await client.organizations.get();
|
|
@@ -27864,7 +28271,7 @@ from agentmail import AgentMail
|
|
|
27864
28271
|
from agentmail.environment import AgentMailEnvironment
|
|
27865
28272
|
|
|
27866
28273
|
client = AgentMail(
|
|
27867
|
-
environment=AgentMailEnvironment.
|
|
28274
|
+
environment=AgentMailEnvironment.PROD,
|
|
27868
28275
|
api_key="YOUR_TOKEN_HERE"
|
|
27869
28276
|
)
|
|
27870
28277
|
|
|
@@ -27923,6 +28330,9 @@ puts response.read_body
|
|
|
27923
28330
|
```
|
|
27924
28331
|
|
|
27925
28332
|
```java
|
|
28333
|
+
import com.mashape.unirest.http.HttpResponse;
|
|
28334
|
+
import com.mashape.unirest.http.Unirest;
|
|
28335
|
+
|
|
27926
28336
|
HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/organizations")
|
|
27927
28337
|
.header("Authorization", "Bearer <api_key>")
|
|
27928
28338
|
.header("Content-Type", "application/json")
|
|
@@ -27932,6 +28342,7 @@ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/organiz
|
|
|
27932
28342
|
|
|
27933
28343
|
```php
|
|
27934
28344
|
<?php
|
|
28345
|
+
require_once('vendor/autoload.php');
|
|
27935
28346
|
|
|
27936
28347
|
$client = new \GuzzleHttp\Client();
|
|
27937
28348
|
|
|
@@ -27947,6 +28358,8 @@ echo $response->getBody();
|
|
|
27947
28358
|
```
|
|
27948
28359
|
|
|
27949
28360
|
```csharp
|
|
28361
|
+
using RestSharp;
|
|
28362
|
+
|
|
27950
28363
|
var client = new RestClient("https://api.agentmail.to/v0/organizations");
|
|
27951
28364
|
var request = new RestRequest(Method.GET);
|
|
27952
28365
|
request.AddHeader("Authorization", "Bearer <api_key>");
|