curl --request PATCH \
--url https://api.bland.ai/v1/citation_schemas/ \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '
{
"name": "<string>",
"description": "<string>",
"schema": {}
}
'{
"status": 200,
"data": {
"id": "3f4a2b1c-8e9d-4c7f-b2a1-5e8d9c7f6a2b",
"name": "Enhanced Customer Information Extraction",
"description": "Extracts comprehensive customer demographics, contact information, and lead qualification data from call transcripts",
"org_id": "7c8b9a2d-3e4f-5c6b-8a9d-2e3f4c5b6a7c",
"schema": {
"variables": [
{
"name": "Customer Name",
"description": "The full name of the customer",
"type": "string"
},
{
"name": "Customer Email",
"description": "The email address provided by the customer",
"type": "string"
},
{
"name": "Phone Number",
"description": "The customer's phone number",
"type": "string"
},
{
"name": "Lead Score",
"description": "Numeric score indicating lead quality (1-10)",
"type": "number"
},
{
"name": "Interested in Demo",
"description": "Whether the customer wants to schedule a demo",
"type": "boolean"
}
],
"groupings": [
{
"name": "Contact Information",
"variables": ["Customer Name", "Customer Email", "Phone Number"]
},
{
"name": "Lead Qualification",
"variables": ["Lead Score", "Interested in Demo"]
}
],
"conditions": [
{
"condition": {
"value": "5",
"operator": ">=",
"variable": "Lead Score"
},
"variables": [
{
"name": "Follow-up Priority",
"type": "string",
"description": "Priority level for follow-up (high, medium, low)"
}
]
}
]
},
"created_at": "2023-12-15T14:30:00.000Z"
},
"errors": null
}
Update an existing citation schema’s name, description, or schema configuration.
curl --request PATCH \
--url https://api.bland.ai/v1/citation_schemas/ \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '
{
"name": "<string>",
"description": "<string>",
"schema": {}
}
'{
"status": 200,
"data": {
"id": "3f4a2b1c-8e9d-4c7f-b2a1-5e8d9c7f6a2b",
"name": "Enhanced Customer Information Extraction",
"description": "Extracts comprehensive customer demographics, contact information, and lead qualification data from call transcripts",
"org_id": "7c8b9a2d-3e4f-5c6b-8a9d-2e3f4c5b6a7c",
"schema": {
"variables": [
{
"name": "Customer Name",
"description": "The full name of the customer",
"type": "string"
},
{
"name": "Customer Email",
"description": "The email address provided by the customer",
"type": "string"
},
{
"name": "Phone Number",
"description": "The customer's phone number",
"type": "string"
},
{
"name": "Lead Score",
"description": "Numeric score indicating lead quality (1-10)",
"type": "number"
},
{
"name": "Interested in Demo",
"description": "Whether the customer wants to schedule a demo",
"type": "boolean"
}
],
"groupings": [
{
"name": "Contact Information",
"variables": ["Customer Name", "Customer Email", "Phone Number"]
},
{
"name": "Lead Qualification",
"variables": ["Lead Score", "Interested in Demo"]
}
],
"conditions": [
{
"condition": {
"value": "5",
"operator": ">=",
"variable": "Lead Score"
},
"variables": [
{
"name": "Follow-up Priority",
"type": "string",
"description": "Priority level for follow-up (high, medium, low)"
}
]
}
]
},
"created_at": "2023-12-15T14:30:00.000Z"
},
"errors": null
}
variables: Array of variable definitions for data extractiongroupings: Array of related variable collectionsconditions: Array of conditional logic rules{
"variables": [
{
"name": "Customer Name",
"description": "The full name of the customer",
"type": "string"
},
{
"name": "Lead Score",
"description": "Numeric score indicating lead quality (1-10)",
"type": "number"
}
],
"groupings": [
{
"name": "Lead Information",
"variables": ["Customer Name", "Lead Score"]
}
],
"conditions": []
}
{
"status": 200,
"data": {
"id": "3f4a2b1c-8e9d-4c7f-b2a1-5e8d9c7f6a2b",
"name": "Enhanced Customer Information Extraction",
"description": "Extracts comprehensive customer demographics, contact information, and lead qualification data from call transcripts",
"org_id": "7c8b9a2d-3e4f-5c6b-8a9d-2e3f4c5b6a7c",
"schema": {
"variables": [
{
"name": "Customer Name",
"description": "The full name of the customer",
"type": "string"
},
{
"name": "Customer Email",
"description": "The email address provided by the customer",
"type": "string"
},
{
"name": "Phone Number",
"description": "The customer's phone number",
"type": "string"
},
{
"name": "Lead Score",
"description": "Numeric score indicating lead quality (1-10)",
"type": "number"
},
{
"name": "Interested in Demo",
"description": "Whether the customer wants to schedule a demo",
"type": "boolean"
}
],
"groupings": [
{
"name": "Contact Information",
"variables": ["Customer Name", "Customer Email", "Phone Number"]
},
{
"name": "Lead Qualification",
"variables": ["Lead Score", "Interested in Demo"]
}
],
"conditions": [
{
"condition": {
"value": "5",
"operator": ">=",
"variable": "Lead Score"
},
"variables": [
{
"name": "Follow-up Priority",
"type": "string",
"description": "Priority level for follow-up (high, medium, low)"
}
]
}
]
},
"created_at": "2023-12-15T14:30:00.000Z"
},
"errors": null
}
Was this page helpful?