Skip to content

Commit 37374bd

Browse files
author
Atanas Damyanliev
authored
add info on US API URL
1 parent aaa0ec8 commit 37374bd

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ MailjetClient client = new MailjetClient(System.getenv("MJ_APIKEY_PUBLIC"), Syst
7373

7474
For additional information refer to our [API Reference](https://dev.preprod.mailjet.com/reference/overview/versioning/).
7575

76+
### Base URL
77+
78+
The default base domain name for the Mailjet API is api.mailjet.com. You can modify this base URL by adding a different URL in `ClientOptions`:
79+
80+
```java
81+
MailjetClient client = new MailjetClient(System.getenv("MJ_APIKEY_PUBLIC"), System.getenv("MJ_APIKEY_PRIVATE"), new ClientOptions("v3","https://api.us.mailjet.com"));
82+
```
83+
84+
If your account has been moved to Mailjet's **US architecture**, the URL you need to add is `https://api.us.mailjet.com`.
85+
7686
## `GET` requests
7787

7888
### List all your contacts

0 commit comments

Comments
 (0)