TL;DR: [Stack Overflow #36915651, accepted answer, 64 votes]: "Not enough rights to add an object" means your API key lacks the addObject ACL. Youre probably using the search-only API key. Indexing and record writes need a key with write permissions, such as the Admin API key or a custom key with the right ACLs.

## Fix
1. [Stack Overflow #36915651, accepted answer, 64 votes]: "Not enough rights to add an object" means your API key lacks the addObject ACL.
   Expected: this specific failure stops.
2. Source context: Stack Overflow #36915651 (accepted answer, 64 votes): a developer indexing contacts in Algolia gets "Not enough rights to add an object".
   Expected: this specific failure stops.

## Details
Youre probably using the search-only API key. Keep the search-only key in frontend code and the write key server-side. The accepted answer diagnoses the classic key mixup: they used the search-only API key, but indexing needs a key with the addObject ACL, like the Admin API key.

## When to use
You hit exactly this: Algolia: "Not enough rights to add an object" means you used the search key, not a write key in Algolia.

## When not to use
A different error, or the same symptom in a different tool. This page only covers the failure above.

## Compatibility
Algolia.

## Edge cases
- Indexing and record writes need a key with write permissions, such as the Admin API key or a custom key with the right ACLs.