> ## Documentation Index
> Fetch the complete documentation index at: https://docs.topsort.com/llms.txt
> Use this file to discover all available pages before exploring further.

# New: Filtering API and Schema Validator

> This week, the Topsort team released new features related to API Logs to make it easier for developers to troubleshoot issues. Now you can filter errors by API and see the cause of an error quicker with our Schema Validator

export const ChangelogActions = () => {
  return <>
      <style>{`
        .changelog-actions {
          display: flex;
          justify-content: center;
          gap: 12px;
          margin-top: 2rem;
          padding-top: 1.5rem;
          border-top: 1px solid #e5e7eb;
        }
        
        [data-theme="dark"] .changelog-actions {
          border-top-color: #374151;
        }
        
        .changelog-btn {
          display: inline-flex;
          align-items: center;
          gap: 6px;
          padding: 8px 16px;
          border-radius: 9999px;
          border: 1px solid #d1d5db;
          background: transparent;
          color: #6b7280;
          font-size: 14px;
          cursor: pointer;
          transition: all 0.2s ease;
        }
        
        .changelog-btn:hover {
          border-color: #9ca3af;
          background: #f9fafb;
        }
        
        [data-theme="dark"] .changelog-btn {
          border-color: #4b5563;
          color: #9ca3af;
        }
        
        [data-theme="dark"] .changelog-btn:hover {
          border-color: #6b7280;
          background: #1f2937;
        }
      `}</style>
      <div className="changelog-actions">
        <button className="changelog-btn" onClick={() => {
    const btn = event.target.closest("button");
    btn.innerHTML = "❤️ Like";
    btn.style.borderColor = "#ec4899";
  }}>
          🤍 Like
        </button>
        <button className="changelog-btn" onClick={() => {
    const btn = event.target.closest("button");
    navigator.clipboard.writeText(window.location.href);
    const originalContent = btn.innerHTML;
    btn.innerHTML = "✓ Copied";
    btn.style.borderColor = "#22c55e";
    btn.style.color = "#22c55e";
    setTimeout(() => {
      btn.innerHTML = originalContent;
      btn.style.borderColor = "";
      btn.style.color = "";
    }, 2000);
  }}>
          ↗ Share
        </button>
      </div>
    </>;
};

<div style={{ display: "flex", gap: "8px", flexWrap: "wrap", marginBottom: "16px" }}>
  <Badge color="gray" size="sm" icon="calendar">September 22, 2022</Badge>
  <Badge color="purple" size="sm" icon="server">Ad Server</Badge>
  <Badge color="orange" size="sm" icon="arrow-up">Improvement</Badge>
</div>

This week, the Topsort team released new features related to API Logs to make it easier for developers to troubleshoot issues. Now you can **filter errors by API** and see the cause of an error quicker with our **Schema Validator**

## Release Notes

### Filtering by API

Filter all the errors by the API to see the origin faster.

<Frame>
  <img src="https://mintcdn.com/topsort/IPYqfFwUqBX3axYX/images/changelog/68042d3-Filter_by_API.webp?fit=max&auto=format&n=IPYqfFwUqBX3axYX&q=85&s=9ac3a4c49ff545ce21910c5c9a1f360b" alt="filter by API" width="974" height="566" data-path="images/changelog/68042d3-Filter_by_API.webp" />
</Frame>

### Schema validator

We've implemented a schema validator for the API calls to show you more detailed error logs. When the request you made is different from the pattern we expect, you'll see the notification with a detailed description of the cause of the error, and clicking on the alert will take you to the relevant part of your request.

For example, in auction requests, we expect the product type to be an array.  Here's how the schema validator will show any errors in your request

<Frame>
  <img src="https://mintcdn.com/topsort/IPYqfFwUqBX3axYX/images/changelog/87895af-Schema-validator-notification.webp?fit=max&auto=format&n=IPYqfFwUqBX3axYX&q=85&s=6055aa20fbc63fabcafa766a39a1955c" alt="schema validator" width="1353" height="906" data-path="images/changelog/87895af-Schema-validator-notification.webp" />
</Frame>

Clicking on the alert will take you to your request

<Frame>
  <img src="https://mintcdn.com/topsort/IPYqfFwUqBX3axYX/images/changelog/b5dedc7-Schema-validator-error.webp?fit=max&auto=format&n=IPYqfFwUqBX3axYX&q=85&s=888333964b0a326a1e61f4b85c4f528d" alt="schema validator error" width="1297" height="463" data-path="images/changelog/b5dedc7-Schema-validator-error.webp" />
</Frame>

<ChangelogActions />
