Query Archives
URL
https://api.datawitness.net/dw/archives
Request
curl --digest -u 'USERNAME:PASSWORD' -H 'X-Datawitness-Key: key="APIKEY"' \
https://api.datawitness.net/dw/archives
Response
<?xml version="1.0" encoding="UTF-8"?> <response status="ok"> <Files> <file> <id>5559</id> <name>01236_blueprint_1280x1024.jpg</name> <title>Blueprint #2</title> </file> <file> <id>2252</id> <name>ExpenseSheet.xls</name> <title>Expense Sheet v2</title> </file> ... </Files> </response>
Query an Archived Record
URL
https://api.datawitness.net/dw/archives/file_id
Request
curl --digest -u 'USERNAME:PASSWORD' -H 'X-Datawitness-Key: key="APIKEY"' \
https://api.datawitness.net/dw/archives/file_id
Response
<?xml version="1.0" encoding="UTF-8"?> <response status="ok"> <Files> <file> <id>5562</id> <ticket>2a54f9a70b</ticket> <title>My Neat File 2</title> <name>file1.txt</name> <full_size>891</full_size> <mimetype>text/plain</mimetype> <hash>d532e81630d0c587e0ae2b9721de68e4</hash> <atime>1195597456</atime> <mtime>1195597456</mtime> <ctime>1195597456</ctime> <parent_folder>0</parent_folder> <tag id="81" text="SampleTag" /> <tag id="10" text="Semester 2" /> <tag id="11" text="Transcripts" /> <tag id="3" text="Wallpaper" /> </file> </Files> </response>
Download a copy of an archive file
URL
https://api.datawitness.net/dw/archives/file_id/ticket
Request
curl --digest -u 'USERNAME:PASSWORD'-H 'X-Datawitness-Key: key="APIKEY"' \
https://api.datawitness.net/dw/archives/file_id/ticket
Response
Raw Data with accompanying headers
Archive a Document
URL
https://api.datawitness.net/dw/archives
Request
curl --digest -u 'USERNAME:PASSWORD' -H 'X-Datawitness-Key: key="APIKEY"' \
-H 'X-Datawitness-Title: DOCUMENT TITLE' -H 'X-Datawitness-Name: FILENAME.EXT' \
-H 'Expect:' -T https://api.datawitness.net/dw/archives
Response
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
<file>
<id>NEW FILE ID</id>
</file>
</response>