Facing difficulty with API request

Hey Guys, I make a simple table in my coda doc, for testing integration with voiceflow(AI chatbot builder)
I make GET request to caputre Name and Email from coda table.
But it shows the error.

Hey there! I don’t actually see the error in your screenshot. What error are you getting?

Hey scott, this error shown:

“statusCode”: 401,
“statusMessage”: “Unauthorized”,
“message”: “Unauthorized”,
“alt-svc”: “h3=":443"; ma=86400”,
“connection”: “close”,
“content-length”: “74”,
“content-type”: “application/json; charset=utf-8”,
“date”: “Mon, 11 Sep 2023 00:50:25 GMT”,
“etag”: “W/"4a-cgRBf0w8pVOQqgqxCXFE8wod2k4"”,
“strict-transport-security”: “max-age=63072000; includeSubDomains; preload”,
“vary”: “Origin, Accept-Encoding”,
“via”: “1.1 c640b1afa51b342db4c4d96d404a1eda.cloudfront.net (CloudFront)”,
“x-amz-cf-id”: “-l1aqldzjY0TZI2Pa6PoBfFwvJxMisNtYvfn6HMkOcaSXBiomAXfyQ==”,
“x-amz-cf-pop”: “IAD79-C2”,
“x-cache”: “Error from cloudfront”


The second message in that json shows you that - first make sure you understand how to read and parse json, that will take you a long way.

Your coda school document has a great section on json that will give you all you need to know.

Unauthorized means you aren’t allowed to, based on the key/password you provided, authorized or allowed to access that information.

So you either

  1. Gave the api the wrong api token
  2. Are passing a correct token in an incorrect manner

Yes thanks, I learn coda school doc and applied it

Now It successfully work

Great! Reach out if you need any more help

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.