---
title: "Add Item"
method: POST
path: "/v3/universal-ai/collections/{collection_id}/items"
tags: ["collections"]
---

# Add Item

`POST /v3/universal-ai/collections/{collection_id}/items`

## Request

- Base URL: `https://api.edenai.run`
- URL: `https://api.edenai.run/v3/universal-ai/collections/{collection_id}/items`
- Auth: HTTP bearer

Add an item to a collection.

The file runs on the collection's provider. Returns the provider-side
ids of the indexed items (one image can yield several, e.g. faces).

## Path parameters

- `collection_id` string, uuid, required

## Request body

- AddItemRequest: Body for adding an item to a collection.
  - `file` union, required: File to add, as a file id from /v3/upload or a URL. Accepted MIME types depend on the collection's subfeature (images for image/face_recognition).
    - string, uuid
    - string

## Response `201`

Successful Response

- ItemsResponse: Item ids stored in a collection (provider-side ids, passed through).
  - `collection_id` string, uuid, required
  - `item_ids` string[], required: Provider-side item ids (face ids for image/face_recognition).

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/edenai/apis/eden-ai-api-v3.md) - [All operations](https://skmtc.dev/edenai/apis/eden-ai-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/edenai/apis/eden-ai-api-v3/revisions/20ddfd49a3f4?raw)
