---
updatedAt: 2025-03-20T20:38:34.000Z
agentTools:
  projectIndex: https://developer.sovrn.com/llms.txt
---

# Sovrn Advertising Reporting API

<HTMLBlock>{`
<body class="container">
  <header class="header">
    <h2 class="h2">Authorization</h2>
    <div class="border"></div>
  </header>
  <section>
    <article class="article">
      <p>
        The Sovrn Advertising Reporting API requires an Authorization header to
        be added to each request, ensuring that we keep our data secure.
      </p>
      <p>
        There are currently no limitations on how many API keys can be created
        on your account; however, any one of the generated keys will grant you
        access to all Advertising reporting data associated with your Sovrn
        account.
      </p>
    </article>
    <div class="divider">
      ⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼
    </div>
    <article class="article">
      <h3>Managing API Keys on your Account</h3>
      <p>To create/manage your API key(s)</p>
      <ul>
        <li>
          Log into the
          <a class="link" href="http://platform.sovrn.com" target="_blank"
            >Sovrn Platform</a
          >
        </li>
        <li>
          Navigate to
          <a
            class="link"
            href="https://platform.sovrn.com/account/api-keys"
            target="_blank"
            >API Keys</a
          >, found in the Account menu
        </li>
        <li>Select the “+ API Key” button located in the top right corner</li>
        <li>Enter a name for the new API key, then select “Create”</li>
        <li>
          The newly generated API key will now be displayed, ensure you save the
          key before closing the window as this will be the only time you will
          be able to view the value
        </li>
        <li>
          API key entries can be deleted at any time by selecting the trashcan
          icon located on the right side of the entry
        </li>
      </ul>
      <p>
        Note: You must be the account owner to create or delete API keys. To
        determine the email address of the current account owner, visit
        <a
          class="link"
          href="https://platform.sovrn.com/account/manage-users"
          target="_blank"
          >Manage users</a
        >
        in the Sovrn Platform and locate the “original user.” If you need to
        change the account owner, please
        <a
          class="link"
          href="https://platform.sovrn.com/account/manage-users"
          target="_blank"
          >contact support</a
        >.
      </p>
    </article>
    <div class="divider">
      ⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼
    </div>
    <article class="article">
      <h3>How to Provide the API Key to Pass Authentication</h3>
      <p>
        The API Key is provided as part of the request header, as a key/value
        pair. The header name is “x-api-key” and the value is the API Key that
        the publisher has generated in the platform. For example:
      </p>
      <p class="example">x-api-key: {API KEY}</p>
      <p>
        The API Key will be a 7-character sequence followed by a ‘.’ and then a
        32-character UUID. For example:
      </p>
      <p class="example">1234567.a34d7eb0-abfc-44fea-9fcc-7es42be45663</p>
      <p>
        Please ensure that the word “x-api-key” is included as text, plus a
        space, before passing the value of your APIKey.
      </p>
    </article>
    <div class="divider">
      ⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼
    </div>
    <article class="article">
      <h3>Example Request</h3>
      <p>
        Below is an example CURL request that you can run to verify everything
        is working correctly:
      </p>
      <div class="code_block">
        <code>
          curl --request GET \ --url
          'https://api.sovrn.com/reporting/advertising/publishers/262681/domains/sovrntest.com/account?start=2021-08-01T00%3A00%3A00Z&end=2021-09-02T00%3A00%3A00Z&metrics=publisherRevenue&dimensions=domain%2CzoneId'
          \ --header 'x-api-key: prefix1.XXXXXXXX-YYYY-ZZZZ-AAAA-BBBBBBBBBBBB'
        </code>
      </div>
    </article>
  </section>
</body>

<style>
  .container {
    margin: 16px 32px;
    font-family: Arial, Helvetica, sans-serif;
  }
  .header {
    padding-bottom: 16px
  }
  .h2 {
    font-weight: bolder;
  }
  .border {
    border-bottom: 8px solid rgb(255, 212, 43);
    width: 10%;
  }
  .article {
    width: 70%;
  }
  .divider {
    color: rgb(255, 212, 43);
  }
  .code_block {
    border: 1px solid #000;
    padding: 16px;
  }
  .example {
    background-color: #e0e0e0;
    width: max-content;
  }
  .link {
    color: rgb(60, 76, 252);
    text-decoration: underline rgba(60, 76, 252, 0.4);
  }
  a.link:hover  {
    color: rgb(60, 76, 252) !important;
    text-decoration: underline rgba(60, 76, 252, 0.4) !important;
  }
</style>
`}</HTMLBlock>