Create Ingestion Source
Create Ingestion Source
https://statsigapi.net/console/v1/ingestionAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Body
application/jsondatasetstringrequiredMetricscolumn_mappingobjectShow child attributes
unit_idstringrequiredThe unique user identifier this metric is for. This might not necessarily be a user_id - it could be a custom_id of some kind. Make sure this is in the same format as your logged unit_ids.
id_typestringrequiredThe id_type the unit_id represents. Must be valid id_type. Default Statsig types are user_id/stable_id, but you may have generated custom id_types. Make sure this matches (case sensitive) a customID in your project, or you won’t get experiment results.
dateidstringrequiredDate of the daily metric, ISO formatted (ex. 2021-02-17). We’ll load custom metrics to whatever date you use here.
metric_namestringrequiredString format. Not null. Length < 128 characters.
metric_valuestringNumeric value for the metric. This OR both of numerator and denominator need to be provided.
nullnumeratorstringRequired for ratio metrics. If present along with a denominator in any record, the metric will be treated as ratio and only calculated for users with non-null denominators
nulldenominatorstringRequired for ratio metrics. If present along with a numerator in any record, the metric will be treated as ratio and only calculated for users with non-null numerators.
nulltypestringrequiredredshiftbigquery-v2snowflake-v2databricksazure-synapses3athenaadlssource_namestringrequireduse_delta_sharingbooleantruequerystringsharestringschemastringtablestringenabledbooleanResponse
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
idstringrequiredtypestringrequiredenabledbooleanrequireddataobjectrequiredstatusintegerrequired400messagestringrequiredstatusintegerrequired404messagestringrequiredWas this helpful?
For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.