Skip to content

queries[] shorthand syntax (e.g. limit(1)) returns 400 Syntax Error on Users endpoint #11857

@zynp-KC

Description

@zynp-KC

👟 Reproduction steps

  1. Create an Appwrite Cloud project
  2. Create an API key with users.read scope
  3. Send the following GET request via Postman:

GET https://fra.cloud.appwrite.io/v1/users?queries[]=limit(1)

Headers:

  • X-Appwrite-Project: YOUR_PROJECT_ID
  • X-Appwrite-Key: YOUR_API_KEY

👍 Expected behavior

Request should return paginated users list with limit of 1.
Both shorthand syntax limit(1) and JSON format should work.

👎 Actual Behavior

Shorthand syntax returns 400 Bad Request:
"Invalid query: Syntax error"

However, JSON format works correctly:
GET /v1/users?queries[]={"method":"limit","values":[1]} → 200 OK

🎲 Appwrite version

Version 1.9.x

💻 Operating system

Windows

🧱 Your Environment

  • Tested via Postman
  • Region: Frankfurt (fra.cloud.appwrite.io)
  • API Key scope: users.read
Image Image

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    product / authFixes and upgrades for the Appwrite Auth / Users / Teams services.product / databasesFixes and upgrades for the Appwrite Database.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions