The plugin has 3 actions related to managing your custom domains added to CoAlias:
Add Domain
Check Domain
Delete Domain
Each of these actions can be called inside your workflow. On this page, we will explain how these actions work. If you haven't setup your API keys for the plugin, please read Setup API keys for CoAlias Bubble Plugin.
Add Domain
This action requires you to pass a domain or subdomain to the action. This can be a domain like mysite.com or subdomain.mysite.com.
You can access the following values that will be returned:
response success: if adding the domain succeeded. If it's successful it will be true, else it will be false. If the domain already exists this will be false.
response data_dns_correct: if the domain is pointing to the correct DNS it will be true, else it will be false.
response data_dns_ip: value is always "76.76.21.21". This is what needs to be added as an A record to the DNS.
error_returned: This will contain if an error is returned.
Check Domain
This action requires you to pass a domain or subdomain to the action. This can be a domain like mysite.com or subdomain.mysite.com. This should be a domain already added to CoAlias (using the plugin or UI).
You can access the following values that will be returned:
response success: if adding the domain check succeeded. If it's successful it will be true, else it will be false. This will also return true if the check is successful but the domain is not pointing to the correct IP.
response data_dns_correct: if the domain is pointing to the correct DNS it will be true, else it will be false.
response data_dns_ip: value is always "76.76.21.21". This is what needs to be added as an A record to the DNS.
error_returned: This will contain if an error is returned.
Delete Domain
This action requires you to pass a domain or subdomain to the action. This can be a domain like mysite.com or subdomain.mysite.com. This should be a domain already added to CoAlias (using the plugin or UI).
You can access the following values that will be returned:
response success: if deleted the domain is successful. If it's successful it will be true, else it will be false.
error_returned: This will contain if an error is returned.