Agent Reference
Quick-reference for AI coding assistants and automation scripts. Tested on 2026-03-30 against instructure-dap-client 2.2.0. For full documentation, see the individual command pages linked below.
Commands at a glance
Scripting flags
Always use these flags when calling dap from scripts or agents:
dap --non-interactive --loglevel warning <command> [options]--non-interactivedisables the rich console UI--loglevel warningsuppresses info-level log lines from stderr--logformat jsonmakes error logs machine-parseable
Record structure
All data (snapshot and incremental) uses the same record structure:
key— primary key, always presentvalue— data columns, present on upsertsmeta.ts— CDC timestamp (ISO 8601, UTC)meta.action—"U"(upsert) or"D"(delete); absent in snapshot data, present in incremental data
Exit codes
0
Success (including empty incremental results)
—
2
CLI usage error (missing flags, unknown options)
Click framework
5
API/operation error (bad table, bad namespace, auth failure, --since too old)
errno.EIO
78
Not implemented
errno.ENOSYS
89
Cancelled / keyboard interrupt
errno.ECANCELED
Error log format (--logformat json)
Typical workflow
Known namespaces
canvas, canvas_logs, catalog, new_quizzes
Common gotchas
No
--output jsonflag. This was v1 only. Thelistcommand outputs plain text; all other commands write to files.--sincerequires timezone. UseZor+HH:MM. Bare timestamps like2024-01-01T00:00:00are rejected.--sincetoo old. If the timestamp precedes the table's earliest available data, the API returns exit code 5 and advises re-snapshotting.Empty incremental is not an error. Exit code 0, output file exists but is empty (0 bytes decompressed).
Files are always gzipped. Even with
--format csvor--format tsv, output files have.gzextension.
Last updated
Was this helpful?