Can't access firebase log

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

You will only be able to see the access logs in our UI, Keyur.

You will only be able to see the access logs in our UI, Keyur.

Is access logs different from deploy logs?
How can I view deploy logs via API?

Currently, we are building on Netlify via API and need to view deploy logs on custom UI that we want to build.

Sorry - I misspoke. Access logs are not available at all; you cannot access DEPLOY logs via API, only in our UI.

Thanks for the info.

the get deploy endpoint returns

Can this be used to access the deploy log?

	"log_access_attributes": {
		"type": "firebase",
		"url": "https://netlify-builds5.firebaseio.com/builds/111/log",
		"endpoint": "https://netlify-builds5.firebaseio.com",
		"path": "/builds/111/log",
		"token": "ey"
	},

Hi @zhex900 ,

It’s not possible to access deploy logs from an API. Here’s what you can access through our API: https://open-api.netlify.com/

Hope this helps! :slight_smile: