For AI agents: a documentation index is available at https://docs.coverbase.com/llms.txt. This page is also available in markdown by appending .md to the URL.
These endpoints let you build and tune the control sets your vendors are assessed against. A control set (cbctst_...) holds sections (cbctsn_...) and controls (cbctrl_...). Settings on the set apply to every control in it: AI evaluation guidance, strictness, evidence sources, applicability and Zero Touch eligibility.
Controls are versioned. A material edit to a control creates a new version with a new id and the same perma_id, so past assessments keep the text they were evaluated on. Control sets and sections are edited in place. Every change to a set or control is recorded in its activity, as the same edit in the dashboard is.
All endpoints are org-scoped to the API key. See API conventions for shared behavior. None of these honor Idempotency-Key.
Archiving or unarchiving a set or section also needs
control_set:archive:org, and archiving a control needs control:archive:org. Archiving and unarchiving stay with signed-in users: in every organization, a request made with an API key that archives or unarchives returns 403 api_key_not_allowed.
Control set object
The evidence sources the AI draws on.
The scale every live control uses.
null when the controls use different scales or none.Evidence source object
Acontracts source shares contract terms with every evaluation, so adding one needs contract:read:org.
List control sets
Query parameters
Returns anitems array of control set objects, newest first, with total, limit and offset.
Create a control set
Returns201 Created with the control set object. To copy a framework template with its sections and controls, send its slug from the library as use_library.
Request body
Example request
cURL
Retrieve a control set
Returns the control set object, archived or live, or404 control_set_not_found.
Update a control set
Only the fields you send change. To clearrisk_domain_id or vendor_rating_weight, send null. An archived set returns 409 control_set_archived. Returns the updated control set object.
Request body
Every create field exceptcontrol_set_type and use_library, plus:
Archive the set with its sections and controls. Needs
control_set:archive:org. An API key gets 403 api_key_not_allowed.applied_to_tag_ids, evidence_sources, document_requirement, watcher_ids) replace the stored list. A scale_id applies to every live control.
Update many control sets
Applies up to 200 updates in one call. If any update fails, none is applied, and the error names the failing item indetail.id. Each control set may appear once per call.
From 1 to 200 items. Each item takes
control_set_id and the fields of Update a control set, with the same rules.items array of the updated control set objects, in request order.
Get control set stats
Returnsvendor_count (vendors the live set applies to) and vendor_percentage (their share of the org’s vendors).
List sections
Returns anitems array of section objects in display order, with total, limit and offset.
Section object
Create a section
Returns201 Created with the section object. An archived set returns 409 control_set_archived. Every watcher must be a member of your organization, or the request returns 422 invalid_watcher.
Update a section
Takes the create fields andis_archived. Only the fields you send change. To clear risk_domain_id, send null. Archiving a section archives its controls and needs control_set:archive:org. An API key that archives or unarchives a section gets 403 api_key_not_allowed. An archived section accepts only is_archived: false. Returns the updated section object.
Control object
Evidence sources for this control. Empty means the set’s sources apply.
List controls
Returns the latest version of each control as anitems array of control objects, in set order, with total, limit and offset.
Create a control
Returns201 Created with version 1 of the control object. An archived set returns 409 control_set_archived. To set evidence_requirement or the significant-deficiency floor, send a PATCH afterwards.
Answer choices, each
{ "name": "Yes", "description": null, "value": 1, "sort_order": null }.Retrieve a control
Returns the control object for that version, archived or live, or404 control_not_found.
Update a control
Takes every create field, all optional, plus the fields below. Only the fields you send change. Returns the resulting control object. A material change creates a new version, and the response carries its newid. These fields are material: expectation, question, question_additional_instructions, response_type, eval_instructions, weight, is_required, control_section_id, significant_deficiency_level_id, significant_deficiency_scope and options. Other fields change the version in place.
Answer choices to add or edit. A new choice has no
id. To edit an existing choice, send its id and perma_id with the fields to change, or "is_archived": true to remove it.Archive or unarchive the control. Needs
control:archive:org. An API key gets 403 api_key_not_allowed.409 control_superseded with the latest version’s ID in the message.
Example request
cURL
Update many controls
Applies up to 200 control updates in one call. If any update fails, none is applied, and the error names the failing item indetail.id. Each control may appear once per call.
From 1 to 200 items. Each item takes
control_id and the fields of Update a control, with the same rules.items array in request order. Each item has previous_id (the ID you sent) and control (the resulting control object). A material change gives control a new id.
Get control history
Returns anitems array of control objects, newest version first, starting from the version you name.
Move, archive or unarchive controls
Moves many controls into one section, or archives or unarchives them. If any control fails, nothing changes. The section must belong to the same control set as every control, or the request returns422 invalid_bulk_action. Unarchiving an earlier version of a control returns 409 control_superseded, because a newer version is live. Each moved control takes a new version. Returns { "action": "add_to_section", "control_count": 2 }.
add_to_section, archive or unarchive. Archiving and unarchiving needs control:archive:org, and an API key gets 403 api_key_not_allowed.Review a framework reference
Accepts or rejects a suggested framework reference on a control. Only an accepted reference counts toward framework coverage.accept, reject (removes the reference) or no_clause (records that the framework has no matching clause).framework_references, the control’s references after the change, or 404 framework_reference_not_found.
Start a crosswalk
Returns202 Accepted. Suggests, in the background, a reference in each target framework for every control of the set. A suggestion counts toward coverage only once you accept it.
From 1 to 50 framework control sets to map onto. Each must be a live control set of your organization other than this one, or the request returns
422 invalid_crosswalk_targets and nothing is queued.queued and target_control_set_ids, the distinct targets that were queued. An archived subject set returns 409 control_set_archived.
Read a crosswalk
Returnsframeworks and rows. Each framework has framework, control_set_id, accepted_clauses, total_clauses and suggested. Each row has control_id, external_idx, expectation, section and refs. Each reference has index (the value a review takes), framework, reference, rationale and review_state (suggested or accepted).
List library templates
Returns anitems array of templates you can copy with use_library. Each has slug, name, num_controls, control_set_type, audience (vendor or internal), description and is_web_search_enabled.
List library updates
Returns anitems array of the org’s library copies whose template has a newer revision. Each has control_set_id, control_set_name, template_slug, template_name, from_revision, to_revision, vendor_count and changes. Each change has external_idx, kind (added, changed or removed), expectation, previous_expectation and is_conflict (the copy was edited by hand).
Apply a library update
Brings a library copy to its template’s latest revision. Changed controls take a new version. Controls edited by hand stay as they are. Returnsapplied and conflicts (lists of external_idx) and to_revision, or 409 no_library_update.
Draft a reassessment of affected vendors
Returns201 Created with reassessment_id and vendor_count. Drafts one reassessment of the vendors assessed with the set.
Export a control set
Returns202 Accepted with the export’s id and status. Coverbase builds an Excel workbook of the set, named export_filename, in the background. Poll GET /v1/control-set-exports/{export_id}: once status is complete, the response carries a download_url that expires after expires_in seconds. The poll response is never cached.
Find matching control sets
Lists the control sets that apply to a vendor, one row per set, with thereason: applied to every vendor, the vendor’s inherent risk, or one of its tags. The route also checks that you can read the vendor.
GET /v1/assessments/{assessment_id}/control-set-matches lists the control sets the assessment’s custom questionnaires match that are not on the assessment yet. Each row has the questionnaire_name, a score, and how many questions overlap. The route also checks that you can read the assessment.
Error responses
Related
- Reassessments API: run the drafts that
reassess-affectedcreates. - Zero Touch assessments API: assessments that use Zero Touch eligible sets.