[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. Keep the search-only key in frontend code and the write key server-side.

Source context: Stack Overflow #36915651 (accepted answer, 64 votes): a developer indexing contacts in Algolia gets "Not enough rights to add an object". 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.