# Resend Integration via LowCodeAPI

**Last Updated**: February 10, 2026

## Overview
Email API

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

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

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

## Authentication
**Type:** TOKEN

**Official Documentation:** https://resend.com/docs/api-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 Email

**Method:** POST
**LowCodeAPI Path:** /emails

**New Format URL:**
https://api.lowcodeapi.com/resend/emails?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/resend/emails?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| text | string |  |
| attachments | array |  |
| bcc | array |  |
| cc | array |  |
| from | string |  |
| html | string |  |
| react | string |  |
| reply_to | array |  |
| subject | string |  |
| tags | array |  |
| to | array |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/resend/emails?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://resend.com/docs/api-reference/emails/send-email

### Retrieve Email

**Method:** GET
**LowCodeAPI Path:** /emails/{email_id}

**New Format URL:**
https://api.lowcodeapi.com/resend/emails/{email_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/resend/emails/email_id?email_id={email_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| email_id | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/resend/emails/{email_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://resend.com/docs/api-reference/emails/retrieve-email

### Create API key

**Method:** POST
**LowCodeAPI Path:** /api-keys

**New Format URL:**
https://api.lowcodeapi.com/resend/api-keys?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/resend/api-keys?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| domain_id | string |  |
| name | string |  |
| permission | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/resend/api-keys?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://resend.com/docs/api-reference/api-keys/create-api-key

### List API keys

**Method:** GET
**LowCodeAPI Path:** /api-keys

**New Format URL:**
https://api.lowcodeapi.com/resend/api-keys?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/resend/api-keys?api_token=YOUR_API_TOKEN

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/resend/api-keys?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://resend.com/docs/api-reference/api-keys/list-api-keys

### Delete API key

**Method:** DELETE
**LowCodeAPI Path:** /api-keys/{api_key_id}

**New Format URL:**
https://api.lowcodeapi.com/resend/api-keys/{api_key_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/resend/api-keys/api_key_id?api_key_id={api_key_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| api_key_id | string |  |

**Example Request (New Format):**

```bash
curl -X DELETE 'https://api.lowcodeapi.com/resend/api-keys/{api_key_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://resend.com/docs/api-reference/api-keys/delete-api-key

### Add Domain

**Method:** POST
**LowCodeAPI Path:** /domains

**New Format URL:**
https://api.lowcodeapi.com/resend/domains?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/resend/domains?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| name | string |  |
| region | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/resend/domains?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://resend.com/docs/api-reference/domains/create-domain

### Verify Domain

**Method:** POST
**LowCodeAPI Path:** /domains/{domain_id}/verify

**New Format URL:**
https://api.lowcodeapi.com/resend/domains/{domain_id}/verify?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/resend/domains/domain_id/verify?domain_id={domain_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| domain_id | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/resend/domains/{domain_id}/verify?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://resend.com/docs/api-reference/domains/verify-domain

### List Domains

**Method:** GET
**LowCodeAPI Path:** /domains

**New Format URL:**
https://api.lowcodeapi.com/resend/domains?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/resend/domains?api_token=YOUR_API_TOKEN

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/resend/domains?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://resend.com/docs/api-reference/domains/list-domains

### Delete Domain

**Method:** DELETE
**LowCodeAPI Path:** /domains/{domain_id}

**New Format URL:**
https://api.lowcodeapi.com/resend/domains/{domain_id}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/resend/domains/domain_id?domain_id={domain_id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| domain_id | string |  |

**Example Request (New Format):**

```bash
curl -X DELETE 'https://api.lowcodeapi.com/resend/domains/{domain_id}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://resend.com/docs/api-reference/domains/delete-domain


## Usage Examples

### Example 1: Send an Email

```bash
# Send an email - no path parameters needed
curl -X POST "https://api.lowcodeapi.com/resend/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 Resend"
  }'
```

### Example 2: List Sent Emails

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

### Example 3: Get Email Details

```bash
# Get specific message by ID
curl -X GET "https://api.lowcodeapi.com/resend/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 Email | POST | Email |
| Retrieve Email | GET | Email |
| Create API key | POST | API Keys |
| List API keys | GET | API Keys |
| Delete API key | DELETE | API Keys |
| Add Domain | POST | Domains |
| Verify Domain | POST | Domains |
| List Domains | GET | Domains |
| Delete Domain | DELETE | Domains |

## API Definition Endpoints

You can fetch the complete API specification for this provider:

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

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

## Response Format

All responses are wrapped in a `data` key:

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