Create scheduled prompt
curl --request POST \
--url https://api.nops.io/v1/scheduled-prompts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "Weekly EC2 summary",
"prompt": "Summarize last week EC2 spend by account.",
"canvasId": "clxcanvas01",
"scope": "private",
"enabled": true,
"scheduleType": "recurring",
"scheduledAt": "2026-07-20T14:00:00.000Z",
"recurrence": {
"frequency": "weekly",
"timezone": "America/New_York",
"weekday": 1,
"dayOfMonth": null
},
"category": "FinOps Analyst",
"domain": "Compute",
"emailEnabled": true,
"emailRecipients": [
"finops@example.com"
],
"emailSubject": "Weekly EC2 summary",
"channels": [
{
"provider": "slack",
"channelId": "C01234567",
"channelName": "finops-alerts"
}
]
}
'import requests
url = "https://api.nops.io/v1/scheduled-prompts"
payload = {
"name": "Weekly EC2 summary",
"prompt": "Summarize last week EC2 spend by account.",
"canvasId": "clxcanvas01",
"scope": "private",
"enabled": True,
"scheduleType": "recurring",
"scheduledAt": "2026-07-20T14:00:00.000Z",
"recurrence": {
"frequency": "weekly",
"timezone": "America/New_York",
"weekday": 1,
"dayOfMonth": None
},
"category": "FinOps Analyst",
"domain": "Compute",
"emailEnabled": True,
"emailRecipients": ["finops@example.com"],
"emailSubject": "Weekly EC2 summary",
"channels": [
{
"provider": "slack",
"channelId": "C01234567",
"channelName": "finops-alerts"
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Weekly EC2 summary',
prompt: 'Summarize last week EC2 spend by account.',
canvasId: 'clxcanvas01',
scope: 'private',
enabled: true,
scheduleType: 'recurring',
scheduledAt: '2026-07-20T14:00:00.000Z',
recurrence: {
frequency: 'weekly',
timezone: 'America/New_York',
weekday: 1,
dayOfMonth: null
},
category: 'FinOps Analyst',
domain: 'Compute',
emailEnabled: true,
emailRecipients: ['finops@example.com'],
emailSubject: 'Weekly EC2 summary',
channels: [{provider: 'slack', channelId: 'C01234567', channelName: 'finops-alerts'}]
})
};
fetch('https://api.nops.io/v1/scheduled-prompts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nops.io/v1/scheduled-prompts"
payload := strings.NewReader("{\n \"name\": \"Weekly EC2 summary\",\n \"prompt\": \"Summarize last week EC2 spend by account.\",\n \"canvasId\": \"clxcanvas01\",\n \"scope\": \"private\",\n \"enabled\": true,\n \"scheduleType\": \"recurring\",\n \"scheduledAt\": \"2026-07-20T14:00:00.000Z\",\n \"recurrence\": {\n \"frequency\": \"weekly\",\n \"timezone\": \"America/New_York\",\n \"weekday\": 1,\n \"dayOfMonth\": null\n },\n \"category\": \"FinOps Analyst\",\n \"domain\": \"Compute\",\n \"emailEnabled\": true,\n \"emailRecipients\": [\n \"finops@example.com\"\n ],\n \"emailSubject\": \"Weekly EC2 summary\",\n \"channels\": [\n {\n \"provider\": \"slack\",\n \"channelId\": \"C01234567\",\n \"channelName\": \"finops-alerts\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"prompt": {
"id": "clxprompt01xyz",
"organizationId": "org-1",
"nopsClientId": 42,
"createdById": "user-1",
"canvasId": "clxcanvas01",
"scope": "private",
"name": "Weekly EC2 summary",
"prompt": "Summarize last week EC2 spend by account.",
"enabled": true,
"category": "FinOps Analyst",
"domain": "Compute",
"emailEnabled": true,
"emailRecipients": [
"finops@example.com"
],
"emailSubject": "Weekly EC2 summary",
"channelTargets": [
{
"provider": "slack",
"channelId": "C01234567",
"channelName": "finops-alerts"
}
],
"scheduleType": "recurring",
"scheduledAt": "2026-07-20T14:00:00.000Z",
"recurrenceFrequency": "weekly",
"recurrenceTimezone": "America/New_York",
"recurrenceWeekday": 1,
"recurrenceDayOfMonth": null,
"cronExpression": "0 14 * * 1",
"nextRunAt": "2026-07-20T18:00:00.000Z",
"lastRunAt": null,
"createdAt": "2026-07-17T12:00:00.000Z",
"updatedAt": "2026-07-17T12:00:00.000Z"
}
}
}{
"error": {
"code": "forbidden_scope",
"message": "API key is missing required scope: budgets:write",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "forbidden_scope",
"message": "API key is missing required scope: budgets:write",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}Scheduled prompts
Create scheduled prompt
POST
https://api.nops.io
/
v1
/
scheduled-prompts
Create scheduled prompt
curl --request POST \
--url https://api.nops.io/v1/scheduled-prompts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "Weekly EC2 summary",
"prompt": "Summarize last week EC2 spend by account.",
"canvasId": "clxcanvas01",
"scope": "private",
"enabled": true,
"scheduleType": "recurring",
"scheduledAt": "2026-07-20T14:00:00.000Z",
"recurrence": {
"frequency": "weekly",
"timezone": "America/New_York",
"weekday": 1,
"dayOfMonth": null
},
"category": "FinOps Analyst",
"domain": "Compute",
"emailEnabled": true,
"emailRecipients": [
"finops@example.com"
],
"emailSubject": "Weekly EC2 summary",
"channels": [
{
"provider": "slack",
"channelId": "C01234567",
"channelName": "finops-alerts"
}
]
}
'import requests
url = "https://api.nops.io/v1/scheduled-prompts"
payload = {
"name": "Weekly EC2 summary",
"prompt": "Summarize last week EC2 spend by account.",
"canvasId": "clxcanvas01",
"scope": "private",
"enabled": True,
"scheduleType": "recurring",
"scheduledAt": "2026-07-20T14:00:00.000Z",
"recurrence": {
"frequency": "weekly",
"timezone": "America/New_York",
"weekday": 1,
"dayOfMonth": None
},
"category": "FinOps Analyst",
"domain": "Compute",
"emailEnabled": True,
"emailRecipients": ["finops@example.com"],
"emailSubject": "Weekly EC2 summary",
"channels": [
{
"provider": "slack",
"channelId": "C01234567",
"channelName": "finops-alerts"
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Weekly EC2 summary',
prompt: 'Summarize last week EC2 spend by account.',
canvasId: 'clxcanvas01',
scope: 'private',
enabled: true,
scheduleType: 'recurring',
scheduledAt: '2026-07-20T14:00:00.000Z',
recurrence: {
frequency: 'weekly',
timezone: 'America/New_York',
weekday: 1,
dayOfMonth: null
},
category: 'FinOps Analyst',
domain: 'Compute',
emailEnabled: true,
emailRecipients: ['finops@example.com'],
emailSubject: 'Weekly EC2 summary',
channels: [{provider: 'slack', channelId: 'C01234567', channelName: 'finops-alerts'}]
})
};
fetch('https://api.nops.io/v1/scheduled-prompts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nops.io/v1/scheduled-prompts"
payload := strings.NewReader("{\n \"name\": \"Weekly EC2 summary\",\n \"prompt\": \"Summarize last week EC2 spend by account.\",\n \"canvasId\": \"clxcanvas01\",\n \"scope\": \"private\",\n \"enabled\": true,\n \"scheduleType\": \"recurring\",\n \"scheduledAt\": \"2026-07-20T14:00:00.000Z\",\n \"recurrence\": {\n \"frequency\": \"weekly\",\n \"timezone\": \"America/New_York\",\n \"weekday\": 1,\n \"dayOfMonth\": null\n },\n \"category\": \"FinOps Analyst\",\n \"domain\": \"Compute\",\n \"emailEnabled\": true,\n \"emailRecipients\": [\n \"finops@example.com\"\n ],\n \"emailSubject\": \"Weekly EC2 summary\",\n \"channels\": [\n {\n \"provider\": \"slack\",\n \"channelId\": \"C01234567\",\n \"channelName\": \"finops-alerts\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"prompt": {
"id": "clxprompt01xyz",
"organizationId": "org-1",
"nopsClientId": 42,
"createdById": "user-1",
"canvasId": "clxcanvas01",
"scope": "private",
"name": "Weekly EC2 summary",
"prompt": "Summarize last week EC2 spend by account.",
"enabled": true,
"category": "FinOps Analyst",
"domain": "Compute",
"emailEnabled": true,
"emailRecipients": [
"finops@example.com"
],
"emailSubject": "Weekly EC2 summary",
"channelTargets": [
{
"provider": "slack",
"channelId": "C01234567",
"channelName": "finops-alerts"
}
],
"scheduleType": "recurring",
"scheduledAt": "2026-07-20T14:00:00.000Z",
"recurrenceFrequency": "weekly",
"recurrenceTimezone": "America/New_York",
"recurrenceWeekday": 1,
"recurrenceDayOfMonth": null,
"cronExpression": "0 14 * * 1",
"nextRunAt": "2026-07-20T18:00:00.000Z",
"lastRunAt": null,
"createdAt": "2026-07-17T12:00:00.000Z",
"updatedAt": "2026-07-17T12:00:00.000Z"
}
}
}{
"error": {
"code": "forbidden_scope",
"message": "API key is missing required scope: budgets:write",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}{
"error": {
"code": "forbidden_scope",
"message": "API key is missing required scope: budgets:write",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}Authorizations
API key from Settings → Security → API Keys. Pass as Authorization: Bearer YOUR_API_KEY.
Headers
Unique key for safe retries on write requests (required, max 64 characters).
Maximum string length:
64Body
application/json
JSON request body
Response
Create scheduled prompt
JSON object
Was this page helpful?
⌘I