Create Subaccount

Overview

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

Endpoints Available

MethodEndpointDescription
POSTv2023.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 for Supplierint
"sending_domain"The domain used for sending emailsstring
"subaccount_id"A unique subaccount identifier associated with the userstring
"dns_value"A DNS verification value used to verify domain ownershipstring
"dns_validation_status"Indicates whether DNS validation is successful (true) or not (false)boolean
"dkim_value"The DKIM (DomainKeys Identified Mail) value used for email authenticationstring
"dkim_validation_status"Indicates whether DKIM validation is successful (true) or not (false)boolean
"daily_send_limit"The maximum number of emails that can be sent per dayint
"approved"Indicates whether the user is approved (true) to send emails or not (false)boolean
"reputation"A numerical value representing the sender's reputationint
"sent_monthly"The number of emails sent in the current monthint
"sent_weekly"The number of emails sent in the current weekint
"sent_total"The total number of emails sentint
"created_at"The date and time when the user's account was createddate-time
"first_sent_at"The date and time when the first email was sent by the userdate-time
"error_message"*Error message or notificationstring
"mc_user_id"The unique identifier for Supplierint

Sample Request

curl --request POST \
     --url https://api.ciiruspartners.com/v2023.07.31/emails/subaccount \
     --data '
{
  "approved": true,
  "sending_domain": "ciirus.com",
  "daily_send_limit": 69
}
'

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": 1,
  "sent_weekly": 1,
  "sent_total": 36,
  "created_at": "2022-08-11T12:00:24.61804",
  "first_sent_at": "2022-08-11T12:06:02.98946",
  "error_message": "you already have an existing sub account.",
  "mc_user_id": 42330
}