I have more than 10 v0 projects. I’m looking to build a daily workflow to query against v0 APIs to notify me if there are any unpublished changes. So that I can deploy them and keep my websites updated.
Is there a way to do this?
I’ve looked at the v0 APIs, tried querying these APIs and checking the responses/relationships and can’t find a way:
At the moment, there isn’t a way to detect unpublished changes through the v0 APIs. The API doesn’t expose anything that shows whether a chat has updates that haven’t been deployed yet.
The endpoints you mentioned (/v1/chats/{chatId}/versions/{versionId} and /v1/deployments) also don’t provide any comparison between the latest chat version and what’s currently published, so they won’t help in identifying unpublished changes.
Right now, the only option is to check each project manually in the v0 interface, which I know isn’t ideal when you’re managing 10+ projects or trying to automate your workflow.
This would definitely make a strong feature request: an endpoint that returns the publish status or lets you compare the latest version with the deployed one would be super helpful for cases like yours.