You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -21,14 +24,23 @@ All code examples can be found on the [Mailjet Documentation][doc].
21
24
22
25
## Getting Started
23
26
24
-
First, make sure you have an API key, and an API secret.
25
-
Once you got them, save them in your environment:
27
+
Grab your API and Secret Keys [here][api_credential]. You need them for authentication when using the Email API:
26
28
27
29
```bash
28
30
export MJ_APIKEY_PUBLIC='your api key'
29
31
export MJ_APIKEY_PRIVATE='your api secret'
30
32
```
31
33
34
+
## API Versioning
35
+
36
+
The Mailjet API is spread among three distinct versions:
37
+
38
+
-`v3` - The Email API
39
+
-`v3.1` - Email Send API v3.1, which is the latest version of our Send API
40
+
-`v4` - SMS API
41
+
42
+
Since most Email API endpoints are located under `v3`, it is set as the default one and does not need to be specified when making your request. For the others you need to specify the version using `version`. For example, if using Send API `v3.1`:
**NOTE**: `version` reflects the API version in the URL (`https://api.mailjet.com/{{ version }}/REST/`). It is `'v3'` by default and can be used to select another API version (for example `v3.1` for the new send API).
57
+
For additional information refer to our [API Reference](https://dev.preprod.mailjet.com/reference/overview/versioning/).
0 commit comments