Overview
Create a new endpoint to handle incoming emails. Endpoints support three types: webhooks (HTTP POST), email forwarding (single recipient), and email groups (multiple recipients).Authentication
Bearer token for API authentication. Format:
Bearer YOUR_API_KEY
Request Body
User-friendly name for the endpoint.
Type of endpoint. Valid values:
webhook
, email
, email_group
.Configuration specific to the endpoint type. Structure varies by type (see examples below).
Optional description of the endpoint’s purpose.
Configuration by Type
Webhook Configuration
The URL where webhook payloads will be sent via HTTP POST.
Optional secret for webhook signature verification.
Optional custom headers to include in webhook requests.
Request timeout in seconds. Range: 1-300.
Number of retry attempts for failed requests. Range: 0-10.
Email Forward Configuration
Email address where emails will be forwarded.
Whether to include attachments in forwarded emails.
Optional prefix to add to the subject line of forwarded emails.
Optional custom from address for forwarded emails. Must be a verified domain email.
Optional display name to show in the from field (e.g., “Support Team”).
Email Group Configuration
Array of email addresses where emails will be forwarded. Maximum 50 addresses.
Whether to include attachments in forwarded emails.
Optional prefix to add to the subject line of forwarded emails.
Optional custom from address for forwarded emails. Must be a verified domain email.
Optional display name to show in the from field (e.g., “Support Team”).
Response
Response Fields
Unique identifier for the created endpoint.
User-friendly name for the endpoint.
Type of endpoint:
webhook
, email
, or email_group
.Configuration object specific to the endpoint type.
Whether the endpoint is active (always
true
for new endpoints).Description of the endpoint.
ID of the user who owns this endpoint.
ISO 8601 timestamp when the endpoint was created.
ISO 8601 timestamp when the endpoint was last updated.
Array of email addresses (only for
email_group
type endpoints).Initial delivery statistics (all zeros for new endpoints).
Examples
Create Webhook Endpoint
Create Email Forward Endpoint
Create Email Group Endpoint
Error Responses
400 Bad Request
400 Bad Request
400 Bad Request - Invalid Type
400 Bad Request - Invalid Type
400 Bad Request - Invalid Configuration
400 Bad Request - Invalid Configuration
401 Unauthorized
401 Unauthorized
500 Internal Server Error
500 Internal Server Error
Configuration Validation
Each endpoint type has specific configuration requirements. The API will validate these before creating the endpoint.
url
is required and must be a valid URLtimeout
must be between 1-300 secondsretryAttempts
must be between 0-10headers
must be a valid object
✅ Documentation Verified - This endpoint documentation has been verified against the actual API implementation (
/api/v2/endpoints
) and type definitions. All parameters, validation rules, response formats, and examples match the current codebase as of January 2025.