# Mailjet Integration via LowCodeAPI

**Last Updated**: February 10, 2026

## Overview
Email service

**Categories:**
- {'id': 'transactional-email', 'name': 'Transactional Email'}

## Base Endpoint
https://api.lowcodeapi.com/mailjet

**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`

## Authentication
**Type:** TOKEN

**Official Documentation:** https://dev.mailjet.com/email/reference/

## URL Format (Important)

LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.

### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`

### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`

### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider

## API Categories

## Common Endpoints

### Send message v3

**Method:** POST
**LowCodeAPI Path:** /v3/send

**New Format URL:**
https://api.lowcodeapi.com/mailjet/v3/send?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/mailjet/v3/send?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| Attachments | array |  |
| Bcc | string |  |
| Cc | string |  |
| FromEmail | string |  |
| FromName | string |  |
| Headers | object |  |
| Html-part | string |  |
| Mj-CustomID | string |  |
| Mj-EventPayload | string |  |
| Mj-TemplateErrorDeliver | string |  |
| Mj-TemplateErrorReporting | string |  |
| Mj-TemplateID | number |  |
| Mj-TemplateLanguage | boolean |  |
| Mj-campaign | string |  |
| Mj-deduplicatecampaign | number |  |
| Mj-prio | number |  |
| Mj-trackopen | number |  |
| Recipients | array |  |
| Sender | boolean |  |
| Subject | string |  |
| Text-part | string |  |
| To | string |  |
| Vars | object |  |
| inline_attachments | array |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/mailjet/v3/send?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://dev.mailjet.com/email/reference/send-emails#v3_post_send

### Send message v3.1

**Method:** POST
**LowCodeAPI Path:** /v3.1/send

**New Format URL:**
https://api.lowcodeapi.com/mailjet/v3.1/send?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/mailjet/v3.1/send?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| AdvanceErrorHandling | boolean |  |
| Globals | object |  |
| Message | array |  |
| SandboxMode | boolean |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/mailjet/v3.1/send?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://dev.mailjet.com/email/reference/send-emails#v3_1_post_send

### List contacts

**Method:** GET
**LowCodeAPI Path:** /v3/REST/contact

**New Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contact?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contact?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| IsExcludedFromCampaigns | boolean |  |
| Limit | number |  |
| Offset | number |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/mailjet/v3/REST/contact?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://dev.mailjet.com/email/reference/contacts/contact#v3_get_contact

### Create contact

**Method:** POST
**LowCodeAPI Path:** /v3/REST/contact

**New Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contact?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contact?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| Email | string |  |
| IsExcludedFromCampaigns | boolean |  |
| Name | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/mailjet/v3/REST/contact?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://dev.mailjet.com/email/reference/contacts/contact#v3_post_contact

### Get contact

**Method:** GET
**LowCodeAPI Path:** /v3/REST/contact/{contact_id}

