Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://api.example.com/document/ \ --header 'Authorization: Bearer <token>'
import requests url = "https://api.example.com/document/" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.example.com/document/', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.example.com/document/", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer <token>" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.example.com/document/" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer <token>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
HttpResponse<String> response = Unirest.get("https://api.example.com/document/") .header("Authorization", "Bearer <token>") .asString();
require 'uri' require 'net/http' url = URI("https://api.example.com/document/") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer <token>' response = http.request(request) puts response.read_body
{ "count": 123, "results": [ { "id": 123, "title": "<string>", "type": "TOLL", "processed": true, "approved": true, "sent": true, "status": "Processing", "created_at": "2023-11-07T05:31:56Z", "file": "<string>", "user": { "id": 123, "username": "<string>", "email": "jsmith@example.com" }, "tags": [ {} ], "archive": true, "archive_reason": "<string>", "fleet": { "id": 123, "region_details": [ { "id": 123, "title": "<string>" } ], "title": "<string>", "is_active": true, "billing_type": "PREPAID", "onboarding_stage": "INITIAL", "warning_threshold_per_vehicle": "<string>", "deactivation_threshold_per_vehicle": "<string>", "client": "<string>", "onboarding_vehicle_order": 123 }, "vehicle_status": "<string>" } ], "next": "http://api.example.org/accounts/?offset=400&limit=100", "previous": "http://api.example.org/accounts/?offset=200&limit=100" }
Retrieve a paginated list of uploaded documents.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Number of results to return per page.
The initial index from which to return the results.
Full-text search on document title, uploader username, and uploader email.
Sort field: created_at, title, user__username, fleet__title, or tags. Prefix with - for descending order.
Filter by processing status. Repeatable to include multiple statuses.
Processing
Uploaded
Processed
Filter by approval flag.
Filter by processed flag.
Filter by sent flag.
Filter by archive flag.
Case-insensitive substring match on title. istartswith, iendswith, and exact lookups are also supported.
Case-insensitive substring match on uploader username.
Case-insensitive substring match on uploader email.
Case-insensitive substring match on fleet title.
Filter by tag name (case-insensitive substring match).
Return documents created on or after this date (YYYY-MM-DD).
Return documents created on or before this date (YYYY-MM-DD).
123
Show child attributes
"http://api.example.org/accounts/?offset=400&limit=100"
"http://api.example.org/accounts/?offset=200&limit=100"
Was this page helpful?