Skip to main content
Required ACL: addObject All Algolia write operations are asynchronous. When you make a request for a write operation, for example, to add or update records in your index, Algolia creates a task on a queue and returns a taskID. The task itself runs separately, depending on the server load. You can wait for a write operation to complete by using the task’s taskID and the waitTask method.

Examples

Wait until a new object is added to an index

If you want to ensure multiple objects have been indexed, you must check all taskIDs.

Wait for indexing of a new object and send extra HTTP header

Parameters

string
required
Task ID of the indexing task to wait for.
list
A list of request options to send along with the query.
Last modified on March 11, 2026