---
title: "API & Terraform schedules | Grafana OnCall documentation"
description: "Learn how to use API and Terraform to manage on-call schedules."
---

# API &amp; Terraform schedules

If your schedules became comprehensive, or you would like to distribute the same scheduling patterns through multiple teams in the org, we suggest considering storing schedules as code.

- [Get started with Grafana OnCall and Terraform (blogpost)](/blog/2022/08/29/get-started-with-grafana-oncall-and-terraform/)
- [Grafana Terraform provider reference (OnCall resources are managed using this provider)](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/oncall_schedule)
- [OnCall API](/docs/oncall/latest/oncall-api-reference/)
