Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time

REST API: POST senderdomains

This method is used to create a new senderdomain with the REST API. It uses an HTTP POST request to the following address:

After a successful call the ID of the created senderdomain is returned.

Available parameters

Parameter Description
name The domain that you want to send emails with.
tracking (optional) The domain that you want to register impressions on.
bounce (optional) The dommain that you want to register bounces on.

PHP example

The following PHP script demonstrates how to use the API method:

// dependencies

// change this into your access token
$api = new CopernicaRestAPI("your-access-token", 3);

// data to be sent to the api
$data = array(
    'name'   =>  '',
    'tracking'   =>  '',
    'bounce'   =>  '',

// do the call
$api->post("senderdomains", $data);

The example above requires the CopernicaRestApi class.

More information