## TL;DR

Switch to the read-write token for upserts; also make sure the index has an embedding model active if you upsert with raw data instead of vectors. You are using the read-only token.

## Steps

1. You are using the read-only token. The reporter's own resolution: they had copied the readonly credentials from the Upstash console. Switch to the read-write token for upserts; also make sure the index has an embedding model active if you upsert with raw `data` instead of vectors.

## When to use

You are seeing this: Calling index.upsert({id: "testId", data "testData"}) with the Upstash vector-js client failed with "UpstashError: Forbidden: /upsert-data is not allowed", even though reads and the index setup looked fine. Use this skill when you run into "Upstash Vector: Forbidden: /upsert-data is not allowed on upsert".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
