cURL
curl --request GET \ --url https://api.thehaystack.ai/v2/haystack/items/{itemId}/resources \ --header 'Authorization: Bearer <token>'
{ "resources": [ { "id": 123, "itemId": 123, "title": "<string>", "subTitle": "<string>", "description": "<string>", "resourceTypeId": 123, "displayOrder": 123, "contentType": "file", "fileMimeType": "<string>", "fileSizeBytes": 123, "externalPlatform": "youtube", "externalPlatformId": "<string>", "thumbnailImgUrl": "<string>", "url": "<string>", "resourceType": { "id": 123, "name": "<string>" }, "linkTarget": "<string>" } ], "limit": 123, "offset": 123, "page": 123, "totalRecords": 123, "totalPages": 123, "hasMore": true }
List all resources attached to an item.
Enter your API token from the Haystack dashboard
x <= 100
e.g. 'displayOrder,ASC'
resourceType
Paginated list of resources for the item
Show child attributes