Skip to content

Commit 54b8bd4

Browse files
author
Atanas Damyanliev
authored
add info about US base URL to readme
1 parent 673c964 commit 54b8bd4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ mailjet = Client(auth=(API_KEY, API_SECRET), version='v3.1')
5656

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

59+
### Base URL
60+
61+
The default base domain name for the Mailjet API is `api.mailjet.com`. You can modify this base URL by setting a value for `api_url` in your call:
62+
63+
```python
64+
mailjet = Client(auth=(api_key, api_secret),api_url="https://api.us.mailjet.com/")
65+
```
66+
67+
If your account has been moved to Mailjet's **US architecture**, the URL value you need to set is `https://api.us.mailjet.com`.
68+
5969
## Make a `GET` request:
6070
``` python
6171
# get all contacts

0 commit comments

Comments
 (0)