Let the agent load your data
Here the agent builds the list. You describe what you want in plain English and it makes the calls.
Ask for a list, with data
With a write-capable key connected, you can just ask:
You: Create a list called
productsand load these ten items into it. Make the name and description searchable, and brand and price filterable.Agent: Done — I created the
productslist, added ten records, and setnameanddescriptionas searchable,brandandpriceas filters. It's live; want me to try a search?
Behind that, two ordinary Search Stack calls: one to create the list, one to load the records and set up the fields from your data. The same works for “import the file at this URL” or “add these rows to my existing list”.
Or from code
The agent's tools map one-to-one to the API, so the same two moves are two requests. Create the list:
POST https://api.searchstack.dev/list
X-API-Key: {your key}
Content-Type: application/json
{ "account_name": "Demo", "list_name": "products", "subscription_name": "Free" }
Then load the records, letting Search Stack create the fields from the data:
POST https://api.searchstack.dev/search-result/Demo/products/with-fields
X-API-Key: {your key}
Content-Type: application/json
[
{ "name": "Trail Runner 2", "description": "lightweight road-to-trail shoe", "brand": "Vireo", "price": 119 },
{ "name": "Cloud Mesh Tee", "description": "breathable merino training top", "brand": "Vireo", "price": 44 }
]
That is the exact call the agent made on your behalf — it only decided the field roles from what you asked.
Go deeper: Lists, fields, and importing records in the reference.