---
updatedAt: 2026-04-21T03:40:36.000Z
agentTools:
  projectIndex: https://docs.ternary.app/llms.txt
---

# Create a resource subscription

Create an email subscription for automated delivery of reports or dashboards. Subscriptions send scheduled emails at the specified frequency.

**Frequency options:** `DAILY`, `WEEKLY`, `MONTHLY`

For weekly subscriptions, specify `dayOfWeek`. For monthly subscriptions, specify both `dayOfWeek` and `weekOfMonth`.

See [Reports](https://docs.ternary.app/docs/reports) for more details.

Schedule fields are evaluated in UTC. Delivery needs `dayOfWeek` for weekly schedules and both `dayOfWeek` and `weekOfMonth` (FIRST or LAST occurrence of that weekday) for monthly schedules. The API accepts schedules missing these fields, but they never match a delivery schedule. `hourOfDay` is a UTC hour, not a timezone-aware local-time schedule.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core API",
    "description": "Ternary Resource Management API",
    "version": "1.0.0",
    "contact": {},
    "license": {
      "name": "MIT",
      "identifier": "MIT"
    }
  },
  "tags": [
    {
      "name": "Resource Subscriptions",
      "description": "Manage email subscriptions for automated delivery of reports and dashboards."
    }
  ],
  "servers": [
    {
      "url": "https://core-api.ternary.app/api",
      "description": "Core API"
    },
    {
      "url": "https://core-api.eu.ternary.app/api",
      "description": "Core API (EU)"
    }
  ],
  "externalDocs": {
    "description": "Raw JSON",
    "url": "https://core-api.ternary.app/api/docs.json"
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "FailureResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "HTTP status code",
            "example": "400 - Bad Request"
          },
          "message": {
            "type": "string",
            "description": "Error message",
            "example": "ERROR_INVALID_PARAMS"
          },
          "reason": {
            "type": "string",
            "description": "Error reason code"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "CreateResourceSubscriptionResponseBody": {
        "type": "object",
        "properties": {
          "subscriptionID": {
            "type": "string"
          }
        },
        "required": [
          "subscriptionID"
        ]
      },
      "CreateResourceSubscriptionRequestBody": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "tenantID": {
                "type": "string",
                "format": "uuid",
                "description": "Unique identifier for an organization",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "example": "92f36764-5af2-4ff5-a494-d841f32040be"
              },
              "dashboardID": {
                "type": "string",
                "format": "uuid",
                "description": "Dashboard ID. Required if creating a Dashboard Subscription.",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "example": "92f36764-5af2-4ff5-a494-d841f32040be"
              },
              "reportID": {
                "type": "string",
                "format": "uuid",
                "description": "Report ID. Required if creating a Report Subscription.",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "example": "92f36764-5af2-4ff5-a494-d841f32040be"
              },
              "emails": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "email"
                },
                "minItems": 1,
                "description": "Subscription emails"
              },
              "frequency": {
                "type": "string",
                "enum": [
                  "DAILY",
                  "WEEKLY",
                  "MONTHLY"
                ],
                "description": "Report frequency"
              },
              "hourOfDay": {
                "type": "string",
                "enum": [
                  "TWELVE_AM",
                  "ONE_AM",
                  "TWO_AM",
                  "THREE_AM",
                  "FOUR_AM",
                  "FIVE_AM",
                  "SIX_AM",
                  "SEVEN_AM",
                  "EIGHT_AM",
                  "NINE_AM",
                  "TEN_AM",
                  "ELEVEN_AM",
                  "TWELVE_PM",
                  "ONE_PM",
                  "TWO_PM",
                  "THREE_PM",
                  "FOUR_PM",
                  "FIVE_PM",
                  "SIX_PM",
                  "SEVEN_PM",
                  "EIGHT_PM",
                  "NINE_PM",
                  "TEN_PM",
                  "ELEVEN_PM"
                ],
                "description": "Report delivery hour"
              },
              "dayOfWeek": {
                "type": "string",
                "enum": [
                  "SUNDAY",
                  "MONDAY",
                  "TUESDAY",
                  "WEDNESDAY",
                  "THURSDAY",
                  "FRIDAY",
                  "SATURDAY"
                ],
                "description": "Report delivery day"
              },
              "slackChannelIDs": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                },
                "description": "Slack channel IDs to send notifications to"
              },
              "weekOfMonth": {
                "type": "string",
                "enum": [
                  "FIRST",
                  "LAST"
                ],
                "description": "Report delivery week of the month"
              }
            },
            "required": [
              "tenantID",
              "emails",
              "frequency",
              "hourOfDay"
            ]
          },
          {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "dashboardID": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Dashboard id",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "example": "92f36764-5af2-4ff5-a494-d841f32040be"
                  },
                  "resourceType": {
                    "type": "string",
                    "enum": [
                      "DASHBOARD"
                    ]
                  }
                },
                "required": [
                  "dashboardID",
                  "resourceType"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "reportID": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Report id",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "example": "92f36764-5af2-4ff5-a494-d841f32040be"
                  },
                  "resourceType": {
                    "type": "string",
                    "enum": [
                      "REPORT"
                    ]
                  }
                },
                "required": [
                  "reportID",
                  "resourceType"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  "paths": {
    "/resource-subscriptions": {
      "post": {
        "summary": "Create a resource subscription",
        "tags": [
          "Resource Subscriptions"
        ],
        "operationId": "createResourceSubscription",
        "description": "Create an email subscription for automated delivery of reports or dashboards. Subscriptions send scheduled emails at the specified frequency.\n\n**Frequency options:** `DAILY`, `WEEKLY`, `MONTHLY`\n\nFor weekly subscriptions, specify `dayOfWeek`. For monthly subscriptions, specify both `dayOfWeek` and `weekOfMonth`.\n\nSee [Reports](https://docs.ternary.app/docs/reports) for more details.\n\nSchedule fields are evaluated in UTC. Delivery needs `dayOfWeek` for weekly schedules and both `dayOfWeek` and `weekOfMonth` (FIRST or LAST occurrence of that weekday) for monthly schedules. The API accepts schedules missing these fields, but they never match a delivery schedule. `hourOfDay` is a UTC hour, not a timezone-aware local-time schedule.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateResourceSubscriptionRequestBody"
              },
              "examples": {
                "createResourceSubscription": {
                  "value": {
                    "tenantID": "92f36764-5af2-4ff5-a494-d841f32040be",
                    "reportID": "390e5f9a-d79c-450c-ab49-9f916641fbe1",
                    "emails": [
                      "demo-user@example.com"
                    ],
                    "frequency": "DAILY",
                    "hourOfDay": "SEVEN_PM",
                    "resourceType": "REPORT"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateResourceSubscriptionResponseBody"
                },
                "examples": {
                  "createResourceSubscription": {
                    "value": {
                      "subscriptionID": "f950cc6b-1eed-4fa2-8aa0-8a28da946b20"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "400Response": {
                    "value": {
                      "code": "400 - Bad Request",
                      "message": "ERROR_INVALID_PARAMS"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "401Response": {
                    "value": {
                      "code": "401 - Unauthorized",
                      "message": "ERROR_UNAUTHORIZED"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "403Response": {
                    "value": {
                      "code": "403 - Forbidden",
                      "message": "ERROR_PERMISSION_DENIED"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The subscribed report or dashboard does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "404Response": {
                    "value": {
                      "code": "404 - Not Found",
                      "message": "HTTP/ERROR",
                      "reason": "CreateResourceSubscriptionCommandFailure/REPORT_NOT_FOUND"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Core API",
      "tags": [
        "Alert Rule",
        "Alert Rule Events",
        "API Keys",
        "AWS Rate Recommendations",
        "Azure Rate Recommendations",
        "Billing Rules",
        "Budget",
        "Cases",
        "Cost Alerts",
        "Custom Label",
        "Custom Measures",
        "Data Integration",
        "Data Integration: Alibaba",
        "Data Integration: AWS",
        "Data Integration: Azure",
        "Data Integration: Custom Data",
        "Data Integration: Databricks",
        "Data Integration: GCP",
        "Data Integration: Oracle",
        "Data Integration: Snowflake",
        "Dimension Preferences",
        "GCP Rate Recommendations",
        "Integrations",
        "Label Map",
        "MCP Availability",
        "MCP Client Usage",
        "Measure Preferences",
        "MSP Billing Information",
        "MSP Child",
        "MSP Shared Payer Integrations",
        "MSP Tenant Settings",
        "Permissions",
        "Ramp Plans",
        "Report",
        "Resource Subscriptions",
        "Role",
        "Savings Opportunity Filter",
        "Scoped View",
        "Support Tickets",
        "Tenant",
        "Tenant SSO Config",
        "Usage Recommendations",
        "User",
        "User Group Config"
      ]
    }
  ]
}
```