Skip to content
Back

Import CSV via API (User Not Authorized)

  • 0
  • Databases
  • REST API
LordHaywood
10 Nov, 2025, 15:30

I'm trying to import database data via CSV via API, however getting "The current user is not authorized to perform the requested action." after the API key has "migrations.write" access. (This was erroring/checked prior to adding the permission to the key)

e.g. await client.call("POST", new URL("https://appwrite.domain.com/v1/migrations/csv"), { "content-type": "application/json" }, { bucketId: "dbBootData", fileId: "trees.csv", resourceId: prod:trees, internalFile: true })

TL;DR
Title: Import CSV through Appwrite API issue Developers utilizing Appwrite 1.8.0 are encountering an "User Not Authorized" error while attempting to import data via CSV using the API. Even with the API key granted "migrations.write" access, the issue persists. Solution: Ensure that the proper permissions are correctly set for the specified API key to perform the intended action successfully.
LordHaywood
10 Nov, 2025, 15:31

Import CSV via API (User Not Authorized)

LordHaywood
10 Nov, 2025, 15:31

Appwrite 1.8.0 (Self Hosted)

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more