[Question] "Access token / app mismatch" error with valid Team plan API key and App ID

I’m using the Team plan and trying to access the Adalo API,
but keep getting a 401 “Access token / app mismatch” error when calling certain endpoints.


Situation

  • /v0/apps/{APP_ID}/collections401 Unauthorized (“Access token / app mismatch”)

  • /v0/apps/{APP_ID}/collections/{CollectionID}200 OK

  • /records (POST) → 401 Unauthorized

What I’ve confirmed

  • Plan: Team

  • API key: freshly regenerated from the target app’s App Access screen

  • App ID / Collection ID: copied directly from Builder URL and API Documentation

  • Format of IDs and key are valid

  • Requests are sent from a Cloudflare Worker using
    Authorization: Bearer <API_KEY> header

What I’d like to know

  1. Under what specific conditions does "Access token / app mismatch" occur?
    (e.g., different team, cloned app, etc.)

  2. Are there any API endpoint restrictions even with the Team plan?

  3. Why would /collections/{CollectionID} return 200 while /collections returns 401?

Hi @Gen,

Welcome to the community! :partying_face:

I’m not sure what you’re trying to do here. You’re trying to receive every collection in the database? What exactly you’re trying achieve? Have you gone through the API documentation properly? Correct format would be,https://api.adalo.com/v0/apps/{appId}/collections/{collectionId}

Let me know!

Thank you and have a great day!

What I suspect that such advices were generated by AI, which loves to hallucinate when it doesn’t have enough info.
I’ve just asked a simple question to ChatGPT “ADALO /records API endpoint” and enjoyed a 2-page text which looked very persuasive but was irrelevant to reality.

Hi @Victor .
Thankyou for your comment.

Yeah, exactly. This advice was actually generated by ChatGPT, but no matter how many times I try, it just keeps explaining how to get the API key — I can’t make any progress.

Here’s what I’m working on:

  • I’m trying to connect to Adalo’s Collection API from a Cloudflare Worker and implement a flow that writes records to a collection.

My current issue:

  • I’m getting an access error from the Collection API because the API key issued under Settings > App Access > API KEY doesn’t seem to match the APP ID.

I’m pretty sure I obtained the API key correctly — I followed ChatGPT’s steps and double-checked with Adalo’s API documentation.
I’ve been stuck on this error for days and I’m completely out of ideas. I’d be really grateful for any advice that could help me solve this.

Hi @Dilon
Thankyou for your comment.

What I’m working on

  • I’m trying to connect to the Adalo Collections API from a Cloudflare Worker and implement a flow that writes records to a collection.

My current issue

  • I’m getting access errors from the Collections API because the API Key generated in Adalo (Settings → App Access → API Key) doesn’t seem to match the App ID.

What I’ve tested so far

  • I created a test endpoint /adaloProbe inside my Cloudflare Worker to verify the API connection.
    The test requests and results are as follows:
GET /v0/apps/{APP_ID}/collections → 401 Access token / app mismatch  
GET /v0/apps/{APP_ID}/collections/{CollectionID} → 200  
POST .../records (empty body) → 401

  • I’ve asked AI tools for help, but they only keep repeating the same instructions on how to get the API Key.
    Since I’m already retrieving all IDs and URLs directly from the API Documentation page, I’m stuck in a loop and can’t find a way to fix this issue.

Request

I’d really appreciate any advice or clarification on this behavior — why the API key and app ID might not match, or how to correctly make authorized requests to the Collections API from an external environment.

@Gen as I have mentioned: “text which looked very persuasive but was irrelevant to reality.”.

You are following a misleading advice from ChatGPT and trying to use methods which do not exist, so there is no surprise they don’t work for you.
Endpoints /collections (alone) and /records do not exist.

To view the documentation for the endpoints for Adalo Collections API, in the App builder select “Database”, then choose the collection you need, press three dots → API documentation. A new page will open with all the endpoints for that (and other) collections.

1 Like

Additionally to what Victor mentioned, please refer to this help docs which includes some visuals for better clarification. : Collections API | Adalo Resources

Thank you and have a great day!

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