GET https://api.doctape.com/v1/doc
Parameters (Query string)
Name
Description
include_meta
include meta data for each file
Name
Description
id
file id
public_url
public file url
name
file name without extension
extension
file extension
size
file size in bytes
time_added
unix timestamp
media_type
one of the following: document, image, audio, video, archive, unknown
tags
tag array
origin
one of the following: webupload, dropbox, mail, mobile or tapename
starred
true | false
shared
0: own document, 1: personal share, uid: tape share
processing_status
ok, failed, processing
meta
take a look at metadata
{
"error": null,
"result": {
"2224c539-e5d6-425a-8e0d-9516db6dc462": {
"id": "2224c539-e5d6-425a-8e0d-9516db6dc462",
"public_url": "http://dt.pe/w23Oj9",
"name": "example017872",
"extension": "jpg",
"size": 730782,
"time_added": 1358457759,
"media_type": "image",
"tags": ["+bobby", "#bobby/wallpaper"],
"origin": "bobby/wallpaper",
"shared": 0,
"processing_status": "ok",
"meta": {}
},
...
}
}
back to top
GET https://api.doctape.com/v1/doc/{id}
Name
Description
id
file id
Name
Description
id
file id
public_url
public file url
name
file name without extension
extension
file extension
size
file size in bytes
time_added
unix timestamp
media_type
one of the following: document, image, audio, video, archive, unknown
tags
tag array
origin
one of the following: webupload, dropbox, mail, mobile or tapename
starred
true | false
shared
0: own document, 1: personal share, uid: tape share
processing_status
ok, failed, processing
meta
take a look at metadata
{
"error": null,
"result": {
"id": "2224c539-e5d6-425a-8e0d-9516db6dc462",
"public_url": "http://dt.pe/w23Oj9",
"name": "example017872",
"extension": "jpg",
"size": 730782,
"time_added": 1358457759,
"media_type": "image",
"tags": ["+bobby", "#bobby/wallpaper"],
"origin": "bobby/wallpaper",
"shared": 0,
"processing_status": "ok",
"meta": {}
}
}
back to top
POST https://api.doctape.com/v1/doc/{id}
Name
Description
id
file id
Name
Description
name
file name
tags
array containing all tags including shares and tapes
starred
true | false
Name
Description
id
file id
public_url
public file url
name
file name without extension
extension
file extension
size
file size in bytes
time_added
unix timestamp
media_type
one of the following: document, image, audio, video, archive, unknown
tags
tag array
origin
one of the following: webupload, dropbox, mail, mobile or tapename
starred
true | false
shared
0: own document, 1: personal share, uid: tape share
processing_status
ok, failed, processing
meta
take a look at metadata
{
"error": null,
"result": {
"id": "2224c539-e5d6-425a-8e0d-9516db6dc462",
"public_url": "http://dt.pe/w23Oj9",
"name": "example017872",
"extension": "jpg",
"size": 730782,
"time_added": 1358457759,
"media_type": "image",
"tags": ["+bobby", "#bobby/wallpaper"],
"origin": "bobby/wallpaper",
"shared": 0,
"processing_status": "ok",
"meta": {}
}
}
back to top
GET https://api.doctape.com/v1/doc/{id}/original
Name
Description
id
file id
back to top
Retrieve file thumbnail (jpg)
GET https://api.doctape.com/v1/doc/{docid}/thumb_120.jpg
back to top
Retrieve file thumbnail large (jpg)
GET https://api.doctape.com/v1/doc/{docid}/thumb_320.jpg
back to top
POST https://api.doctape.com/v1/doc/upload
Name
Description
tags
String of tags (separated with ",")
starred
true | false
multiparted body with file
Name
Description
id
file id
name
file name
size
file size
{
"error": null,
"result": {
"2224c539-e5d6-425a-8e0d-9516db6dc462": {
"id": "2224c539-e5d6-425a-8e0d-9516db6dc462",
"name": "017872.jpg",
"size": "730782",
},
}
}
back to top
None of the former tags is added to the clone.
POST https://api.doctape.com/v1/doc/{id}/clone
Name
Description
id
file id
Name
Description
id
file id of the cloned file
{
"error": null,
"result": {
"cloned": true,
"id": "1bde02fd-4082-4321-b210-7fe75a6e94ba"
}
}
back to top
POST https://api.doctape.com/v1/doc/{id}/public
Name
Description
public
true / false
Name
Description
public
true / false
public_url
public url or empty string
{
"error": null,
"result": {
"published": false,
"public_url": ""
}
}
back to top
DELETE https://api.doctape.com/v1/doc/{id}
Name
Description
id
file id
Name
Description
deleted
true
{
"error": null,
"result": {
"deleted": true
}
}
back to top
Extract archive (zip)
After unzipping, all files will be added to the processing queue as if they were
uploaded directly. When processing finished, extracted files will appear in the
doc-listing.
POST https://api.doctape.com/doc/{id}/extract
Name
Description
id
file id
Name
Description
extracted
true
{
"error": null,
"result": {
"extracted": true
}
}
back to top