Skip to main content
GET
/
v4
/
beta
/
files
/
{file_id}
/
content
Python
import os
from scale_gp import SGPClient

client = SGPClient(
    api_key=os.environ.get("SGP_API_KEY"),  # This is the default and can be omitted
)
response = client.beta.files.content(
    "file_id",
)
print(response)
content = response.read()
print(content)
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Path Parameters

file_id
string
required

Response

Successful Response