DBT API Endpoints

Buck Ryan · Friday Demos · April 17, 2026 · 4:20

A demo of new DBT API endpoints in Omni, covering config management, environment creation/update, and exposures. The highlight is a full end-to-end workflow for customers with dynamic DBT…

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Oh. Let's find the right screen. Screen two. Okay. I've been working on some API endpoints to integrate with the DBT stuff recently. I should switch to this window and give you the docs. These endpoints now all exist. You can get your DBT config. You can make or you can modify it. You can list environments, create environments, update them.

  2. Um and you can get exposures, which is a one of the more interesting ones. I'm going to demo why you might need this because one of the more interesting use cases are customers that have dynamic DBT environments. They might make an environment for each pull request. And so we're going to simulate that. And I've put together some GitHub workflows and actions and code to call the API endpoints and such.

  3. And so what I'm going to do is go into my repository and make a fake model. Add it. Commit. Uh I meant to do that on a branch. I push that up. And make a pull request. So we're going to start get some stuff happening with this pull request being made. All right. So I've got this all working.

  4. Oh brother. Rome stuff is getting in my way. Can't click buttons and such. Okay. So I have a staging environment where I have where where it's actually talking. So what we're going to see is that um a DBT environment was just created specifically for my pull request, which is pull request number 23. Uh so the environment now exists.

  5. I can also go in and check out that it's um well this is not our endpoint stuff, but um there's been a schema made. I ran a DBT build to actually make the schema in this database. And over here in the IDE it has made a branch for my pull request. Set the DBT environment for that branch.

  6. Uh it didn't run a schema refresh because you know, in doing this work I realized uh we're a little bit we need we need one more feature added to the refresh schema API endpoint to make this full workflow work. So I got to run that manually. And there's the schema and such for my pull request with the DBT metadata made.

  7. And then I could merge this, but I also have the workflow working where if I close this it will clean up stuff. So now the cleanup action is going to go remove that stuff that was just made. Let's give this a moment to run. All right. And hopefully our branch just disappeared. It did. Go back into the DBT settings and the DBT environment is gone.

  8. Um and it even cleaned up inside the warehouse. So yeah, that's the full workflow of sort of everything that is out there right now. I didn't, you know, add anything for exposures, but you can imagine how that would work. Um and yeah, coming up will be uh augmenting this workflow with um customers that do this and do deferral builds where you're only building a portion of the models that you actually modified.

  9. Um but that's that's coming up soon. That's it.