# Is there an API to get the build/deploy logs?

**URL:** <https://answers.netlify.com/t/is-there-an-api-to-get-the-build-deploy-logs/118498>\
**Category:** Features\
**Tags:** feature-request, building, deployment\
**Created:** [May 14, 2024, 7:58am UTC](https://answers.netlify.com/t/is-there-an-api-to-get-the-build-deploy-logs/118498 "2024-05-14T07:58:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aditya\_b007](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@aditya\_b007](https://answers.netlify.com/u/aditya_b007)\
**Post date:** [May 14, 2024, 7:58am UTC](https://answers.netlify.com/t/is-there-an-api-to-get-the-build-deploy-logs/118498/1 "2024-05-14T07:58:21Z")

</div>

I’m working on building a project for a client using Netlify. I need to display the build logs to the client regardless of whether the build succeeds or fails. After reviewing the Netlify API documentation ([https://open-api.netlify.com/](https://open-api.netlify.com/)), I couldn’t find any API specifically for retrieving build logs. Is this something that can be achieved?

---

<div class="post-metadata">

**Author:** ![Melvin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/melvin/32/23606_2.png) [@Melvin](https://answers.netlify.com/u/Melvin)\
**Post date:** [May 14, 2024, 11:29am UTC](https://answers.netlify.com/t/is-there-an-api-to-get-the-build-deploy-logs/118498/2 "2024-05-14T11:29:25Z")

</div>

Hi @aditya_b007,

Thanks for reaching out and welcome to Netlify’s Support Forums!

I found this Netlify Forum thread here and it appears you can’t access deploy logs via the API:

> [@Can't access firebase log](https://answers.netlify.com/t/cant-access-firebase-log/19398):
>
> Hi Folks, I am trying to access deploy logs via log\_access\_attributes. Mentioned key has URL and access token. I am making a GET request with URL and sending access token as Authorization Header. However I am getting { "error": "Unauthorized request." } Sample Request curl --location --request GET 'https://netlify-builds3.firebaseio.com/builds/{deploymentId}/log.json' --header 'Authorization: Bearer {access token}' Let me know what I am doing wrong. -Regards, Keyur
