Maildesk API
  1. Subscribers
Maildesk API
  • Subscribers
    • Get a subscriber by ID
      GET
    • Update a subscriber
      PUT
    • Delete a subscriber
      DELETE
    • Get all subscribers
      GET
    • Create a new subscriber
      POST
  • Tags
    • Get all tags
      GET
    • Create a new tag
      POST
    • Get a tag by ID
      GET
    • Update a tag
      PUT
    • Delete a tag
      DELETE
  1. Subscribers

Create a new subscriber

POST
/api/subscribers
Create a new subscriber with the provided details
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.maildesk.io/api/subscribers' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "john.doe@example.com",
    "firstName": "John",
    "lastName": "Doe",
    "tags": [
        "tag1",
        "tag2"
    ]
}'
Response Response Example
{
    "subscriber": {
        "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
        "email": "john.doe@example.com",
        "firstName": "John",
        "lastName": "Doe",
        "status": "CONFIRMED",
        "tags": [
            "Newsletter",
            "Premium"
        ],
        "createdAt": "2024-03-20T10:00:00.000Z"
    }
}

Request

Body Params application/json
email
string 
required
Email address of the contact
Example:
john.doe@example.com
firstName
string 
required
First name of the contact
Example:
John
lastName
string 
required
Last name of the contact
Example:
Doe
tags
array[string]
optional
Array of tag IDs associated with the contact
Example:
["tag1","tag2"]
Examples

Responses

🟢201Created
application/json
Subscriber created successfully
Body
subscriber
object 
required
Contact information
id
string 
required
Unique identifier of the contact
Example:
01ARZ3NDEKTSV4RRFFQ69G5FAV
email
string 
required
Email address of the contact
Example:
john.doe@example.com
firstName
string 
required
First name of the contact
Example:
John
lastName
string 
required
Last name of the contact
Example:
Doe
status
enum<string> 
required
Subscription status of the contact
Allowed values:
CONFIRMEDUNSUBSCRIBEDUNCONFIRMEDPERMANENT_BOUNCE
Example:
CONFIRMED
tags
array[string]
required
Array of tag names associated with the contact
Example:
["Newsletter","Premium"]
createdAt
string 
required
Creation timestamp
Example:
2024-03-20T10:00:00.000Z
🟠401Unauthorized
Modified at 2025-06-28 19:47:25
Previous
Get all subscribers
Next
Get all tags
Built with