API Reference/Documents/Types

Get document types

GET
/api/documents/types
AuthorizationBearer <token>

In: header

Response Body

curl -X GET "http://localhost:3000/api/documents/types"
fetch("http://localhost:3000/api/documents/types")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "http://localhost:3000/api/documents/types"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "http://localhost:3000/api/documents/types"

response = requests.request("GET", url)

print(response.text)
{
  "documentTypes": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "description": "string",
      "allowedExtensions": [
        "string"
      ],
      "maxSizeMb": 0,
      "requiresApproval": true
    }
  ]
}