Retrieve a document
1 min
GET
https://api.detected.app/api/v2/public/documents/{id}
Path Parameters
- idstringrequiredDescription
Responses
200
- object
- dataDocumentViewResponse
- idnumberrequiredDescription
- profile_idstringrequiredDescription
- document_idstringrequiredDescription
- categorystringrequiredDescription
- namestringrequiredDescription
- linkstringrequiredDescription
- file_typestringrequiredDescription
- link_expires_atstringrequiredDescription
- fraud_checkobjectDescription
- processed_atstringDescription
- analysisobjectDescription
- scorestringDescription
- document_typestringDescription
- meta_dataobjectDescription
- producerstringDescription
- creatorstringDescription
- creation_datestringDescription
- mod_datestringDescription
- authorstringDescription
- keywordsstringDescription
- subjectstringDescription
- titlestringDescription
- indicatorsobject[]Description
- typestringDescription
- categorystringDescription
- titlestringDescription
- descriptionstringDescription
- translationobjectDescription
- statusstringDescription
- linkstringDescription
- file_typestringDescription
- link_expires_atstringDescription
- extractedstringDescription
- ocrobjectDescription
- extractedstringDescription
- updated_atstringrequiredDescription
- created_atstringrequiredDescription
Response Headers
- X-RateLimit-Limit
- X-RateLimit-Remaining
- x-ratelimit-reset
- retry-after
401
- object
- messagestringDescription
404
- object
- messagestringDescription
429
- object
- messagestringDescription
curl
curl --request GET \
--url https://api.detected.app/api/v2/public/documents/{id} \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.detected.app/api/v2/public/documents/{id}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.detected.app/api/v2/public/documents/{id}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.detected.app/api/v2/public/documents/{id}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// OK
{
"data": {
"id": 0,
"profile_id": "",
"document_id": "",
"category": "",
"name": "",
"link": "",
"file_type": "",
"link_expires_at": "",
"fraud_check": {
"processed_at": "",
"analysis": {
"score": "",
"document_type": "",
"meta_data": {
"producer": "",
"creator": "",
"creation_date": "",
"mod_date": "",
"author": "",
"keywords": "",
"subject": "",
"title": ""
},
"indicators": [
{
"type": "",
"category": "",
"title": "",
"description": ""
}
]
}
},
"translation": {
"status": "",
"link": "",
"file_type": "",
"link_expires_at": "",
"extracted": ""
},
"ocr": {
"extracted": ""
},
"updated_at": "",
"created_at": ""
}
}401
// Unauthorized. The access token is missing, invalid or has expired.
{
"message": ""
}404
// Not Found. The requested resource does not exist, or is not available to your account.
{
"message": ""
}429
// Too Many Requests. You have exceeded the rate limit. Wait for the number of seconds given in the Retry-After header before trying again.
{
"message": ""
}