Skip to main content

Subscribers / Add subscribers

Add subscribers

Method: POST

https://api-prod.enotifiers.com/api/V1/service/subscriber/add

Request details

API Parameters
Parameter Description Example
email
string
The email address of the subscriber example@gmail.com
name
string
The name of the subscriber test
groupName
string
The group name to which the subscriber belongs testinGrp
source
string
The source from which the subscriber was added Enotifiers

Curl code

Tabbed Interface
curl --location 'https://api-prod.enotifiers.com/api/V1/subscribers/add_one' \
      --header 'accept: application/json' \
      --header 'Content-Type: application/json' \
      --header 'Authorization: Basic {{Authorization}}' \
      --data-raw '{
            "email": "abcde@gmail.com",
            "name": "test2",
            "groupName": "testinGrp",
            "source": "Enotifiers"
      }'

Success response details

API Parameters
Parameter Description Example
status
String
Indicates the success status
of the API operation
success
code
String
Provides the status code indicating
the success of the request.
200
message
String
A descriptive message confirming
the success of the operation.
Subscriber added successfully
data.email
String
The email address of the subscriber example@gmail.com
data.name
String
The name of the subscriber test
data.dateTime
String
The date and time when the subscriber was added "2024-04-10 11:56:27.610009"
data.source
String
The source from which the subscriber was added Enotifiers
{
    "status": "success",
    "code": "200",
    "message": "Subscriber added successfully",
    "data": {
        "email": "example@gmail.com",
        "name": "test",
        "dateTime": "2024-04-01 11:44:52.025573",
        "source": "Enotifiers"
    }

Failure response details

API Parameters
Parameter Description Example
status
String
Indicates the overall status
of the API request.
failed
code
String
Provides the HTTP status code
corresponding to the failure.
400
message
String
Provides the reason for the error Duplicate value
data.error
String
Specific error message providing
more context about the issue.
Subscriber already exists
{
    "status": "failed",
    "code": "400",
    "message": "Duplicate value.",
    "data": {
        "error": "Subscriber already exists."
    }
}
Document

Policy

Terms of Use

policy

© 2024 E-Notifiers. All rights reserved.