Create Subaccount

Overview

Create subaccount allows Partners to create a subaccount within the CiiRUS-API. Subaccounts are typically used to manage and send emails from specific domains or for distinct purposes. This API enables Partners to programmatically create a subaccount for their email management needs.

Endpoints Available

MethodEndpointDescription
POSTv2024.07.31/emails/subaccountCreates a subaccount with specific configurations and settings

Body Parameters

ParameterRequired / OptionalDescriptionData Type
"sending_domain"RequiredSpecifies the domain for sending emails from the subaccountstring
"daily_send_limit"RequiredSets the daily email sending cap for the subaccount in terms of the number of emailsint
"approved"RequiredIndicates whether the subaccount is approved for sending emails, with true for approved and false for unapproved statusboolean

Response Definition

Response ItemDescriptionData Type
"user_id"The unique identifier associated with the user who owns the subaccount.int
"sending_domain"The email domain used for sending emails through the subaccount.string
"subaccount_id"The unique identifier assigned to the subaccount.string
"dns_value"The verification value used for DNS configuration to authenticate the subaccount.string
"dns_validation_status"Indicates whether the DNS validation was successfully completed (true or false).boolean
"dkim_value"The DKIM (DomainKeys Identified Mail) public key value used for email authentication.string
"dkim_validation_status"Indicates whether the DKIM validation was successfully completed (true or false).boolean
"spf_value"The SPF (Sender Policy Framework) record used for email authentication.string
"spf_validation_status"Indicates whether the SPF validation was successfully completed (true or false).boolean
"daily_send_limit"The maximum number of emails the subaccount can send per day.int
"approved"Indicates whether the subaccount is approved for sending emails (true or false).boolean
"reputation"The reputation score of the subaccount, typically used to measure email sending quality.int
"sent_monthly"The number of emails sent from the subaccount in the past month.int
"sent_weekly"The number of emails sent from the subaccount in the past week.int
"sent_total"The total number of emails ever sent from the subaccount.int
"name"The name assigned to the subaccount.string
"created_at"The date and time when the user's account was createddate-time
"management_company_user_id"The unique identifier of the management company associated with the subaccount.int

Sample Request

curl --location 'https://api.ciiruspartners.com/v2024.07.31/emails/subaccount' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic {APIUsername:APIPassword}' \
--data-raw '{
  "approved": true,
  "sending_domain": "[email protected]",
  "daily_send_limit": 6942
}'

Sample Response

{
  "user_id": 42330,
  "sending_domain": "ciirus.com",
  "subaccount_id": "subaccount-42330-partner-api",
  "dns_value": "mandrill_verify.1LJTwMFrjPZ7EY2KX1_D_V",
  "dns_validation_status": true,
  "dkim_value": "v=DKIM1; k=rsa; p=L9TkQB1gZJ2cZnSe1Kf/dUM3LShVe9jtiRhzlEruVNbZvBtWeSj6+D9XKm/19D2NO5oyG4z3btaJqYbNZl+EJalB07eZy6tzVTeKfQs62crRbBnvUZbP9iLQlSbRIBjraPe9Ij5aPhQWdRlNBbUWbVjoVH39G9Mz2jbJlqG1e8h4r7gBDAQUECAHw;",
  "dkim_validation_status": true,
  "spf_value": "v=spf1 include:spf.mandrillapp.com ?all",
  "spf_validation_status": true,
  "daily_send_limit": 69,
  "approved": true,
  "reputation": 0,
  "sent_monthly": 0,
  "sent_weekly": 0,
  "sent_total": 0,
  "name": "subaccount-42330-partner-api",
  "created_at": "2022-08-11T12:00:24.61804",
  "management_company_user_id": 42330
}