List Projects
GET
/api/v1/projects
const url = 'https://api.totalview.energy/api/v1/projects';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.totalview.energy/api/v1/projects \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
Response List Projects Api V1 Projects Get
Array<object>
ProjectWithLatestProject with latest run info (for list views).
The latest_run_* fields come from the most recent model run for
the project (by created_at); latest_run_start_date and
latest_run_end_date define the analysis window that produced the
headline metrics callers see in the row’s tooltip / drill-down.
object
project_id
required
Project Id
string format: uuid
project_name
required
Project Name
string
existing_project_flag
Existing Project Flag
boolean
Example
[ { "existing_project_flag": false }]