collection

Create a collection

Collections are a model that can hold various resources, such as a website or a single page.
You can create a collection using the web UI or the API.

Parameters

Name Required Type Description
name required string The name of the collection
curl --request POST \
    --url https://api.embedding.io/v0/collections \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --json '{
        "name": "PG"
    }'

Returns

Name Type Description
id string The id of the collection
name string The name of the collection
{
	"id": "col_lPMjKLBRLZ4qVe",
	"name": "PG"
}