> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.termina.ai/api-reference/data/talent/get-team-growth-accounting/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.termina.ai/_mcp/server. # Team Growth Accounting GET https://app.termina.ai/api/v1/group/{group_id}/deal/{deal_id}/data/team-growth-accounting The function-level growth accounting for employees within the company. Measure how many users join, churn, or resurrect, at the function level, for each period there is data. Reference: https://docs.termina.ai/api-reference/data/talent/get-team-growth-accounting ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Servers - `https://app.termina.ai` (Production server, default) - `https://app.termina.dev` (Development server) - `http://localhost:8000` (Local development server) ## Request ### Path parameters - `group_id` (integer, required) - `deal_id` (integer, required) ## Response ### 200 Successful Response - `list of FunctionLevelGrowthAccounting` ## Errors ### 422 Unprocessable Entity Error Validation Error - `detail` (list of ValidationError, optional) ## Types ### FunctionLevelGrowthAccounting Represents the growth accounting metrics at the function level for a company. This model captures the changes in employee count within specific functions over time. - `function` (string, required) — The function or department within the company. - `date` (string, required) — The date of the entry in YYYYQ format. - `active` (integer, required) — The number of active employees in the function during the period. - `new` (integer, required) — The number of new employees in the function during the period. - `retained` (integer, required) — The number of employees retained in the function from the last period. - `resurrected` (integer, required) — The number of employees who left and returned to the function. - `churned` (integer, required) — The number of employees who left the function during the period. ### ValidationError - `loc` (list of ValidationErrorLocItems, required) - `msg` (string, required) - `type` (string, required) - `input` (any, optional) - `ctx` (ValidationErrorCtx, optional) ### ValidationErrorLocItems ### ValidationErrorCtx ## Examples **Response** ```json [ { "function": "Analytics/Research", "date": "2025Q1", "active": 50, "new": 10, "retained": 30, "resurrected": 5, "churned": -5 } ] ``` **SDK Code** ```python import requests url = "https://app.termina.ai/api/v1/group/1/deal/1/data/team-growth-accounting" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://app.termina.ai/api/v1/group/1/deal/1/data/team-growth-accounting'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://app.termina.ai/api/v1/group/1/deal/1/data/team-growth-accounting" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://app.termina.ai/api/v1/group/1/deal/1/data/team-growth-accounting") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://app.termina.ai/api/v1/group/1/deal/1/data/team-growth-accounting") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://app.termina.ai/api/v1/group/1/deal/1/data/team-growth-accounting', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://app.termina.ai/api/v1/group/1/deal/1/data/team-growth-accounting"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://app.termina.ai/api/v1/group/1/deal/1/data/team-growth-accounting")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```