Observability
View metadata about your deployed Chalk features and resolvers.
Occasionally, you may need to inspect a running Chalk environment to review metadata about your configured Chalk pipelines. You can use the provided Rest API to query for this metadata as part of your admin dashboards, monitoring tooling, or team knowledge management.
Note: if you use a user-scoped token (i.e. one that’s derived from chalk login),
you will need to specify the environment in which to trigger your resolver via the X-Chalk-Env-id header.
AuthorizationstringAuthorization: Bearer $(chalk token)X-Chalk-Env-Idstring?curl -XGET -H "Authorization: Bearer $(chalk token)" \
-H "X-Chalk-Env-Id: <your-environment-id>" \
https://api.chalk.ai/v1/environment/graph
# Returns
{
"deployment_id": "<deployment-id>",
"features": […],
"resolvers": […]
}{deployment_id}/graphdeployment_idstringAuthorizationstringAuthorization: Bearer $(chalk token)X-Chalk-Env-Idstring?curl -XGET -H "Authorization: Bearer $(chalk token)" \
-H "X-Chalk-Env-Id: <your-environment-id>" \
https://api.chalk.ai/v1/deployments/<your-deployment-id>/graph
# Returns
{
"deployment_id": "<deployment-id>",
"features": […],
"resolvers": […]
}deployment_idstringfeaturesFeatureInfo[]FeatureInfo objects, one for each Feature in your deployment. Most of the metadata in each `FeatureInfo` is defined in your Feature() declarationfqnstringuser.idnamestringdetailobjecttagsstring[]created_atstringupdated_atstringetl_offline_to_onlinebooleanresolversResolverInfo[]ResolverInfo objects, one for each Resolver in your deployment.fqnstringexample.resolvers.get_userexecution_kind"online" | "offline" | "stream" | "sink"tagsstring[]feature_inputsstring[]feature_outputsstring[]cronstring | nullupdated_atstring