---
schema_version: "1"
id: e8dcffbf91b754992feb900fcce718fc72c0ad597d5da86cb179c7a86fc1ee8c
title: Model File Resource
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/bi_dev_guide_rest_sdd/bi_sdd_resources_models_id_file.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest_sdd.meta/bi_dev_guide_rest_sdd/bi_sdd_resources_models_id_file.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 89648f577358e94bcb644cd5bcac2711cc1f5b2a3475a6061856517e5f983dd1
description: Returns a binary stream of the Einstein Discovery model file contents.
---
# Model File Resource

Returns a binary stream of the Einstein Discovery model file contents.

Resource URL

/smartdatadiscovery/models/<modelId>/file

Formats

JSON

Available Version

49.0 GET

HTTP Methods

GET

Request parameters for GET

| Parameter Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| model​Id | String | The ID of the model to retrieve the file for. | Required | 49.0 |

Response body for GET

StreamedRepresentation. Returns a binary stream of the JSON contents of the specified file.