## Get Stats `client.promptly.getStats(PromptlyGetStatsParamsquery, RequestOptionsoptions?): PromptlyGetStatsResponse` **get** `/api/promptly/stats` Retrieve task execution statistics for the organization ### Parameters - `query: PromptlyGetStatsParams` - `organizationId: string` ### Returns - `PromptlyGetStatsResponse` - `activeTasks?: number` - `failedRuns?: number` - `successfulRuns?: number` - `totalCostCents?: number` - `totalRuns?: number` - `totalTasks?: number` - `totalTokensUsed?: number` ### Example ```typescript import _0ct from '0ct'; const client = new _0ct({ apiKey: process.env['0CT_API_KEY'], // This is the default and can be omitted }); const response = await client.promptly.getStats({ organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', }); console.log(response.activeTasks); ```