servicenow.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Records
create
records.create
Create a record in any table, which triggers its business rules and notifications
Risk: write
Sends
fields as the request body and answers the created record from result, whose sys_id identifies it. Business rules and notifications fire, so the response can differ from what you sent.
Output: Record<string, any>
delete
records.delete
Delete one record. ServiceNow keeps no undo, and what happens to referencing records depends on the table reference cascade rule
Risk: destructive · Irreversible
Answers 204 with no body, so the plugin reports
{ deleted, table, sys_id } rather than parsing one. The record itself is gone and there is no undo; whether records referencing it are deleted, cleared or left untouched depends on the table’s reference cascade rule, and a Restrict rule refuses the delete.
Output
get
records.get
Read one record by its sys_id
Risk: read
Answers the record object directly from
result. Reference fields come back as objects with value and link unless sysparm_exclude_reference_link is set.
Output: Record<string, any>
list
records.list
Query any table with an encoded query, field selection and offset paging
Risk: read
Answers
{ records: [...] } from the result array. Every raw value is a string, including numbers and booleans (state: "2", active: "true"), and a reference field is an object unless sysparm_exclude_reference_link is set. sysparm_display_value takes false for raw values, true for display values, or all for both; each value is a string or an object, so a record stays an open map. Setting sysparm_no_count skips the total and is faster on a large table.
Output
update
records.update
Patch fields on one record, which triggers its business rules and notifications
Risk: write
Sends a PATCH with
fields as the body, which changes only the fields you name. Answers the updated record. Business rules and notifications fire.
Output: Record<string, any>
Tables
list
tables.list
List visible table metadata from sys_db_object, to find a table name to query
Risk: read
Lists visible table metadata from
sys_db_object. A table appearing here does not mean its records are readable through record queries: this is dictionary metadata only, subject to the user’s ACLs. Returns name, label, super_class and sys_id by default. A sysparm_fields selection keeps name even when omitted, because ServiceNow returns only the fields asked for and name is what you pass as table. Pass sysparm_query to narrow it, for example nameSTARTSWITHu_ for a custom application’s tables.
Output
tables full type
tables full type