API reference · FRED

fred/release-tables

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

APISynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/api/fred/release-tables
Model IDfred/release-tables
01

Input Schema

5 parameters · 1 required · 4 optional

ParameterTypeRequiredDescription
release_idintegerRequiredThe id for a release. integer, required
file_typestringOptionalResponse format. Only json is supported. · Options: json · Default: "json"
json
element_idintegerOptionalThe release table element id you would like to retrieve. integer, optional When the parameter is not passed, the root(top most) element for the release is given.
observation_datestringOptionalThe observation date to be included with the returned release table. YYYY-MM-DD formatted string, optional, default: 9999-12-31 (latest available) · Default: "9999-12-31"
include_observation_valuesstringOptionalA flag to indicate that observations need to be returned. Observation value and date will only be returned for a series type element. One of the following strings: 'true', 'false'. optional, default: false · Options: true, false · Default: "false"
truefalse
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description
03

Code Examples

Ready-to-run snippets

const apiKey = process.env.SANDBASE_API_KEY;
const response = await fetch("https://api.sandbase.ai/v1/api/fred/release-tables", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "file_type": "json",
    "release_id": 53,
    "observation_date": "9999-12-31",
    "include_observation_values": "false"
  }),
});

if (!response.ok) throw new Error(await response.text());
console.log(await response.json());