Skip to main content
POST
/
taxonomy
/
list
Python
import os
from unstructured import UnstructuredClient

client = UnstructuredClient(
    username=os.environ.get("UNSTRUCTURED_USERNAME"),  # This is the default and can be omitted
    password=os.environ.get("UNSTRUCTURED_PASSWORD"),  # This is the default and can be omitted
)
taxonomies = client.taxonomy.list()
print(taxonomies.taxonomies)
{
  "taxonomies": [
    {
      "taxonomy_id": "<string>",
      "taxonomy_name": "<string>",
      "taxonomy_description": "<string>",
      "taxonomy_data": {},
      "user_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "refreshed_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Body

application/json
taxonomy_ids
string[] | null

Response

Successful Response

taxonomies
DeasyTaxonomy · object[]
required