API: OpenSRS

OpenSRS API Guide: Domains and SSL

Welcome to the OpenSRS API guide. Here you will find comprehensive documentation regarding our domain and SSL services. We hope this guide will help you start working with OpenSRS as quickly as possible. If you have any questions or concerns, please do not hesitate to contact help@opensrs.com

Get Started

modify (DNSSEC)

Adds or removes DS records for a given domain. To delete a single record, send a get (dnssec) request, then send a modify request with the full array minus the one you want to remove.

Examples for modify (DNSSEC)

<?xml version="1.0" encoding="UTF-8"?>
<OPS_envelope>
  <header>
    <version>0.9</version>
  </header>
  <body>
    <data_block>
      <dt_assoc>
        <item key="protocol">XCP</item>
        <item key="action">modify</item>
        <item key="object">domain</item>
        <item key="domain">yourdomain.com</item>
        <item key="attributes">
          <dt_assoc>
            <item key="data">dnssec</item>
            <item key="dnssec">
              <dt_array>
                <item key="0">
                  <dt_assoc>
                    <item key="algorithm">5</item>
                    <item key="key_tag">333</item>
                    <item key="digest_type">1</item>
                    <item key="digest">da39a3ee5e6b4b0d3255bfef95601890afd80709</item>
                  </dt_assoc>
                </item>
              </dt_array>
            </item>
          </dt_assoc>
        </item>
      </dt_assoc>
    </data_block>
  </body>
</OPS_envelope>
<?xml version='1.0' encoding="UTF-8" standalone="no"?>
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="object">DOMAIN</item>
                <item key="response_text">Command successful</item>
                <item key="action">REPLY</item>
                <item key="response_code">200</item>
                <item key="is_success">1</item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>

modify (DNSSEC)

Adds or removes DS records for a given domain. To delete a single record, send a get (dnssec) request, then send a modify request with the full array minus the one you want to remove.