Connect your own metrics API
The Custom API Intelligence source reads a metrics server you operate. Your server provides a schema and metric rows; AppGram uses their declared names, units and aggregation meaning in the data catalog.
The Custom API Intelligence source reads a metrics server you operate. Your server provides a schema and metric rows; AppGram uses their declared names, units and aggregation meaning in the data catalog.
Prepare your server
Implement two JSON endpoints under a public HTTPS base URL:
- GET
/schema: declares the company, available resources, measures and dimensions. - GET
/metrics: returns dated metric rows for the requested resource and time range, with pagination when needed.
AppGram sends the configured API key as Authorization: Bearer …. Reject an invalid key. Do not embed credentials in the base URL.
The schema must define each measure’s unique key, label, unit and supported aggregation. Use sum for quantities that accumulate over time and an appropriate state aggregation, such as latest, for values such as an end-of-day balance. Declare dimensions used by the rows.
Connect and map
- Open Intelligence → Sources → Custom API.
- Enter the HTTPS base URL and API key requested by the form.
- Choose Connect. AppGram reads and validates
GET /schemabefore saving. Resolve any error in the form; there is no separate schema-results dashboard. - Open Mappings → Add mapping, select Custom API and choose a discovered resource. Review the backfill slider before creating the mapping.
- Inspect the initial synchronization and any row warnings.
- Use the resulting catalog fields in a supported dashboard.
Metric row conventions
Return one row per metric, date and declared dimension combination. Do not mix an overall total with its component rows when AppGram will aggregate the breakdown. A row supplies the metric key, period, numeric value and applicable dimensions.
For this connector, percentages are supplied in percentage points: 3.2 means 3.2%. AppGram normalizes them for its metric representation. Use the declared unit consistently rather than multiplying percentages a second time.
The metrics request supplies a resource and inclusive from/to dates; use next_cursor for pagination and omit it or return null on the final page. Dates without data can return no rows.
Troubleshooting
Resolve authentication errors, schema validation and invalid rows separately. Undeclared metrics/dimensions, missing numeric values or unreadable dates can produce warnings and skipped rows. A source connection can succeed while a later sync still needs attention.
Hosted production connections require a reachable public HTTPS endpoint. A local development address is not a production connection. Keep credentials private and use the mapping’s run history for redacted diagnostics.
The source card can show 0 metrics before connection because this connector discovers definitions from your server. That is not a schema-validation result. A saved connection and a visible resource are separate from a completed, warning-free synchronization.

Example workspace in light mode. Sample data; follow the numbered callouts.

Example workspace in light mode. Sample data; follow the numbered callouts.

Example workspace in light mode. Sample data; follow the numbered callouts.
Was this article helpful?