« Back to Documentation Overview

get_campaign_domain

Section: Campaigns
Version: 1.5.0


Check if any account domain is assigned to campaign. Assigned domain will be used in links in messages sent from this campaign.


Parameters
stringAPI_KEY
object
stringcampaignCAMPAIGN_ID
Return Value
objectACCOUNT_DOMAIN_ID
stringcreated_on2009-01-01 00:00:00
stringdomainemailaddress.com

Example Request JSON

[
    "API_KEY",
    {
        "campaign": "CAMPAIGN_ID"
    }
]

Example Response JSON

{
    "ACCOUNT_DOMAIN_ID": {
        "created_on": "2009-01-01 00:00:00",
        "domain": "emailaddress.com"
    }
}

Example Error Response JSON

{
    "code": -1,
    "message": "Missing campaign"
}
Method-specific Errors
Missing campaign
API-wide Errors
API key verification failed API key verification failed
API client IP not allowed API client IP not allowed
Invalid params Attribute params must be reference to hash