Skip to content
Open Prescient AI
API queries

Reference for the models query of the Prescient GraphQL API, with its return type and an example request.

Querymodels: [Model!]!

Returns all of the available models.

This query takes no arguments.

The query returns Model, written as [Model!]! in the schema. The type has these fields.

Send the query in the query field of the request body.

Query
query models {
models {
name
unit
}
}

The values in this response are examples. They are not real data.

Response
{
"data": {
"models": [
{
"name": "example_revenue",
"unit": "REVENUE"
}
]
}
}