@graph8/sdk 0.251.0 → 0.260.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/dist/cli.js +216 -0
- package/dist/index.d.mts +104 -7
- package/dist/index.d.ts +104 -7
- package/dist/index.js +44 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +44 -3
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +102 -7
- package/dist/react.d.ts +102 -7
- package/dist/react.js +62 -11
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +53 -12
- package/dist/react.mjs.map +1 -1
- package/dist/types/README.md +7 -0
- package/dist/types/agency.d.ts +20 -0
- package/dist/types/agentSetup.d.ts +57 -0
- package/dist/types/api.d.ts +127 -0
- package/dist/types/appClient.d.ts +99 -0
- package/dist/types/appPlatform.d.ts +269 -0
- package/dist/types/appTokens.d.ts +125 -0
- package/dist/types/apps.d.ts +130 -0
- package/dist/types/audiences.d.ts +88 -0
- package/dist/types/calendar.d.ts +55 -0
- package/dist/types/campaigns.d.ts +61 -0
- package/dist/types/chat.d.ts +35 -0
- package/dist/types/cli.d.ts +14 -0
- package/dist/types/companies.d.ts +123 -0
- package/dist/types/contacts.d.ts +200 -0
- package/dist/types/copilot.d.ts +31 -0
- package/dist/types/core.d.ts +1052 -0
- package/dist/types/deals.d.ts +215 -0
- package/dist/types/enrich.d.ts +51 -0
- package/dist/types/fields.d.ts +84 -0
- package/dist/types/forms.d.ts +16 -0
- package/dist/types/http.d.ts +141 -0
- package/dist/types/inbox.d.ts +123 -0
- package/dist/types/index.d.ts +63 -0
- package/dist/types/intent.d.ts +196 -0
- package/dist/types/lists.d.ts +44 -0
- package/dist/types/mailboxes.d.ts +240 -0
- package/dist/types/marketplace.d.ts +62 -0
- package/dist/types/meetings.d.ts +70 -0
- package/dist/types/newsletter.d.ts +212 -0
- package/dist/types/notes.d.ts +57 -0
- package/dist/types/objects.d.ts +281 -0
- package/dist/types/pipelines.d.ts +135 -0
- package/dist/types/quotes.d.ts +143 -0
- package/dist/types/react.d.ts +978 -0
- package/dist/types/search.d.ts +99 -0
- package/dist/types/sequences.d.ts +255 -0
- package/dist/types/signals.d.ts +28 -0
- package/dist/types/skills.d.ts +176 -0
- package/dist/types/snippet.d.ts +24 -0
- package/dist/types/studio.d.ts +161 -0
- package/dist/types/tasks.d.ts +101 -0
- package/dist/types/types.d.ts +45 -0
- package/dist/types/utils.d.ts +21 -0
- package/dist/types/version.d.ts +10 -0
- package/dist/types/visitors.d.ts +29 -0
- package/dist/types/voice.d.ts +304 -0
- package/dist/types/webhooks.d.ts +71 -0
- package/dist/types/workflows.d.ts +229 -0
- package/docs/agents.md +748 -0
- package/docs/api/README.md +165 -0
- package/docs/api/accounts.d.ts +396 -0
- package/docs/api/accounts.md +644 -0
- package/docs/api/adCampaigns.d.ts +707 -0
- package/docs/api/adCampaigns.md +1091 -0
- package/docs/api/adCreatives.d.ts +996 -0
- package/docs/api/adCreatives.md +1708 -0
- package/docs/api/agency.d.ts +556 -0
- package/docs/api/agency.md +845 -0
- package/docs/api/agent.d.ts +330 -0
- package/docs/api/agent.md +514 -0
- package/docs/api/agents.d.ts +1622 -0
- package/docs/api/agents.md +2860 -0
- package/docs/api/aiInbox.d.ts +1984 -0
- package/docs/api/aiInbox.md +3490 -0
- package/docs/api/analytics.d.ts +1273 -0
- package/docs/api/analytics.md +2095 -0
- package/docs/api/apiKeys.d.ts +252 -0
- package/docs/api/apiKeys.md +318 -0
- package/docs/api/appDeployments.d.ts +236 -0
- package/docs/api/appDeployments.md +471 -0
- package/docs/api/appDomains.d.ts +171 -0
- package/docs/api/appDomains.md +281 -0
- package/docs/api/appLogs.d.ts +120 -0
- package/docs/api/appLogs.md +159 -0
- package/docs/api/appObjects.d.ts +415 -0
- package/docs/api/appObjects.md +568 -0
- package/docs/api/appPages.d.ts +557 -0
- package/docs/api/appPages.md +796 -0
- package/docs/api/appPlatformTokens.d.ts +123 -0
- package/docs/api/appPlatformTokens.md +172 -0
- package/docs/api/appointments.d.ts +2361 -0
- package/docs/api/appointments.md +3917 -0
- package/docs/api/apps.d.ts +822 -0
- package/docs/api/apps.md +1342 -0
- package/docs/api/assertUpsert.d.ts +286 -0
- package/docs/api/assertUpsert.md +370 -0
- package/docs/api/audienceSyncs.d.ts +259 -0
- package/docs/api/audienceSyncs.md +395 -0
- package/docs/api/brandKit.d.ts +686 -0
- package/docs/api/brandKit.md +1133 -0
- package/docs/api/bugReports.d.ts +181 -0
- package/docs/api/bugReports.md +268 -0
- package/docs/api/by-path.md +3260 -0
- package/docs/api/calendarInvites.d.ts +117 -0
- package/docs/api/calendarInvites.md +148 -0
- package/docs/api/campaignWorkflows.d.ts +152 -0
- package/docs/api/campaignWorkflows.md +200 -0
- package/docs/api/campaigns.d.ts +721 -0
- package/docs/api/campaigns.md +1236 -0
- package/docs/api/channels.d.ts +171 -0
- package/docs/api/channels.md +235 -0
- package/docs/api/cliCampaigns.d.ts +205 -0
- package/docs/api/cliCampaigns.md +256 -0
- package/docs/api/cliPipelines.d.ts +324 -0
- package/docs/api/cliPipelines.md +562 -0
- package/docs/api/clickHouse.d.ts +115 -0
- package/docs/api/clickHouse.md +138 -0
- package/docs/api/companies.d.ts +1636 -0
- package/docs/api/companies.md +2211 -0
- package/docs/api/companyIntelligence.d.ts +299 -0
- package/docs/api/companyIntelligence.md +488 -0
- package/docs/api/contacts.d.ts +2173 -0
- package/docs/api/contacts.md +3143 -0
- package/docs/api/content.d.ts +968 -0
- package/docs/api/content.md +1667 -0
- package/docs/api/contentGridSkills.d.ts +177 -0
- package/docs/api/contentGridSkills.md +271 -0
- package/docs/api/copilot.d.ts +1017 -0
- package/docs/api/copilot.md +1765 -0
- package/docs/api/crmSyncs.d.ts +215 -0
- package/docs/api/crmSyncs.md +301 -0
- package/docs/api/customerSuccess.d.ts +491 -0
- package/docs/api/customerSuccess.md +776 -0
- package/docs/api/deals.d.ts +1696 -0
- package/docs/api/deals.md +2432 -0
- package/docs/api/deliverability.d.ts +418 -0
- package/docs/api/deliverability.md +677 -0
- package/docs/api/desk.d.ts +1765 -0
- package/docs/api/desk.md +3007 -0
- package/docs/api/dialer.d.ts +1185 -0
- package/docs/api/dialer.md +2166 -0
- package/docs/api/dialerAnalytics.d.ts +187 -0
- package/docs/api/dialerAnalytics.md +257 -0
- package/docs/api/documents.d.ts +895 -0
- package/docs/api/documents.md +1440 -0
- package/docs/api/duplicates.d.ts +195 -0
- package/docs/api/duplicates.md +315 -0
- package/docs/api/eSign.d.ts +38 -0
- package/docs/api/eSign.md +54 -0
- package/docs/api/eSignature.d.ts +242 -0
- package/docs/api/eSignature.md +341 -0
- package/docs/api/enrichment.d.ts +3207 -0
- package/docs/api/enrichment.md +5225 -0
- package/docs/api/events.d.ts +115 -0
- package/docs/api/events.md +105 -0
- package/docs/api/fields.d.ts +482 -0
- package/docs/api/fields.md +566 -0
- package/docs/api/forms.d.ts +1012 -0
- package/docs/api/forms.md +1542 -0
- package/docs/api/gtmCampaigns.d.ts +662 -0
- package/docs/api/gtmCampaigns.md +1044 -0
- package/docs/api/gtmContext.d.ts +1187 -0
- package/docs/api/gtmContext.md +2112 -0
- package/docs/api/gtmDeliverability.d.ts +60 -0
- package/docs/api/gtmDeliverability.md +63 -0
- package/docs/api/gtmKnowledgeBase.d.ts +76 -0
- package/docs/api/gtmKnowledgeBase.md +91 -0
- package/docs/api/gtmLaunchHelpers.d.ts +123 -0
- package/docs/api/gtmLaunchHelpers.md +148 -0
- package/docs/api/gtmLibrary.d.ts +448 -0
- package/docs/api/gtmLibrary.md +780 -0
- package/docs/api/health.d.ts +39 -0
- package/docs/api/health.md +58 -0
- package/docs/api/imageLibrary.d.ts +341 -0
- package/docs/api/imageLibrary.md +569 -0
- package/docs/api/imports.d.ts +157 -0
- package/docs/api/imports.md +174 -0
- package/docs/api/inbox.d.ts +709 -0
- package/docs/api/inbox.md +1067 -0
- package/docs/api/install.d.ts +213 -0
- package/docs/api/install.md +317 -0
- package/docs/api/installedApps.d.ts +131 -0
- package/docs/api/installedApps.md +241 -0
- package/docs/api/integrationStatus.d.ts +142 -0
- package/docs/api/integrationStatus.md +205 -0
- package/docs/api/integrations.d.ts +2327 -0
- package/docs/api/integrations.md +3791 -0
- package/docs/api/intent.d.ts +482 -0
- package/docs/api/intent.md +858 -0
- package/docs/api/knowledge.d.ts +501 -0
- package/docs/api/knowledge.md +843 -0
- package/docs/api/knowledgeBase.d.ts +84 -0
- package/docs/api/knowledgeBase.md +96 -0
- package/docs/api/landingPages.d.ts +1411 -0
- package/docs/api/landingPages.md +2488 -0
- package/docs/api/leads.d.ts +133 -0
- package/docs/api/leads.md +180 -0
- package/docs/api/library.d.ts +217 -0
- package/docs/api/library.md +338 -0
- package/docs/api/linkedIn.d.ts +227 -0
- package/docs/api/linkedIn.md +289 -0
- package/docs/api/linkedInOutreach.d.ts +727 -0
- package/docs/api/linkedInOutreach.md +990 -0
- package/docs/api/lists.d.ts +1106 -0
- package/docs/api/lists.md +1609 -0
- package/docs/api/logs.d.ts +71 -0
- package/docs/api/logs.md +70 -0
- package/docs/api/mailboxes.d.ts +1050 -0
- package/docs/api/mailboxes.md +1690 -0
- package/docs/api/marketingIntelligence.d.ts +256 -0
- package/docs/api/marketingIntelligence.md +454 -0
- package/docs/api/marketplace.d.ts +3173 -0
- package/docs/api/marketplace.md +5953 -0
- package/docs/api/mcp.d.ts +69 -0
- package/docs/api/mcp.md +69 -0
- package/docs/api/me.d.ts +54 -0
- package/docs/api/me.md +56 -0
- package/docs/api/meetings.d.ts +539 -0
- package/docs/api/meetings.md +747 -0
- package/docs/api/newsletter.d.ts +1613 -0
- package/docs/api/newsletter.md +2746 -0
- package/docs/api/notes.d.ts +517 -0
- package/docs/api/notes.md +888 -0
- package/docs/api/notifications.d.ts +94 -0
- package/docs/api/notifications.md +105 -0
- package/docs/api/objects.d.ts +621 -0
- package/docs/api/objects.md +1098 -0
- package/docs/api/openSearch.d.ts +234 -0
- package/docs/api/openSearch.md +297 -0
- package/docs/api/ops.d.ts +299 -0
- package/docs/api/ops.md +339 -0
- package/docs/api/orgGovernance.d.ts +393 -0
- package/docs/api/orgGovernance.md +623 -0
- package/docs/api/orgVideos.d.ts +184 -0
- package/docs/api/orgVideos.md +252 -0
- package/docs/api/organizationSettings.d.ts +626 -0
- package/docs/api/organizationSettings.md +911 -0
- package/docs/api/phoneNumbers.d.ts +484 -0
- package/docs/api/phoneNumbers.md +777 -0
- package/docs/api/profile.d.ts +329 -0
- package/docs/api/profile.md +540 -0
- package/docs/api/programmaticPages.d.ts +400 -0
- package/docs/api/programmaticPages.md +626 -0
- package/docs/api/providerDomains.d.ts +866 -0
- package/docs/api/providerDomains.md +1446 -0
- package/docs/api/providerUsage.d.ts +129 -0
- package/docs/api/providerUsage.md +186 -0
- package/docs/api/public.d.ts +69 -0
- package/docs/api/public.md +78 -0
- package/docs/api/publicCopilot.d.ts +67 -0
- package/docs/api/publicCopilot.md +80 -0
- package/docs/api/publicSignals.d.ts +66 -0
- package/docs/api/publicSignals.md +71 -0
- package/docs/api/publicVisitors.d.ts +97 -0
- package/docs/api/publicVisitors.md +118 -0
- package/docs/api/quotes.d.ts +1564 -0
- package/docs/api/quotes.md +2553 -0
- package/docs/api/radar.d.ts +808 -0
- package/docs/api/radar.md +1431 -0
- package/docs/api/radarReports.d.ts +208 -0
- package/docs/api/radarReports.md +306 -0
- package/docs/api/recordRoles.d.ts +143 -0
- package/docs/api/recordRoles.md +175 -0
- package/docs/api/repos.d.ts +146 -0
- package/docs/api/repos.md +211 -0
- package/docs/api/research.d.ts +295 -0
- package/docs/api/research.md +534 -0
- package/docs/api/revenue.d.ts +402 -0
- package/docs/api/revenue.md +608 -0
- package/docs/api/revenueAnalytics.d.ts +147 -0
- package/docs/api/revenueAnalytics.md +212 -0
- package/docs/api/revenueLifecycle.d.ts +207 -0
- package/docs/api/revenueLifecycle.md +274 -0
- package/docs/api/revenueRecords.d.ts +372 -0
- package/docs/api/revenueRecords.md +563 -0
- package/docs/api/roles.d.ts +431 -0
- package/docs/api/roles.md +812 -0
- package/docs/api/salesCoach.d.ts +877 -0
- package/docs/api/salesCoach.md +1540 -0
- package/docs/api/sandbox.d.ts +210 -0
- package/docs/api/sandbox.md +380 -0
- package/docs/api/scans.d.ts +104 -0
- package/docs/api/scans.md +136 -0
- package/docs/api/scheduleBuy.d.ts +293 -0
- package/docs/api/scheduleBuy.md +431 -0
- package/docs/api/scraping.d.ts +266 -0
- package/docs/api/scraping.md +383 -0
- package/docs/api/sdrAnalytics.d.ts +138 -0
- package/docs/api/sdrAnalytics.md +246 -0
- package/docs/api/search.d.ts +598 -0
- package/docs/api/search.md +866 -0
- package/docs/api/seo.d.ts +447 -0
- package/docs/api/seo.md +660 -0
- package/docs/api/sequenceLifecycle.d.ts +439 -0
- package/docs/api/sequenceLifecycle.md +513 -0
- package/docs/api/sequences.d.ts +1936 -0
- package/docs/api/sequences.md +3232 -0
- package/docs/api/settings.d.ts +448 -0
- package/docs/api/settings.md +731 -0
- package/docs/api/signals.d.ts +1441 -0
- package/docs/api/signals.md +2526 -0
- package/docs/api/signatures.d.ts +719 -0
- package/docs/api/signatures.md +1247 -0
- package/docs/api/skills.d.ts +230 -0
- package/docs/api/skills.md +466 -0
- package/docs/api/snippet.d.ts +85 -0
- package/docs/api/snippet.md +106 -0
- package/docs/api/socialPublishing.d.ts +824 -0
- package/docs/api/socialPublishing.md +1245 -0
- package/docs/api/studioDocuments.d.ts +244 -0
- package/docs/api/studioDocuments.md +348 -0
- package/docs/api/support.d.ts +90 -0
- package/docs/api/support.md +76 -0
- package/docs/api/suppressions.d.ts +241 -0
- package/docs/api/suppressions.md +343 -0
- package/docs/api/surveys.d.ts +847 -0
- package/docs/api/surveys.md +1223 -0
- package/docs/api/tasks.d.ts +813 -0
- package/docs/api/tasks.md +1344 -0
- package/docs/api/teamMembers.d.ts +668 -0
- package/docs/api/teamMembers.md +1040 -0
- package/docs/api/teams.d.ts +784 -0
- package/docs/api/teams.md +1395 -0
- package/docs/api/usage.d.ts +277 -0
- package/docs/api/usage.md +389 -0
- package/docs/api/visitors.d.ts +690 -0
- package/docs/api/visitors.md +1075 -0
- package/docs/api/voice.d.ts +4661 -0
- package/docs/api/voice.md +7905 -0
- package/docs/api/webAnalytics.d.ts +964 -0
- package/docs/api/webAnalytics.md +1452 -0
- package/docs/api/webChat.d.ts +1704 -0
- package/docs/api/webChat.md +2048 -0
- package/docs/api/webhooks.d.ts +251 -0
- package/docs/api/webhooks.md +386 -0
- package/docs/api/websiteEditor.d.ts +324 -0
- package/docs/api/websiteEditor.md +517 -0
- package/docs/api/work.d.ts +2298 -0
- package/docs/api/work.md +3096 -0
- package/docs/api/workbench.d.ts +2962 -0
- package/docs/api/workbench.md +4884 -0
- package/docs/api/workflows.d.ts +1218 -0
- package/docs/api/workflows.md +2302 -0
- package/docs/sdk-clients.md +4339 -0
- package/package.json +10 -3
|
@@ -0,0 +1,845 @@
|
|
|
1
|
+
<!-- Generated by sdk/js/scripts/generate-agent-docs.ts from developer-contract/openapi.json. Regenerated on every build. -->
|
|
2
|
+
|
|
3
|
+
# `g8.api.agency`: Agency
|
|
4
|
+
|
|
5
|
+
24 operations (24 read).
|
|
6
|
+
|
|
7
|
+
2 of these also have a hand-written method (`g8.agency`), marked **★** below. Prefer the hand-written method when one exists: it unwraps the `data` envelope and takes friendlier arguments. See [../sdk-clients.md](../sdk-clients.md).
|
|
8
|
+
|
|
9
|
+
Every example below assumes this setup (server-side, API key):
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { g8 } from "@graph8/sdk";
|
|
13
|
+
|
|
14
|
+
g8.init({ apiKey: process.env.G8_API_KEY! });
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Example values are placeholders that match each field's type. Only required fields are shown. Every example is type-checked against the SDK in CI.
|
|
18
|
+
|
|
19
|
+
Exact TypeScript types for every operation on this page, and every schema they use: [agency.d.ts](agency.d.ts).
|
|
20
|
+
|
|
21
|
+
## Operations
|
|
22
|
+
|
|
23
|
+
| Call | HTTP | Tier | Scope | Summary |
|
|
24
|
+
|---|---|---|---|---|
|
|
25
|
+
| [`getAccountHealth`](#op-getaccounthealth) | `GET /api/v1/agency/reports/health` | read | `analytics:read` | Get Account Health |
|
|
26
|
+
| [`getAgencyDialerDashboard`](#op-getagencydialerdashboard) | `GET /api/v1/agency/reports/dialer/dashboard` | read | `analytics:read` | Get Agency Dialer Dashboard |
|
|
27
|
+
| [`getAgencyDialerLeaderboard`](#op-getagencydialerleaderboard) | `GET /api/v1/agency/reports/dialer/leaderboard` | read | `analytics:read` | Get Agency Dialer Leaderboard |
|
|
28
|
+
| [`getAgencyDialerQualityLeaderboard`](#op-getagencydialerqualityleaderboard) | `GET /api/v1/agency/reports/dialer/quality-leaderboard` | read | `analytics:read` | Get Agency Dialer Quality Leaderboard |
|
|
29
|
+
| [`getAgencyLeaderboard`](#op-getagencyleaderboard) | `GET /api/v1/agency/reports/leaderboard` | read | `analytics:read` | Get Agency Leaderboard |
|
|
30
|
+
| [`getAgencyMe`](#op-getagencyme) ★ | `GET /api/v1/agency/me` | read | `account:read` | Get Agency Me |
|
|
31
|
+
| [`getAgencySdrLeaderboard`](#op-getagencysdrleaderboard) | `GET /api/v1/agency/reports/sdr-leaderboard` | read | `analytics:read` | Get Agency Sdr Leaderboard |
|
|
32
|
+
| [`getAgencySequenceLeaderboard`](#op-getagencysequenceleaderboard) | `GET /api/v1/agency/reports/sequence-leaderboard` | read | `analytics:read` | Get Agency Sequence Leaderboard |
|
|
33
|
+
| [`getAgencyTrends`](#op-getagencytrends) | `GET /api/v1/agency/reports/trends` | read | `analytics:read` | Get Agency Trends |
|
|
34
|
+
| [`getClientComparison`](#op-getclientcomparison) | `GET /api/v1/agency/reports/comparison` | read | `analytics:read` | Get Client Comparison |
|
|
35
|
+
| [`getClientDeliverability`](#op-getclientdeliverability) | `GET /api/v1/agency/reports/clients/{org_id}/deliverability` | read | `analytics:read` | Get Client Deliverability |
|
|
36
|
+
| [`getClientDetail`](#op-getclientdetail) | `GET /api/v1/agency/reports/clients/{org_id}` | read | `analytics:read` | Get Client Detail |
|
|
37
|
+
| [`getClientSequences`](#op-getclientsequences) | `GET /api/v1/agency/reports/clients/{org_id}/sequences` | read | `analytics:read` | Get Client Sequences |
|
|
38
|
+
| [`getConsolidatedSummary`](#op-getconsolidatedsummary) | `GET /api/v1/agency/reports/summary` | read | `analytics:read` | Get Consolidated Summary |
|
|
39
|
+
| [`getCrossOrgDeliverability`](#op-getcrossorgdeliverability) | `GET /api/v1/agency/reports/deliverability` | read | `analytics:read` | Get Cross Org Deliverability |
|
|
40
|
+
| [`getMeetingsByChannel`](#op-getmeetingsbychannel) | `GET /api/v1/agency/reports/meetings/by-channel` | read | `analytics:read` | Get Meetings By Channel |
|
|
41
|
+
| [`getMeetingsCountForChannel`](#op-getmeetingscountforchannel) | `GET /api/v1/agency/reports/meetings/count` | read | `analytics:read` | Get Meetings Count For Channel |
|
|
42
|
+
| [`getMeetingsLeaderboard`](#op-getmeetingsleaderboard) | `GET /api/v1/agency/reports/meetings` | read | `analytics:read` | Get Meetings Leaderboard |
|
|
43
|
+
| [`getVoiceAiAgentLeaderboard`](#op-getvoiceaiagentleaderboard) | `GET /api/v1/agency/reports/voice-ai/agent-leaderboard` | read | `analytics:read` | Get Voice Ai Agent Leaderboard |
|
|
44
|
+
| [`getVoiceAiDashboard`](#op-getvoiceaidashboard) | `GET /api/v1/agency/reports/voice-ai/dashboard` | read | `analytics:read` | Get Voice Ai Dashboard |
|
|
45
|
+
| [`getVoiceAiQualityLeaderboard`](#op-getvoiceaiqualityleaderboard) | `GET /api/v1/agency/reports/voice-ai/quality-leaderboard` | read | `analytics:read` | Get Voice Ai Quality Leaderboard |
|
|
46
|
+
| [`listAgencyClients`](#op-listagencyclients) ★ | `GET /api/v1/agency/clients` | read | `account:read` | List Agency Clients |
|
|
47
|
+
| [`searchAgencyGradedCalls`](#op-searchagencygradedcalls) | `POST /api/v1/agency/reports/dialer/grading/search` | read | `analytics:read` | Search Agency Graded Calls |
|
|
48
|
+
| [`searchVoiceAiGradedCalls`](#op-searchvoiceaigradedcalls) | `POST /api/v1/agency/reports/voice-ai/grading/search` | read | `analytics:read` | Search Voice Ai Graded Calls |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
<a id="op-getaccounthealth"></a>
|
|
53
|
+
|
|
54
|
+
### `g8.api.agency.getAccountHealth(input?)`
|
|
55
|
+
|
|
56
|
+
**Get Account Health**
|
|
57
|
+
|
|
58
|
+
- HTTP: `GET /api/v1/agency/reports/health`
|
|
59
|
+
- operationId: `get_account_health_agency_reports_health_get` (also callable as `g8.api.call("get_account_health_agency_reports_health_get", input)`)
|
|
60
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
61
|
+
- API-key scope: `analytics:read`
|
|
62
|
+
|
|
63
|
+
A health score per client - which accounts need attention.
|
|
64
|
+
|
|
65
|
+
The report to poll if you only poll one: it is the agency's own churn
|
|
66
|
+
early-warning, and it is cached for five minutes rather than one.
|
|
67
|
+
|
|
68
|
+
**Input**
|
|
69
|
+
|
|
70
|
+
| Field | Type | Required | Description |
|
|
71
|
+
|---|---|---|---|
|
|
72
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
73
|
+
|
|
74
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
75
|
+
|
|
76
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
77
|
+
|
|
78
|
+
**Example**
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
const result = await g8.api.agency.getAccountHealth();
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
<a id="op-getagencydialerdashboard"></a>
|
|
87
|
+
|
|
88
|
+
### `g8.api.agency.getAgencyDialerDashboard(input)`
|
|
89
|
+
|
|
90
|
+
**Get Agency Dialer Dashboard**
|
|
91
|
+
|
|
92
|
+
- HTTP: `GET /api/v1/agency/reports/dialer/dashboard`
|
|
93
|
+
- operationId: `get_agency_dialer_dashboard_agency_reports_dialer_dashboard_get` (also callable as `g8.api.call("get_agency_dialer_dashboard_agency_reports_dialer_dashboard_get", input)`)
|
|
94
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
95
|
+
- API-key scope: `analytics:read`
|
|
96
|
+
|
|
97
|
+
Dialer KPIs aggregated over every client.
|
|
98
|
+
|
|
99
|
+
**Input**
|
|
100
|
+
|
|
101
|
+
| Field | Type | Required | Description |
|
|
102
|
+
|---|---|---|---|
|
|
103
|
+
| `query.start_date` | `string` | yes | Start date, `YYYY-MM-DD`. |
|
|
104
|
+
| `query.end_date` | `string` | yes | End date, `YYYY-MM-DD`. |
|
|
105
|
+
| `query.org_filter` | `string \| null` | no | Narrow to ONE client org. Silently ignored when it names an org outside this agency's authorized set - it can select within the set, never widen it. |
|
|
106
|
+
|
|
107
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
108
|
+
|
|
109
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
110
|
+
|
|
111
|
+
**Example**
|
|
112
|
+
|
|
113
|
+
```ts
|
|
114
|
+
const result = await g8.api.agency.getAgencyDialerDashboard({ query: { start_date: "example", end_date: "example" } });
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
<a id="op-getagencydialerleaderboard"></a>
|
|
120
|
+
|
|
121
|
+
### `g8.api.agency.getAgencyDialerLeaderboard(input)`
|
|
122
|
+
|
|
123
|
+
**Get Agency Dialer Leaderboard**
|
|
124
|
+
|
|
125
|
+
- HTTP: `GET /api/v1/agency/reports/dialer/leaderboard`
|
|
126
|
+
- operationId: `get_agency_dialer_leaderboard_agency_reports_dialer_leaderboard_get` (also callable as `g8.api.call("get_agency_dialer_leaderboard_agency_reports_dialer_leaderboard_get", input)`)
|
|
127
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
128
|
+
- API-key scope: `analytics:read`
|
|
129
|
+
|
|
130
|
+
Every rep's dialling, across every client, ranked.
|
|
131
|
+
|
|
132
|
+
**Input**
|
|
133
|
+
|
|
134
|
+
| Field | Type | Required | Description |
|
|
135
|
+
|---|---|---|---|
|
|
136
|
+
| `query.start_date` | `string` | yes | Start date, `YYYY-MM-DD`. |
|
|
137
|
+
| `query.end_date` | `string` | yes | End date, `YYYY-MM-DD`. |
|
|
138
|
+
| `query.sort_by` | `"dials" \| "meetings_booked" \| "connect_rate" \| "talk_time_minutes" \| "avg_quality_score"` | no | Metric to rank on. default `"dials"` |
|
|
139
|
+
| `query.limit` | `integer` | no | Rows to return. default `20` |
|
|
140
|
+
| `query.org_filter` | `string \| null` | no | Narrow to ONE client org. Silently ignored when it names an org outside this agency's authorized set - it can select within the set, never widen it. |
|
|
141
|
+
|
|
142
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
143
|
+
|
|
144
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
145
|
+
|
|
146
|
+
**Example**
|
|
147
|
+
|
|
148
|
+
```ts
|
|
149
|
+
const result = await g8.api.agency.getAgencyDialerLeaderboard({ query: { start_date: "example", end_date: "example" } });
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
<a id="op-getagencydialerqualityleaderboard"></a>
|
|
155
|
+
|
|
156
|
+
### `g8.api.agency.getAgencyDialerQualityLeaderboard(input)`
|
|
157
|
+
|
|
158
|
+
**Get Agency Dialer Quality Leaderboard**
|
|
159
|
+
|
|
160
|
+
- HTTP: `GET /api/v1/agency/reports/dialer/quality-leaderboard`
|
|
161
|
+
- operationId: `get_agency_dialer_quality_leaderboard_agency_reports_dialer_quality_leaderboard_get` (also callable as `g8.api.call("get_agency_dialer_quality_leaderboard_agency_reports_dialer_quality_leaderboard_get", input)`)
|
|
162
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
163
|
+
- API-key scope: `analytics:read`
|
|
164
|
+
|
|
165
|
+
Call QUALITY scores, across every client - how calls went, not how many.
|
|
166
|
+
|
|
167
|
+
**Input**
|
|
168
|
+
|
|
169
|
+
| Field | Type | Required | Description |
|
|
170
|
+
|---|---|---|---|
|
|
171
|
+
| `query.start_date` | `string` | yes | Start date, `YYYY-MM-DD`. |
|
|
172
|
+
| `query.end_date` | `string` | yes | End date, `YYYY-MM-DD`. |
|
|
173
|
+
| `query.limit` | `integer` | no | Rows to return. default `20` |
|
|
174
|
+
| `query.org_filter` | `string \| null` | no | Narrow to ONE client org. Silently ignored when it names an org outside this agency's authorized set - it can select within the set, never widen it. |
|
|
175
|
+
|
|
176
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
177
|
+
|
|
178
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
179
|
+
|
|
180
|
+
**Example**
|
|
181
|
+
|
|
182
|
+
```ts
|
|
183
|
+
const result = await g8.api.agency.getAgencyDialerQualityLeaderboard({ query: { start_date: "example", end_date: "example" } });
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
<a id="op-getagencyleaderboard"></a>
|
|
189
|
+
|
|
190
|
+
### `g8.api.agency.getAgencyLeaderboard(input?)`
|
|
191
|
+
|
|
192
|
+
**Get Agency Leaderboard**
|
|
193
|
+
|
|
194
|
+
- HTTP: `GET /api/v1/agency/reports/leaderboard`
|
|
195
|
+
- operationId: `get_agency_leaderboard_agency_reports_leaderboard_get` (also callable as `g8.api.call("get_agency_leaderboard_agency_reports_leaderboard_get", input)`)
|
|
196
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
197
|
+
- API-key scope: `analytics:read`
|
|
198
|
+
|
|
199
|
+
Clients ranked against each other - best and worst performers.
|
|
200
|
+
|
|
201
|
+
**Input**
|
|
202
|
+
|
|
203
|
+
| Field | Type | Required | Description |
|
|
204
|
+
|---|---|---|---|
|
|
205
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
206
|
+
| `query.sort_by` | `"reply_rate" \| "emails_sent" \| "meetings_booked" \| "connect_rate"` | no | Metric to rank on. default `"reply_rate"` |
|
|
207
|
+
| `query.limit` | `integer` | no | Rows to return. default `20` |
|
|
208
|
+
| `query.meetings_channel` | `string \| null` | no | Count `meetings_booked` from ONE source channel instead of all of them. Changes what the ranking means, so set it deliberately. |
|
|
209
|
+
|
|
210
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
211
|
+
|
|
212
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
213
|
+
|
|
214
|
+
**Example**
|
|
215
|
+
|
|
216
|
+
```ts
|
|
217
|
+
const result = await g8.api.agency.getAgencyLeaderboard();
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
<a id="op-getagencyme"></a>
|
|
223
|
+
|
|
224
|
+
### `g8.api.agency.getAgencyMe(input?)`
|
|
225
|
+
|
|
226
|
+
**Get Agency Me**
|
|
227
|
+
|
|
228
|
+
- HTTP: `GET /api/v1/agency/me`
|
|
229
|
+
- operationId: `get_agency_me_agency_me_get` (also callable as `g8.api.call("get_agency_me_agency_me_get", input)`)
|
|
230
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
231
|
+
- API-key scope: `account:read`
|
|
232
|
+
- ★ Hand-written: [`g8.agency.me()`](../sdk-clients.md#g8-agency-me)
|
|
233
|
+
|
|
234
|
+
Describe the agency credential: agency org + authorized client count.
|
|
235
|
+
|
|
236
|
+
**Input**: none.
|
|
237
|
+
|
|
238
|
+
**Returns** `ApiResponse_dict_`: the envelope `{ data: Record<string, unknown>, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
239
|
+
|
|
240
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
241
|
+
|
|
242
|
+
**Example**
|
|
243
|
+
|
|
244
|
+
```ts
|
|
245
|
+
const result = await g8.api.agency.getAgencyMe();
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
<a id="op-getagencysdrleaderboard"></a>
|
|
251
|
+
|
|
252
|
+
### `g8.api.agency.getAgencySdrLeaderboard(input?)`
|
|
253
|
+
|
|
254
|
+
**Get Agency Sdr Leaderboard**
|
|
255
|
+
|
|
256
|
+
- HTTP: `GET /api/v1/agency/reports/sdr-leaderboard`
|
|
257
|
+
- operationId: `get_agency_sdr_leaderboard_agency_reports_sdr_leaderboard_get` (also callable as `g8.api.call("get_agency_sdr_leaderboard_agency_reports_sdr_leaderboard_get", input)`)
|
|
258
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
259
|
+
- API-key scope: `analytics:read`
|
|
260
|
+
|
|
261
|
+
Every rep at every client, ranked together.
|
|
262
|
+
|
|
263
|
+
**Input**
|
|
264
|
+
|
|
265
|
+
| Field | Type | Required | Description |
|
|
266
|
+
|---|---|---|---|
|
|
267
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
268
|
+
| `query.sort_by` | `"reply_rate" \| "emails_sent" \| "meetings_booked" \| "activity_score" \| "dials" \| "connected" \| "talk_time_minutes" \| "grade_overall"` | no | Metric to rank on. default `"reply_rate"` |
|
|
269
|
+
| `query.limit` | `integer` | no | Rows to return. default `20` |
|
|
270
|
+
|
|
271
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
272
|
+
|
|
273
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
274
|
+
|
|
275
|
+
**Example**
|
|
276
|
+
|
|
277
|
+
```ts
|
|
278
|
+
const result = await g8.api.agency.getAgencySdrLeaderboard();
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
<a id="op-getagencysequenceleaderboard"></a>
|
|
284
|
+
|
|
285
|
+
### `g8.api.agency.getAgencySequenceLeaderboard(input?)`
|
|
286
|
+
|
|
287
|
+
**Get Agency Sequence Leaderboard**
|
|
288
|
+
|
|
289
|
+
- HTTP: `GET /api/v1/agency/reports/sequence-leaderboard`
|
|
290
|
+
- operationId: `get_agency_sequence_leaderboard_agency_reports_sequence_leaderboard_get` (also callable as `g8.api.call("get_agency_sequence_leaderboard_agency_reports_sequence_leaderboard_get", input)`)
|
|
291
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
292
|
+
- API-key scope: `analytics:read`
|
|
293
|
+
|
|
294
|
+
Every sequence at every client, ranked together.
|
|
295
|
+
|
|
296
|
+
What an agency reuses a playbook on: the sequence that works at one client
|
|
297
|
+
is the one to run at the next.
|
|
298
|
+
|
|
299
|
+
**Input**
|
|
300
|
+
|
|
301
|
+
| Field | Type | Required | Description |
|
|
302
|
+
|---|---|---|---|
|
|
303
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
304
|
+
| `query.sort_by` | `"reply_rate" \| "contacted" \| "meetings_booked" \| "voice_ai_dials"` | no | Metric to rank on. default `"reply_rate"` |
|
|
305
|
+
| `query.limit` | `integer` | no | Rows to return. default `20` |
|
|
306
|
+
| `query.org_filter` | `string \| null` | no | Narrow to ONE client org. Silently ignored when it names an org outside this agency's authorized set - it can select within the set, never widen it. |
|
|
307
|
+
|
|
308
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
309
|
+
|
|
310
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
311
|
+
|
|
312
|
+
**Example**
|
|
313
|
+
|
|
314
|
+
```ts
|
|
315
|
+
const result = await g8.api.agency.getAgencySequenceLeaderboard();
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
<a id="op-getagencytrends"></a>
|
|
321
|
+
|
|
322
|
+
### `g8.api.agency.getAgencyTrends(input?)`
|
|
323
|
+
|
|
324
|
+
**Get Agency Trends**
|
|
325
|
+
|
|
326
|
+
- HTTP: `GET /api/v1/agency/reports/trends`
|
|
327
|
+
- operationId: `get_agency_trends_agency_reports_trends_get` (also callable as `g8.api.call("get_agency_trends_agency_reports_trends_get", input)`)
|
|
328
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
329
|
+
- API-key scope: `analytics:read`
|
|
330
|
+
|
|
331
|
+
Activity across every client over time.
|
|
332
|
+
|
|
333
|
+
**Input**
|
|
334
|
+
|
|
335
|
+
| Field | Type | Required | Description |
|
|
336
|
+
|---|---|---|---|
|
|
337
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
338
|
+
| `query.granularity` | `"day" \| "week"` | no | Bucket size. default `"day"` |
|
|
339
|
+
|
|
340
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
341
|
+
|
|
342
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
343
|
+
|
|
344
|
+
**Example**
|
|
345
|
+
|
|
346
|
+
```ts
|
|
347
|
+
const result = await g8.api.agency.getAgencyTrends();
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
352
|
+
<a id="op-getclientcomparison"></a>
|
|
353
|
+
|
|
354
|
+
### `g8.api.agency.getClientComparison(input?)`
|
|
355
|
+
|
|
356
|
+
**Get Client Comparison**
|
|
357
|
+
|
|
358
|
+
- HTTP: `GET /api/v1/agency/reports/comparison`
|
|
359
|
+
- operationId: `get_client_comparison_agency_reports_comparison_get` (also callable as `g8.api.call("get_client_comparison_agency_reports_comparison_get", input)`)
|
|
360
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
361
|
+
- API-key scope: `analytics:read`
|
|
362
|
+
|
|
363
|
+
Every client side by side on every metric, unranked.
|
|
364
|
+
|
|
365
|
+
The leaderboard sorts on ONE metric; this is the whole grid, for when the
|
|
366
|
+
question is not "who is top" but "who is different".
|
|
367
|
+
|
|
368
|
+
**Input**
|
|
369
|
+
|
|
370
|
+
| Field | Type | Required | Description |
|
|
371
|
+
|---|---|---|---|
|
|
372
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
373
|
+
|
|
374
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
375
|
+
|
|
376
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
377
|
+
|
|
378
|
+
**Example**
|
|
379
|
+
|
|
380
|
+
```ts
|
|
381
|
+
const result = await g8.api.agency.getClientComparison();
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
---
|
|
385
|
+
|
|
386
|
+
<a id="op-getclientdeliverability"></a>
|
|
387
|
+
|
|
388
|
+
### `g8.api.agency.getClientDeliverability(input)`
|
|
389
|
+
|
|
390
|
+
**Get Client Deliverability**
|
|
391
|
+
|
|
392
|
+
- HTTP: `GET /api/v1/agency/reports/clients/{org_id}/deliverability`
|
|
393
|
+
- operationId: `get_client_deliverability_agency_reports_clients__org_id__deliverability_get` (also callable as `g8.api.call("get_client_deliverability_agency_reports_clients__org_id__deliverability_get", input)`)
|
|
394
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
395
|
+
- API-key scope: `analytics:read`
|
|
396
|
+
|
|
397
|
+
One client's sending health.
|
|
398
|
+
|
|
399
|
+
**Input**
|
|
400
|
+
|
|
401
|
+
| Field | Type | Required | Description |
|
|
402
|
+
|---|---|---|---|
|
|
403
|
+
| `path.org_id` | `string` | yes | Client org id. |
|
|
404
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
405
|
+
|
|
406
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
407
|
+
|
|
408
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
409
|
+
|
|
410
|
+
**Example**
|
|
411
|
+
|
|
412
|
+
```ts
|
|
413
|
+
const result = await g8.api.agency.getClientDeliverability({ path: { org_id: "id" } });
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
<a id="op-getclientdetail"></a>
|
|
419
|
+
|
|
420
|
+
### `g8.api.agency.getClientDetail(input)`
|
|
421
|
+
|
|
422
|
+
**Get Client Detail**
|
|
423
|
+
|
|
424
|
+
- HTTP: `GET /api/v1/agency/reports/clients/{org_id}`
|
|
425
|
+
- operationId: `get_client_detail_agency_reports_clients__org_id__get` (also callable as `g8.api.call("get_client_detail_agency_reports_clients__org_id__get", input)`)
|
|
426
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
427
|
+
- API-key scope: `analytics:read`
|
|
428
|
+
|
|
429
|
+
One client's full metric set.
|
|
430
|
+
|
|
431
|
+
**Input**
|
|
432
|
+
|
|
433
|
+
| Field | Type | Required | Description |
|
|
434
|
+
|---|---|---|---|
|
|
435
|
+
| `path.org_id` | `string` | yes | Client org id, from GET /agency/clients. |
|
|
436
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
437
|
+
|
|
438
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
439
|
+
|
|
440
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
441
|
+
|
|
442
|
+
**Example**
|
|
443
|
+
|
|
444
|
+
```ts
|
|
445
|
+
const result = await g8.api.agency.getClientDetail({ path: { org_id: "id" } });
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
---
|
|
449
|
+
|
|
450
|
+
<a id="op-getclientsequences"></a>
|
|
451
|
+
|
|
452
|
+
### `g8.api.agency.getClientSequences(input)`
|
|
453
|
+
|
|
454
|
+
**Get Client Sequences**
|
|
455
|
+
|
|
456
|
+
- HTTP: `GET /api/v1/agency/reports/clients/{org_id}/sequences`
|
|
457
|
+
- operationId: `get_client_sequences_agency_reports_clients__org_id__sequences_get` (also callable as `g8.api.call("get_client_sequences_agency_reports_clients__org_id__sequences_get", input)`)
|
|
458
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
459
|
+
- API-key scope: `analytics:read`
|
|
460
|
+
|
|
461
|
+
One client's live sequence states and their performance.
|
|
462
|
+
|
|
463
|
+
**Input**
|
|
464
|
+
|
|
465
|
+
| Field | Type | Required | Description |
|
|
466
|
+
|---|---|---|---|
|
|
467
|
+
| `path.org_id` | `string` | yes | Client org id. |
|
|
468
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
469
|
+
|
|
470
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
471
|
+
|
|
472
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
473
|
+
|
|
474
|
+
**Example**
|
|
475
|
+
|
|
476
|
+
```ts
|
|
477
|
+
const result = await g8.api.agency.getClientSequences({ path: { org_id: "id" } });
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
---
|
|
481
|
+
|
|
482
|
+
<a id="op-getconsolidatedsummary"></a>
|
|
483
|
+
|
|
484
|
+
### `g8.api.agency.getConsolidatedSummary(input?)`
|
|
485
|
+
|
|
486
|
+
**Get Consolidated Summary**
|
|
487
|
+
|
|
488
|
+
- HTTP: `GET /api/v1/agency/reports/summary`
|
|
489
|
+
- operationId: `get_consolidated_summary_agency_reports_summary_get` (also callable as `g8.api.call("get_consolidated_summary_agency_reports_summary_get", input)`)
|
|
490
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
491
|
+
- API-key scope: `analytics:read`
|
|
492
|
+
|
|
493
|
+
Every client's numbers, added up. The agency top line.
|
|
494
|
+
|
|
495
|
+
**Input**
|
|
496
|
+
|
|
497
|
+
| Field | Type | Required | Description |
|
|
498
|
+
|---|---|---|---|
|
|
499
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
500
|
+
|
|
501
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
502
|
+
|
|
503
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
504
|
+
|
|
505
|
+
**Example**
|
|
506
|
+
|
|
507
|
+
```ts
|
|
508
|
+
const result = await g8.api.agency.getConsolidatedSummary();
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
---
|
|
512
|
+
|
|
513
|
+
<a id="op-getcrossorgdeliverability"></a>
|
|
514
|
+
|
|
515
|
+
### `g8.api.agency.getCrossOrgDeliverability(input?)`
|
|
516
|
+
|
|
517
|
+
**Get Cross Org Deliverability**
|
|
518
|
+
|
|
519
|
+
- HTTP: `GET /api/v1/agency/reports/deliverability`
|
|
520
|
+
- operationId: `get_cross_org_deliverability_agency_reports_deliverability_get` (also callable as `g8.api.call("get_cross_org_deliverability_agency_reports_deliverability_get", input)`)
|
|
521
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
522
|
+
- API-key scope: `analytics:read`
|
|
523
|
+
|
|
524
|
+
Sending health across every client, in one view.
|
|
525
|
+
|
|
526
|
+
**Input**
|
|
527
|
+
|
|
528
|
+
| Field | Type | Required | Description |
|
|
529
|
+
|---|---|---|---|
|
|
530
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
531
|
+
|
|
532
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
533
|
+
|
|
534
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
535
|
+
|
|
536
|
+
**Example**
|
|
537
|
+
|
|
538
|
+
```ts
|
|
539
|
+
const result = await g8.api.agency.getCrossOrgDeliverability();
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
---
|
|
543
|
+
|
|
544
|
+
<a id="op-getmeetingsbychannel"></a>
|
|
545
|
+
|
|
546
|
+
### `g8.api.agency.getMeetingsByChannel(input?)`
|
|
547
|
+
|
|
548
|
+
**Get Meetings By Channel**
|
|
549
|
+
|
|
550
|
+
- HTTP: `GET /api/v1/agency/reports/meetings/by-channel`
|
|
551
|
+
- operationId: `get_meetings_by_channel_agency_reports_meetings_by_channel_get` (also callable as `g8.api.call("get_meetings_by_channel_agency_reports_meetings_by_channel_get", input)`)
|
|
552
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
553
|
+
- API-key scope: `analytics:read`
|
|
554
|
+
|
|
555
|
+
Which channel booked each meeting, across every client.
|
|
556
|
+
|
|
557
|
+
**Input**
|
|
558
|
+
|
|
559
|
+
| Field | Type | Required | Description |
|
|
560
|
+
|---|---|---|---|
|
|
561
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
562
|
+
| `query.org_filter` | `string \| null` | no | Narrow to ONE client org. Silently ignored when it names an org outside this agency's authorized set - it can select within the set, never widen it. |
|
|
563
|
+
|
|
564
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
565
|
+
|
|
566
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
567
|
+
|
|
568
|
+
**Example**
|
|
569
|
+
|
|
570
|
+
```ts
|
|
571
|
+
const result = await g8.api.agency.getMeetingsByChannel();
|
|
572
|
+
```
|
|
573
|
+
|
|
574
|
+
---
|
|
575
|
+
|
|
576
|
+
<a id="op-getmeetingscountforchannel"></a>
|
|
577
|
+
|
|
578
|
+
### `g8.api.agency.getMeetingsCountForChannel(input)`
|
|
579
|
+
|
|
580
|
+
**Get Meetings Count For Channel**
|
|
581
|
+
|
|
582
|
+
- HTTP: `GET /api/v1/agency/reports/meetings/count`
|
|
583
|
+
- operationId: `get_meetings_count_for_channel_agency_reports_meetings_count_get` (also callable as `g8.api.call("get_meetings_count_for_channel_agency_reports_meetings_count_get", input)`)
|
|
584
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
585
|
+
- API-key scope: `analytics:read`
|
|
586
|
+
|
|
587
|
+
One channel's meeting count, across every client.
|
|
588
|
+
|
|
589
|
+
The cheap version of `/meetings/by-channel` when only one channel is
|
|
590
|
+
wanted - it does not compute the rest.
|
|
591
|
+
|
|
592
|
+
**Input**
|
|
593
|
+
|
|
594
|
+
| Field | Type | Required | Description |
|
|
595
|
+
|---|---|---|---|
|
|
596
|
+
| `query.channel` | `string` | yes | The single channel to count. |
|
|
597
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
598
|
+
| `query.org_filter` | `string \| null` | no | Narrow to ONE client org. Silently ignored when it names an org outside this agency's authorized set - it can select within the set, never widen it. |
|
|
599
|
+
|
|
600
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
601
|
+
|
|
602
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
603
|
+
|
|
604
|
+
**Example**
|
|
605
|
+
|
|
606
|
+
```ts
|
|
607
|
+
const result = await g8.api.agency.getMeetingsCountForChannel({ query: { channel: "example" } });
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
---
|
|
611
|
+
|
|
612
|
+
<a id="op-getmeetingsleaderboard"></a>
|
|
613
|
+
|
|
614
|
+
### `g8.api.agency.getMeetingsLeaderboard(input?)`
|
|
615
|
+
|
|
616
|
+
**Get Meetings Leaderboard**
|
|
617
|
+
|
|
618
|
+
- HTTP: `GET /api/v1/agency/reports/meetings`
|
|
619
|
+
- operationId: `get_meetings_leaderboard_agency_reports_meetings_get` (also callable as `g8.api.call("get_meetings_leaderboard_agency_reports_meetings_get", input)`)
|
|
620
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
621
|
+
- API-key scope: `analytics:read`
|
|
622
|
+
|
|
623
|
+
Meetings per client, with cost per meeting.
|
|
624
|
+
|
|
625
|
+
**Input**
|
|
626
|
+
|
|
627
|
+
| Field | Type | Required | Description |
|
|
628
|
+
|---|---|---|---|
|
|
629
|
+
| `query.days` | `integer` | no | Trailing window, in days, ending today (UTC). default `30` |
|
|
630
|
+
|
|
631
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
632
|
+
|
|
633
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
634
|
+
|
|
635
|
+
**Example**
|
|
636
|
+
|
|
637
|
+
```ts
|
|
638
|
+
const result = await g8.api.agency.getMeetingsLeaderboard();
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
---
|
|
642
|
+
|
|
643
|
+
<a id="op-getvoiceaiagentleaderboard"></a>
|
|
644
|
+
|
|
645
|
+
### `g8.api.agency.getVoiceAiAgentLeaderboard(input)`
|
|
646
|
+
|
|
647
|
+
**Get Voice Ai Agent Leaderboard**
|
|
648
|
+
|
|
649
|
+
- HTTP: `GET /api/v1/agency/reports/voice-ai/agent-leaderboard`
|
|
650
|
+
- operationId: `get_voice_ai_agent_leaderboard_agency_reports_voice_ai_agent_leaderboard_get` (also callable as `g8.api.call("get_voice_ai_agent_leaderboard_agency_reports_voice_ai_agent_leaderboard_get", input)`)
|
|
651
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
652
|
+
- API-key scope: `analytics:read`
|
|
653
|
+
|
|
654
|
+
Voice AI agents ranked across every client.
|
|
655
|
+
|
|
656
|
+
**Input**
|
|
657
|
+
|
|
658
|
+
| Field | Type | Required | Description |
|
|
659
|
+
|---|---|---|---|
|
|
660
|
+
| `query.start_date` | `string` | yes | Start date, `YYYY-MM-DD`. |
|
|
661
|
+
| `query.end_date` | `string` | yes | End date, `YYYY-MM-DD`. |
|
|
662
|
+
| `query.sort_by` | `"calls_initiated" \| "calls_completed" \| "completion_rate" \| "voicemails_left"` | no | Metric to rank on. default `"calls_initiated"` |
|
|
663
|
+
| `query.limit` | `integer` | no | Rows to return. default `20` |
|
|
664
|
+
| `query.org_filter` | `string \| null` | no | Narrow to ONE client org. Silently ignored when it names an org outside this agency's authorized set - it can select within the set, never widen it. |
|
|
665
|
+
|
|
666
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
667
|
+
|
|
668
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
669
|
+
|
|
670
|
+
**Example**
|
|
671
|
+
|
|
672
|
+
```ts
|
|
673
|
+
const result = await g8.api.agency.getVoiceAiAgentLeaderboard({ query: { start_date: "example", end_date: "example" } });
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
---
|
|
677
|
+
|
|
678
|
+
<a id="op-getvoiceaidashboard"></a>
|
|
679
|
+
|
|
680
|
+
### `g8.api.agency.getVoiceAiDashboard(input)`
|
|
681
|
+
|
|
682
|
+
**Get Voice Ai Dashboard**
|
|
683
|
+
|
|
684
|
+
- HTTP: `GET /api/v1/agency/reports/voice-ai/dashboard`
|
|
685
|
+
- operationId: `get_voice_ai_dashboard_agency_reports_voice_ai_dashboard_get` (also callable as `g8.api.call("get_voice_ai_dashboard_agency_reports_voice_ai_dashboard_get", input)`)
|
|
686
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
687
|
+
- API-key scope: `analytics:read`
|
|
688
|
+
|
|
689
|
+
Voice AI totals, per-client summary and daily trend.
|
|
690
|
+
|
|
691
|
+
The app calls this route `dashboard-v2`. An iteration number is an
|
|
692
|
+
internal fact about how the report was built, not something a customer
|
|
693
|
+
should have to type, so it is published as `dashboard` - there is no v1 in
|
|
694
|
+
this contract for it to be confused with.
|
|
695
|
+
|
|
696
|
+
**Input**
|
|
697
|
+
|
|
698
|
+
| Field | Type | Required | Description |
|
|
699
|
+
|---|---|---|---|
|
|
700
|
+
| `query.start_date` | `string` | yes | Start date, `YYYY-MM-DD`. |
|
|
701
|
+
| `query.end_date` | `string` | yes | End date, `YYYY-MM-DD`. |
|
|
702
|
+
| `query.org_filter` | `string \| null` | no | Narrow to ONE client org. Silently ignored when it names an org outside this agency's authorized set - it can select within the set, never widen it. |
|
|
703
|
+
|
|
704
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
705
|
+
|
|
706
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
707
|
+
|
|
708
|
+
**Example**
|
|
709
|
+
|
|
710
|
+
```ts
|
|
711
|
+
const result = await g8.api.agency.getVoiceAiDashboard({ query: { start_date: "example", end_date: "example" } });
|
|
712
|
+
```
|
|
713
|
+
|
|
714
|
+
---
|
|
715
|
+
|
|
716
|
+
<a id="op-getvoiceaiqualityleaderboard"></a>
|
|
717
|
+
|
|
718
|
+
### `g8.api.agency.getVoiceAiQualityLeaderboard(input)`
|
|
719
|
+
|
|
720
|
+
**Get Voice Ai Quality Leaderboard**
|
|
721
|
+
|
|
722
|
+
- HTTP: `GET /api/v1/agency/reports/voice-ai/quality-leaderboard`
|
|
723
|
+
- operationId: `get_voice_ai_quality_leaderboard_agency_reports_voice_ai_quality_leaderboard_get` (also callable as `g8.api.call("get_voice_ai_quality_leaderboard_agency_reports_voice_ai_quality_leaderboard_get", input)`)
|
|
724
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
725
|
+
- API-key scope: `analytics:read`
|
|
726
|
+
|
|
727
|
+
Voice AI agents ranked on call QUALITY rather than volume.
|
|
728
|
+
|
|
729
|
+
**Input**
|
|
730
|
+
|
|
731
|
+
| Field | Type | Required | Description |
|
|
732
|
+
|---|---|---|---|
|
|
733
|
+
| `query.start_date` | `string` | yes | Start date, `YYYY-MM-DD`. |
|
|
734
|
+
| `query.end_date` | `string` | yes | End date, `YYYY-MM-DD`. |
|
|
735
|
+
| `query.limit` | `integer` | no | Rows to return. default `20` |
|
|
736
|
+
| `query.org_filter` | `string \| null` | no | Narrow to ONE client org. Silently ignored when it names an org outside this agency's authorized set - it can select within the set, never widen it. |
|
|
737
|
+
|
|
738
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
739
|
+
|
|
740
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
741
|
+
|
|
742
|
+
**Example**
|
|
743
|
+
|
|
744
|
+
```ts
|
|
745
|
+
const result = await g8.api.agency.getVoiceAiQualityLeaderboard({ query: { start_date: "example", end_date: "example" } });
|
|
746
|
+
```
|
|
747
|
+
|
|
748
|
+
---
|
|
749
|
+
|
|
750
|
+
<a id="op-listagencyclients"></a>
|
|
751
|
+
|
|
752
|
+
### `g8.api.agency.listAgencyClients(input?)`
|
|
753
|
+
|
|
754
|
+
**List Agency Clients**
|
|
755
|
+
|
|
756
|
+
- HTTP: `GET /api/v1/agency/clients`
|
|
757
|
+
- operationId: `list_agency_clients_agency_clients_get` (also callable as `g8.api.call("list_agency_clients_agency_clients_get", input)`)
|
|
758
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
759
|
+
- API-key scope: `account:read`
|
|
760
|
+
- ★ Hand-written: [`g8.agency.clients()`](../sdk-clients.md#g8-agency-clients)
|
|
761
|
+
|
|
762
|
+
List the client orgs this agency key may target via X-Target-Org-Id.
|
|
763
|
+
|
|
764
|
+
Each entry's ``org_id`` is the value to pass in the ``X-Target-Org-Id``
|
|
765
|
+
header on any subsequent request to operate that client org.
|
|
766
|
+
|
|
767
|
+
**Input**: none.
|
|
768
|
+
|
|
769
|
+
**Returns** `ApiResponse_list_dict__`: the envelope `{ data: Array<Record<string, unknown>>, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
770
|
+
|
|
771
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
772
|
+
|
|
773
|
+
**Example**
|
|
774
|
+
|
|
775
|
+
```ts
|
|
776
|
+
const result = await g8.api.agency.listAgencyClients();
|
|
777
|
+
```
|
|
778
|
+
|
|
779
|
+
---
|
|
780
|
+
|
|
781
|
+
<a id="op-searchagencygradedcalls"></a>
|
|
782
|
+
|
|
783
|
+
### `g8.api.agency.searchAgencyGradedCalls(input)`
|
|
784
|
+
|
|
785
|
+
**Search Agency Graded Calls**
|
|
786
|
+
|
|
787
|
+
- HTTP: `POST /api/v1/agency/reports/dialer/grading/search`
|
|
788
|
+
- operationId: `search_agency_graded_calls_agency_reports_dialer_grading_search_post` (also callable as `g8.api.call("search_agency_graded_calls_agency_reports_dialer_grading_search_post", input)`)
|
|
789
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
790
|
+
- API-key scope: `analytics:read`
|
|
791
|
+
|
|
792
|
+
Find graded calls across every client.
|
|
793
|
+
|
|
794
|
+
A POST because the filter is a body, NOT because it writes - it reads, and
|
|
795
|
+
it is tiered `read` for that reason rather than deriving `write` from the
|
|
796
|
+
method. The body is an open dict here because it is an open dict in the
|
|
797
|
+
app: the handler reads known keys off it with `.get` and ignores the rest,
|
|
798
|
+
so mirroring it as a closed model would REJECT filters the app accepts.
|
|
799
|
+
|
|
800
|
+
**Input**
|
|
801
|
+
|
|
802
|
+
| Field | Type | Required | Description |
|
|
803
|
+
|---|---|---|---|
|
|
804
|
+
| `body` | `Record<string, unknown>` | yes | Request body; fields below. |
|
|
805
|
+
|
|
806
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
807
|
+
|
|
808
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
809
|
+
|
|
810
|
+
**Example**
|
|
811
|
+
|
|
812
|
+
```ts
|
|
813
|
+
const result = await g8.api.agency.searchAgencyGradedCalls({ body: {} });
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
---
|
|
817
|
+
|
|
818
|
+
<a id="op-searchvoiceaigradedcalls"></a>
|
|
819
|
+
|
|
820
|
+
### `g8.api.agency.searchVoiceAiGradedCalls(input)`
|
|
821
|
+
|
|
822
|
+
**Search Voice Ai Graded Calls**
|
|
823
|
+
|
|
824
|
+
- HTTP: `POST /api/v1/agency/reports/voice-ai/grading/search`
|
|
825
|
+
- operationId: `search_voice_ai_graded_calls_agency_reports_voice_ai_grading_search_post` (also callable as `g8.api.call("search_voice_ai_graded_calls_agency_reports_voice_ai_grading_search_post", input)`)
|
|
826
|
+
- Tier: `read`: reads data; safe to call and to retry
|
|
827
|
+
- API-key scope: `analytics:read`
|
|
828
|
+
|
|
829
|
+
Find graded Voice AI calls across every client. Reads; does not write.
|
|
830
|
+
|
|
831
|
+
**Input**
|
|
832
|
+
|
|
833
|
+
| Field | Type | Required | Description |
|
|
834
|
+
|---|---|---|---|
|
|
835
|
+
| `body` | `Record<string, unknown>` | yes | Request body; fields below. |
|
|
836
|
+
|
|
837
|
+
**Returns** `ApiResponse_ReportPayload_`: the envelope `{ data: ReportPayload, ... }`. `g8.api` returns the envelope as-is, so read `result.data`.
|
|
838
|
+
|
|
839
|
+
Other envelope fields: `pagination` (PaginationMeta).
|
|
840
|
+
|
|
841
|
+
**Example**
|
|
842
|
+
|
|
843
|
+
```ts
|
|
844
|
+
const result = await g8.api.agency.searchVoiceAiGradedCalls({ body: {} });
|
|
845
|
+
```
|