Support of substitutions in API