cURL
curl --request GET \ --url https://api.thehaystack.ai/v2/haystack/items/{itemId}/resources/{resourceId} \ --header 'Authorization: Bearer <token>'
{ "resource": { "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>" } }
Retrieve a single resource.
Documentation IndexFetch the complete documentation index at: https://developer.thehaystack.ai/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://developer.thehaystack.ai/llms.txt
Use this file to discover all available pages before exploring further.
Enter your API token from the Haystack dashboard
resourceType
Resource details
Show child attributes