cardinal

RPC functions

The functions core serves at /api/rpc/core.<module>.<function>.

Each function runs in the caller's transaction and checks the caller's rights. Call them with POST and a JSON body, or GET with a query string. Other apps add their own under /api/rpc/<app>.<module>.<function>.

curl -X POST https://erp.acme.com/api/rpc/core.link.titles \
  -H "Authorization: token $KEY:$SECRET" -H 'Content-Type: application/json' \
  -d '{"rectype": "User", "names": ["jane@acme.com"]}'

Records and lists

FunctionDoes
core.search.globalRecords matching a text, grouped by RecType with snippets
core.search.linkRecords a Link field offers, within the form's filters
core.link.validateChecks one typed Link value and returns the values it fetches
core.link.titlesTitles of a list's Link values
core.list.annotationsAssignees, tags and comment counts of a list page
core.share.add, set_permission, remove, usersShare one Record with a user or everyone
core.assign.add, close, removeAssign one Record with ToDos
core.tag.add, removeOne tag on one Record
core.bulk.delete, edit, submit, cancel, assign, unassignQueue a bulk action on up to 500 Records
core.bulk.statusProgress of the caller's bulk job and each refused Record's message
core.deleted_record.restoreInsert a deleted Record again
core.workflow.transitionsA Record's state and the transitions the caller may take
core.workflow.applyTake one transition
core.naming.series, update_series, preview, current, set_currentNaming series and counters. System Managers
core.defaults.set_user_defaultSet or clear one default for the caller
core.markdown.previewMarkdown as sanitized HTML

Customization and permissions

FunctionDoes
core.customize.resetRemove an app RecType's Custom Fields and Property Setters, or with keep_custom_fields only the setters
core.perm.explainWhether a user may use a right on a RecType or Record, with the trace. System Managers
core.perm_manager.get, resetA RecType's rules for the Permission Manager, and Restore original
core.print.make_defaultMake a Print Format its RecType's default

Reports, dashboards and workspaces

FunctionDoes
core.report.metaA saved report's settings or filters
core.report.runA code report's columns and rows, or the latest prepared run
core.report.prepareQueue a prepared report's background run
core.report.exportReport rows as CSV or XLSX in Base64
core.dashboard.page, chartA Dashboard, and one chart's data with timespan, time_interval, from_date, to_date
core.workspace.page, number_card, quick_list, catalog, widget, customize, publishWorkspace blocks, the caller's own copy, and publishing a personal workspace
core.onboarding.card, set_status, dismissModule Onboarding steps

Import, export and print

FunctionDoes
core.data_export.exportRecords and child rows as CSV or XLSX in Base64
core.data_import.templateA blank import template
core.data_import.previewColumns, first rows, warnings and payload count
core.data_import.start, status, errored_rowsRun an import and follow it
core.print.previewA Record's print HTML with the formats, letter heads and languages on offer
core.print.bulk_pdfOne PDF of many Records, built as a job

Mail and messages

FunctionDoes
core.communication.makeSend a mail from a Record
core.communication.undo_sendTake back the caller's mail within 10 seconds
core.communication.recipient_search, compose_contextRecipients, sending accounts and signature for the composer
core.email_template.list, renderEmail Templates for a RecType, and one filled from a Record
core.email_account.test_connectionLog in to an account's server
core.email_queue.retry, send_nowRequeue failed mail, or send one row now
core.notification.previewA Notification rule's condition, subject and message on a Record
core.notification_log.feed, mark_read, mark_all_readThe desk bell
core.telegram.connect, link, enabledConnect the site's bot, and link the caller's chat

Users, jobs and logs

FunctionDoes
core.user.reset_passwordSend a User a password reset mail
core.user.set_preferencesThe caller's theme, time zone, default workspace and language
core.user_invitation.invite, cancel, resendUser Invitations
core.background_job.retry, cancelOne of the site's jobs
core.scheduled_job_type.execute, skip_next_executionRun a scheduled job now, or skip its next run
core.error_log.mark_seenMark an Error Log seen
core.web_form.acceptSubmit a Web Form, guests included, with uploads as multipart
core.web_form.deleteA visitor deletes their own Record through a form
core.automation.catalogThe installed apps' automation steps
core.automation.testDry-run an automation on a sample Record

On this page