title: How to know if the deployment on Netlify is done via API?
body: <p>I successfully deployed a site from my web app using Netlify API, but I don’t know how to get the info that if the deployment is done or not.</p>
  <p>I thought the response from <a href="https://docs.netlify.com/api/get-started/#get-deploy" rel="nofollow noreferrer">get-deploy</a> can be the answer, especially the <code>summary.status</code> of that response.</p>
  <p>I tried to keep calling the <code>/api/v1/sites/:site_id/deploys/:deploy_id</code> endpoint every 5 sec and watching <code>summary.status</code>, however, the value of <code>summary.status</code> has never changed from <code>building</code> even after the deployment has been done.</p>
  <p><a href="https://i.stack.imgur.com/PQ6I3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PQ6I3.png" alt="API response" /></a></p>
  <p>How can I get this kind of data?</p>
  <p>Thank you.</p>