# DBT Cloud: programmatically pass the variable value when calling model/job via API

**URL:** <https://discourse.getdbt.com/t/dbt-cloud-programmatically-pass-the-variable-value-when-calling-model-job-via-api/20426>\
**Category:** Help\
**Tags:** snowflake, dbt-cloud\
**Created:** [November 17, 2025, 9:27am UTC](https://discourse.getdbt.com/t/dbt-cloud-programmatically-pass-the-variable-value-when-calling-model-job-via-api/20426 "2025-11-17T09:27:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwanilko](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/ashwanilko/32/5123_2.png) [@ashwanilko](https://discourse.getdbt.com/u/ashwanilko)\
**Post date:** [November 17, 2025, 9:27am UTC](https://discourse.getdbt.com/t/dbt-cloud-programmatically-pass-the-variable-value-when-calling-model-job-via-api/20426/1 "2025-11-17T09:27:33Z")

</div>

## The problem I’m having

I have a model created in dbt Cloud and we have setup a job to call the model. However, there is a need to call this job via external application (C#). I am using dbt Cloud API to call this job however I need to pass value for a variable when calling the job/model. Since environment variable override is not available via Cloud job API, I can’t achieve it. Is someone experienced similar situation and if there is any solution to achieve it?

```auto

```

---

<div class="post-metadata">

**Author:** ![a\_slack\_user](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/a_slack_user/32/1629_2.png) [@a\_slack\_user](https://discourse.getdbt.com/u/a_slack_user)\
**Post date:** [November 17, 2025, 9:17pm UTC](https://discourse.getdbt.com/t/dbt-cloud-programmatically-pass-the-variable-value-when-calling-model-job-via-api/20426/2 "2025-11-17T21:17:34Z")

</div>

You will need to use the steps override parameter.

Note: `@Jeremy Yeo` originally [posted this reply in Slack](https://getdbt.slack.com/archives/CBSQTAPLG/p1763414243569719?thread_ts=1763371674.119539&cid=CBSQTAPLG). It might not have transferred perfectly.

---

<div class="post-metadata">

**Author:** ![ashwanilko](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/ashwanilko/32/5123_2.png) [@ashwanilko](https://discourse.getdbt.com/u/ashwanilko)\
**Post date:** [November 17, 2025, 11:10pm UTC](https://discourse.getdbt.com/t/dbt-cloud-programmatically-pass-the-variable-value-when-calling-model-job-via-api/20426/3 "2025-11-17T23:10:37Z")

</div>

thanks, I am currently testing it out.

---

<div class="post-metadata">

**Author:** ![ashwanilko](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/ashwanilko/32/5123_2.png) [@ashwanilko](https://discourse.getdbt.com/u/ashwanilko)\
**Post date:** [November 20, 2025, 8:28pm UTC](https://discourse.getdbt.com/t/dbt-cloud-programmatically-pass-the-variable-value-when-calling-model-job-via-api/20426/4 "2025-11-20T20:28:27Z")

</div>

the step\_override works and I have created detailed blog for anyone to refer : [https://medium.com/@ashwanilko/dbt-cloud-how-to-pass-runtime-variables-via-api-calls-91518ea8d5b4](https://medium.com/@ashwanilko/dbt-cloud-how-to-pass-runtime-variables-via-api-calls-91518ea8d5b4)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/1X/a7a7ca1fe379aaf90952b0e13118a817babcd14f.png) [@system](https://discourse.getdbt.com/u/system)\
**Post date:** [November 27, 2025, 8:29pm UTC](https://discourse.getdbt.com/t/dbt-cloud-programmatically-pass-the-variable-value-when-calling-model-job-via-api/20426/5 "2025-11-27T20:29:06Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
