Skip to main content
POST
/
collections
/
create
Create collection
curl --request POST \
  --url https://api.thehaystack.ai/v2/bevly/collections/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Sunday Sermons"
}
'
{
  "collection": {
    "id": 1,
    "name": "Sunday Sermons",
    "itemDescriptor": "sermon"
  }
}

Authorizations

Authorization
string
header
required

Enter your API token from the Haystack dashboard

Body

application/json
name
string
required
Example:

"Sunday Sermons"

Response

200 - application/json

Collection created

collection
object