Check your Vercel / hosting provider logs to see if it exists at all. Could be a missing env var somewhere. Other than that, check the permissions it has (write, read, what features it can access etc):
https://typesense.org/docs/29.0/api/api-keys.html#arguments