Read your prompt drafts
curl --request GET \
--url https://app.chatobserver.com/api/v2/prompts/drafts \
--header 'x-chatobserver-key: <api-key>'const options = {method: 'GET', headers: {'x-chatobserver-key': '<api-key>'}};
fetch('https://app.chatobserver.com/api/v2/prompts/drafts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.chatobserver.com/api/v2/prompts/drafts"
headers = {"x-chatobserver-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"drafts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": "<string>",
"updatedAt": "<string>",
"values": {
"promptText": "<string>",
"targetPlatforms": [
"chatgpt"
],
"targetRegions": [
"<string>"
],
"analysisPolicy": {
"ranking": "auto",
"sentiment": "auto"
},
"scheduleFrequency": "daily",
"scheduleHour": 11,
"scheduleMinute": 29,
"scheduleTimezone": "<string>",
"scheduleIntervalMinutes": null,
"scheduleDaysOfWeek": [
3
],
"personaIds": [
123
],
"groupIds": [
123
]
}
}
],
"multipleDraftsEnabled": true,
"saved": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": "<string>",
"updatedAt": "<string>",
"values": {
"promptText": "<string>",
"targetPlatforms": [
"chatgpt"
],
"targetRegions": [
"<string>"
],
"analysisPolicy": {
"ranking": "auto",
"sentiment": "auto"
},
"scheduleFrequency": "daily",
"scheduleHour": 11,
"scheduleMinute": 29,
"scheduleTimezone": "<string>",
"scheduleIntervalMinutes": null,
"scheduleDaysOfWeek": [
3
],
"personaIds": [
123
],
"groupIds": [
123
]
}
}
}
}Prompts
Read your prompt drafts
Same workspace feature and role permissions as the app. Writes commit their successful retry receipt atomically. Personal drafts require user-authorized OAuth; service API keys cannot access a member’s drafts. New saves use null ID and revision; updates/removal require the current revision. Multiple-draft feature access remains enforced. Saving does not create or run a prompt.
GET
/
api
/
v2
/
prompts
/
drafts
Read your prompt drafts
curl --request GET \
--url https://app.chatobserver.com/api/v2/prompts/drafts \
--header 'x-chatobserver-key: <api-key>'const options = {method: 'GET', headers: {'x-chatobserver-key': '<api-key>'}};
fetch('https://app.chatobserver.com/api/v2/prompts/drafts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.chatobserver.com/api/v2/prompts/drafts"
headers = {"x-chatobserver-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"drafts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": "<string>",
"updatedAt": "<string>",
"values": {
"promptText": "<string>",
"targetPlatforms": [
"chatgpt"
],
"targetRegions": [
"<string>"
],
"analysisPolicy": {
"ranking": "auto",
"sentiment": "auto"
},
"scheduleFrequency": "daily",
"scheduleHour": 11,
"scheduleMinute": 29,
"scheduleTimezone": "<string>",
"scheduleIntervalMinutes": null,
"scheduleDaysOfWeek": [
3
],
"personaIds": [
123
],
"groupIds": [
123
]
}
}
],
"multipleDraftsEnabled": true,
"saved": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": "<string>",
"updatedAt": "<string>",
"values": {
"promptText": "<string>",
"targetPlatforms": [
"chatgpt"
],
"targetRegions": [
"<string>"
],
"analysisPolicy": {
"ranking": "auto",
"sentiment": "auto"
},
"scheduleFrequency": "daily",
"scheduleHour": 11,
"scheduleMinute": 29,
"scheduleTimezone": "<string>",
"scheduleIntervalMinutes": null,
"scheduleDaysOfWeek": [
3
],
"personaIds": [
123
],
"groupIds": [
123
]
}
}
}
}