cURL
curl --request GET \ --url https://api.thehaystack.ai/v2/haystack/collections/{collectionId} \ --header 'Authorization: Bearer <token>'
{ "collection": { "id": 1, "name": "Sunday Sermons", "itemDescriptor": "sermon" } }
Retrieve a single collection by ID
Enter your API token from the Haystack dashboard
Related entities to include in the response
variantTypes
Collection details
Show child attributes