**New Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contact/{contact_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contact/contact_id?contact_id={contact_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| contact_id | number |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/mailjet/v3/REST/contact/{contact_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://dev.mailjet.com/email/reference/contacts/contact#v3_get_contact_contact_ID

### Update contact

**Method:** PUT
**LowCodeAPI Path:** /v3/REST/contact/{contact_id}

**New Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contact/{contact_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contact/contact_id?contact_id={contact_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| contact_id | number |  |

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| IsExcludedFromCampaigns | boolean |  |
| Name | string |  |

**Example Request (New Format):**

```bash
curl -X PUT 'https://api.lowcodeapi.com/mailjet/v3/REST/contact/{contact_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://dev.mailjet.com/email/reference/contacts/contact#v3_put_contact_contact_ID

### Delete contact

**Method:** DELETE
**LowCodeAPI Path:** /v3/REST/contact/{contact_id}

**New Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contact/{contact_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contact/contact_id?contact_id={contact_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| contact_id | number |  |

**Example Request (New Format):**

```bash
curl -X DELETE 'https://api.lowcodeapi.com/mailjet/v3/REST/contact/{contact_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://dev.mailjet.com/email/reference/contacts/contact#v3_delete_contact_contact_ID

### Get contact data

**Method:** GET
**LowCodeAPI Path:** /v3/REST/contactdata/{contact_id}

**New Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contactdata/{contact_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contactdata/contact_id?contact_id={contact_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| contact_id | number |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/mailjet/v3/REST/contactdata/{contact_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://dev.mailjet.com/email/reference/contacts/contact-properties#v3_get_contactdata_contact_ID

### Update contact data

**Method:** PUT
**LowCodeAPI Path:** /v3/REST/contactdata/{contact_id}

**New Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contactdata/{contact_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contactdata/contact_id?contact_id={contact_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| contact_id | number |  |

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| Data | array |  |

**Example Request (New Format):**

```bash
curl -X PUT 'https://api.lowcodeapi.com/mailjet/v3/REST/contactdata/{contact_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://dev.mailjet.com/email/reference/contacts/contact-properties#v3_put_contactdata_contact_ID

### List contact lists

**Method:** GET
**LowCodeAPI Path:** /v3/REST/contactslist

**New Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contactslist?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/mailjet/v3/REST/contactslist?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| Limit | number |  |
| Offset | number |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/mailjet/v3/REST/contactslist?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://dev.mailjet.com/email/reference/contacts/contacts-list#v3_get_contactslist


## Usage Examples

### Example 1: Send an Email

```bash
# Send an email - no path parameters needed
curl -X POST "https://api.lowcodeapi.com/mailjet/send?api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "[email protected]",
    "to": "[email protected]",
    "subject": "Test Email",
    "text": "This is a test email from Mailjet"
  }'
```

### Example 2: List Sent Emails

```bash
# Get list of sent emails
curl -X GET "https://api.lowcodeapi.com/mailjet/messages?api_token=YOUR_API_TOKEN"
```

### Example 3: Get Email Details

```bash
# Get specific message by ID
curl -X GET "https://api.lowcodeapi.com/mailjet/messages/{MESSAGE_ID}?api_token=YOUR_API_TOKEN"
```

## Error Handling

LowCodeAPI returns standard HTTP status codes. Common errors:

| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |

All error responses include error details:

```json
{
  "data": {
    "error": {
      "message": "Error description",
      "code": "ERROR_CODE"
    }
  }
}
```

## Complete Endpoint Reference

| Endpoint | Method | Category |
|----------|--------|----------|
| Send message v3 | POST | Send Emails |
| Send message v3.1 | POST | Send Emails |
| List contacts | GET | Contacts |
| Create contact | POST | Contacts |
| Get contact | GET | Contacts |
| Update contact | PUT | Contacts |
| Delete contact | DELETE | Contacts |
| Get contact data | GET | Contacts |
| Update contact data | PUT | Contacts |
| List contact lists | GET | Lists |
| Create contact list | POST | Lists |
| Get contact list | GET | Lists |
| Update contact list | PUT | Lists |
| Delete contact list | DELETE | Lists |
| Manage contact in list | POST | Lists |
| List templates | GET | Templates |
| Create template | POST | Templates |
| Get template | GET | Templates |
| Update template | PUT | Templates |
| Delete template | DELETE | Templates |
| Get template content | GET | Templates |
| Update template content | PUT | Templates |
| List senders | GET | Senders |
| Create sender | POST | Senders |
| Get sender | GET | Senders |
| Update sender | PUT | Senders |
| Delete sender | DELETE | Senders |
| Get statistics counters | GET | Statistics |
| Get statistics | GET | Statistics |
| List messages | GET | Messages |
| Get message | GET | Messages |
| Get message information | GET | Messages |
| List campaigns | GET | Campaigns |
| Get campaign | GET | Campaigns |

## API Definition Endpoints

You can fetch the complete API specification for this provider:

**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/mailjet/openapi'
```

**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/mailjet/definition'
```

## Response Format

All responses are wrapped in a `data` key:

```json
{
  "data": {
    // Actual response from provider (object or array)
  }
}
```