<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/an-api-to-track-database-schema-changes-3ak1wg98h" -->

---
title: An API to Track Database Schema Changes | daily.dev
description: Neon has launched a new compare_schema API endpoint that enables programmatic database schema comparisons between Neon branches. The API accepts two branch IDs...
canonical: https://daily.dev/posts/an-api-to-track-database-schema-changes-3ak1wg98h
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: An API to Track Database Schema Changes | daily.dev
og:description: Neon has launched a new compare_schema API endpoint that enables programmatic database schema comparisons between Neon branches. The API accepts two branch IDs...
og:url: https://daily.dev/posts/an-api-to-track-database-schema-changes-3ak1wg98h
og:image: https://api.daily.dev/og/posts/3ak1Wg98H.png
og:image:alt: An API to Track Database Schema Changes
og:image:width: 1200
og:image:height: 630
og:locale: en
---

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

# An API to Track Database Schema Changes

**[Neon](https://daily.dev/sources/neontech)** · 4 min read · 0 upvotes · 0 comments

## Summary

Neon has launched a new compare_schema API endpoint that enables programmatic database schema comparisons between Neon branches. The API accepts two branch IDs and returns a diff highlighting additions, modifications, and deletions in database objects. It supports optional point-in-time parameters (LSN and timestamp) for historical comparisons. Primary use cases include automating schema drift detection in CI/CD pipelines and enabling agentic AI systems (like Replit Agent) to autonomously manage database migrations when deploying applications. The workflow involves applying schema changes to a Neon branch, using the API to track discrepancies, and then executing migrations in production once validated.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://neon.com/blog/api-track-schema-changes>

## Similar posts on daily.dev

- [Neon Is a Cursor Plugin](https://daily.dev/posts/neon-is-a-cursor-plugin-6dgalz6xb) · Neon · 31 upvotes · 0 comments
- [Backstage with Lakebase](https://daily.dev/posts/backstage-with-lakebase-15djpmigs) · databricks · 0 upvotes · 0 comments
- [Building Versioning for AI-Generated Apps](https://daily.dev/posts/building-versioning-for-ai-generated-apps-sunb8uird) · Neon · 2 upvotes · 0 comments
- [The New v0 Is Ready for Production Apps and Agents](https://daily.dev/posts/the-new-v0-is-ready-for-production-apps-and-agents-6vw1ozpsa) · Neon · 4 upvotes · 0 comments
- [Just landed in the Neon CLI](https://daily.dev/posts/just-landed-in-the-neon-cli-dc4bjkelu) · Neon · 5 upvotes · 2 comments

---

Tags: [#cicd](https://daily.dev/tags/cicd), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/an-api-to-track-database-schema-changes-3ak1wg98h)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"An API to Track Database Schema Changes","url":"https://daily.dev/posts/an-api-to-track-database-schema-changes-3ak1wg98h","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/an-api-to-track-database-schema-changes-3ak1wg98h"},"datePublished":"2026-07-09T06:57:46.492Z","dateModified":"2026-07-09T07:02:24.077Z","description":"Neon has launched a new compare_schema API endpoint that enables programmatic database schema comparisons between Neon branches. The API accepts two branch IDs...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2d65a5ee8c2c2e0107fa7b1a4e33dd14?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2d65a5ee8c2c2e0107fa7b1a4e33dd14?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Neon","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Neon","logo":"https://media.daily.dev/image/upload/s--65EDghou--/f_auto/v1724339118/logos/neontech","url":"https://daily.dev/sources/neontech"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/an-api-to-track-database-schema-changes-3ak1wg98h","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cicd,postgresql","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Neon","item":"https://daily.dev/sources/neontech"},{"@type":"ListItem","position":3,"name":"An API to Track Database Schema Changes"}]}
```

