"Summary report" Endpoints - POST List project users

https://api.track.toggl.com/reports/api/v3/workspace/{workspace_id}/projects/summary

Returns summary user projects.

  • cURL
  • Go
  • Ruby
  • JavaScript
  • Python
  • Rust
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> {  let client = Client::new().basic_auth("<email>", "<password>");  let json = client.request(Method::POST, "https://api.track.toggl.com/reports/api/v3/workspace/{workspace_id}/projects/summary".to_string()).json(&serde_json::json!(\{"end_date":"string","startTime":"string","start_date":"string"\}))  .header(CONTENT_TYPE, "application/json")  .send()  .await?  .json()  .await?;    println!("{:#?}", json);  Ok(())}

Parameters

Path

name type required description
workspace_id integer true Workspace ID

Body

Name Type Description
end_date string End date, example time.DateOnly. Should be greater than Start date.
startTime string -
start_date string Start date, example time.DateOnly. Should be less than End date.

Response

200

Returns summary user projects

Name Type Description
items Array of object -
items
Name Type Description
billable_seconds integer -
project_id integer -
tracked_seconds integer -
user_id integer -

400

Possible error messages:

  • At least one parameter must be set
  • Invalid workspace id

500

Internal Server Error