Get slice details
Slices
Get slice details
Returns the complete definition for a single slice, including its output schema, preferred model, and evidence grouping strategy. Use this to understand what a slice produces before running it.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import requests
url = "https://app.oneperfectslice.ai/api/public/v1/slices/{key}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.oneperfectslice.ai/api/public/v1/slices/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.oneperfectslice.ai/api/public/v1/slices/{key} \
--header 'Authorization: Bearer <token>'{
"data": {
"key": "high_intent_deals",
"title": "High-Intent Deals",
"objective": "pipeline",
"description": "Surfaces deals showing strong buying signals.",
"elementKeys": [
"intent_signal",
"budget_confirmation"
],
"outputSchema": {},
"preferredModel": "gpt-5-mini",
"includeCrmData": true,
"evidenceGrouping": "ByElement"
}
}Returns the complete definition for a single slice, including its output schema, preferred model, and evidence grouping strategy. Use this to understand what a slice produces before running it.
import requests
url = "https://app.oneperfectslice.ai/api/public/v1/slices/{key}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.oneperfectslice.ai/api/public/v1/slices/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://app.oneperfectslice.ai/api/public/v1/slices/{key} \
--header 'Authorization: Bearer <token>'{
"data": {
"key": "high_intent_deals",
"title": "High-Intent Deals",
"objective": "pipeline",
"description": "Surfaces deals showing strong buying signals.",
"elementKeys": [
"intent_signal",
"budget_confirmation"
],
"outputSchema": {},
"preferredModel": "gpt-5-mini",
"includeCrmData": true,
"evidenceGrouping": "ByElement"
}
}outputSchema field tells you the exact shape of the structured result you’ll get when a run completes. Use it to plan how your integration handles the output.