# API Connection Error

**URL:** <https://discourse.getdbt.com/t/api-connection-error/8906>\
**Category:** Help\
**Tags:** airflow, dbt-cloud, api\
**Created:** [June 28, 2023, 7:08pm UTC](https://discourse.getdbt.com/t/api-connection-error/8906 "2023-06-28T19:08:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngugijeff3](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/ngugijeff3/32/2627_2.png) [@ngugijeff3](https://discourse.getdbt.com/u/ngugijeff3)\
**Post date:** [June 28, 2023, 7:08pm UTC](https://discourse.getdbt.com/t/api-connection-error/8906/1 "2023-06-28T19:08:37Z")

</div>

## The problem I’m having

I have built a dbt model and I want to orchestrate it using airflow. I have created the service token on dbt cloud and established the connection on airflow. However once I run the DAG I get the error - ```  
{“status”:{“code”:404,“is\_success”:false,“user\_message”:“The requested resource was not found. Please check that you have the proper permissions. If you are seeing this in error, please contact support!”,“developer\_message”:“”},“data”:null}  
[2023-06-28, 18:51:54 UTC] {taskinstance.py:1851} ERROR - Task failed with exception

```auto

## The context of why I'm trying to do this: To connect dbt Cloud with Airflow (Locally deployed)

## Some example code or error messages

```

{“status”:{“code”:404,“is\_success”:false,“user\_message”:“The requested resource was not found. Please check that you have the proper permissions. If you are seeing this in error, please contact support!”,“developer\_message”:“”},“data”:null}  
[2023-06-28, 18:51:54 UTC] {taskinstance.py:1851} ERROR - Task failed with exception

```auto

```
