import requests
url = "https://app.oneperfectslice.ai/api/public/v1/filters/crm-fields"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"fields": [
{
"entityType": "deal",
"fieldName": "industry",
"fieldLabel": "Industry",
"fieldType": "string",
"isSystem": false,
"options": [
{
"label": "Law Firm",
"value": "law_firm"
}
]
}
]
}
}Returns the CRM fields configured for filtering in your organization, including field type, label, and valid options for enumeration fields. Use this to build crmCustomFieldFilters in your requests.
import requests
url = "https://app.oneperfectslice.ai/api/public/v1/filters/crm-fields"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"fields": [
{
"entityType": "deal",
"fieldName": "industry",
"fieldLabel": "Industry",
"fieldType": "string",
"isSystem": false,
"options": [
{
"label": "Law Firm",
"value": "law_firm"
}
]
}
]
}
}Documentation Index
Fetch the complete documentation index at: https://docs.oneperfectslice.ai/llms.txt
Use this file to discover all available pages before exploring further.