Create a scorecard (CC5-R1)
const url = 'https://api.vocapable.com/v1/workspace/quality/scorecards';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","assignment":{"directions":["inbound"],"handler_kinds":["human"],"queue_keys":["example"],"team_ids":["example"],"channel":"voice"},"definition":{"sections":[{"key":"example","title":"example","weight":1,"questions":[{"key":"example","text":"example","type":"yes_no","weight":1,"allow_na":false,"auto_fail":false,"guidance":"example"}]}]}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vocapable.com/v1/workspace/quality/scorecards \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example", "assignment": { "directions": [ "inbound" ], "handler_kinds": [ "human" ], "queue_keys": [ "example" ], "team_ids": [ "example" ], "channel": "voice" }, "definition": { "sections": [ { "key": "example", "title": "example", "weight": 1, "questions": [ { "key": "example", "text": "example", "type": "yes_no", "weight": 1, "allow_na": false, "auto_fail": false, "guidance": "example" } ] } ] } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Which calls and text conversations a scorecard applies to; an empty list means any,
and the dimensions are AND-ed. handler_kinds includes ai to grade the AI
agents’ calls with the same card (PRD D2). When several cards match one piece of work,
a card naming its queue comes first, then one naming its handler’s team, then the rest
(docs/contact-center/quality.md § Assignment).
object
object
object
Responses
Section titled “Responses”Successful Response
object
Which calls and text conversations a scorecard applies to; an empty list means any,
and the dimensions are AND-ed. handler_kinds includes ai to grade the AI
agents’ calls with the same card (PRD D2). When several cards match one piece of work,
a card naming its queue comes first, then one naming its handler’s team, then the rest
(docs/contact-center/quality.md § Assignment).
object
object
object
object
Example
{ "status": "active", "assignment": { "directions": [ "inbound" ], "handler_kinds": [ "human" ], "channel": "voice" }, "current_version": { "sections": [ { "questions": [ { "type": "yes_no" } ] } ] }}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}