Render prompt modules
curl --request POST \
--url https://api.pineyard.ai/agents/studio/modules/render \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"moduleIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({moduleIds: ['<string>']})
};
fetch('https://api.pineyard.ai/agents/studio/modules/render', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/agents/studio/modules/render"
payload = { "moduleIds": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"snippets": [
{
"id": "<string>",
"text": "<string>"
}
]
}Agent studio
Render prompt modules
Render selected prompt modules to insertable snippets, filled with agent context
POST
/
agents
/
studio
/
modules
/
render
Render prompt modules
curl --request POST \
--url https://api.pineyard.ai/agents/studio/modules/render \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"moduleIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({moduleIds: ['<string>']})
};
fetch('https://api.pineyard.ai/agents/studio/modules/render', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/agents/studio/modules/render"
payload = { "moduleIds": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"snippets": [
{
"id": "<string>",
"text": "<string>"
}
]
}Required scope:
agents.view
Requires prompt visibility enabled for your workspace. Otherwise the request is refused; see Errors.

