Access token is not working?

Coda API 404 Error: “Doc does not exist or is inaccessible” despite correct docId and scoped token

Hello everyone,

I’m running into a persistent 404 when trying to fetch my document via the Coda API:

curl -X GET https://coda.io/apis/v1/docs/dk81YzlMt1b \
     -H "Authorization: Bearer <MY_TOKEN>"

I have:

  1. Generated a personal API token (Read & Write) scoped to my document at
    https://coda.io/d/Renans-Coda-Playground_dk81YzlMt1b
  2. Confirmed I’m logged into the same Coda account that owns/edits that doc
  3. Verified that dk81YzlMt1b is the exact docId from my document URL
  4. Ensured my token is formatted as Authorization: Bearer <token> with no extra spaces

Despite all of that, the API response is:

{
  "errorMessage": "The resource you are requesting could not be found",
  "errorDescription": "Doc does not exist or is inaccessible."
  …
}

Has anyone else faced this issue? What else can I check or try to get the API to recognize and return my document? Any insights would be greatly appreciated!

Thanks in advance,
Renan

Hey Renan!
Try without the d prefix in the doc id :slight_smile:

1 Like