{
  "opencollection": "1.0.0",
  "info": {
    "name": "Luminary Documents Entities API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://auth.withluminary.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Entities",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all entities",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.withluminary.com/api/public/v1/entities",
            "params": [
              {
                "name": "household_id",
                "value": "",
                "type": "query",
                "description": "Filter entities by household ID"
              },
              {
                "name": "kind",
                "value": "",
                "type": "query",
                "description": "Filter by entity kind/type"
              },
              {
                "name": "external_id",
                "value": "",
                "type": "query",
                "description": "Filter by external ID (exact match within the caller's tenant)"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "Cursor for forward pagination. Returns items after this cursor."
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "Cursor for backward pagination. Returns items before this cursor."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of items to return"
              }
            ]
          },
          "docs": "Retrieve a paginated list of entities (trusts, businesses, accounts, etc.) using cursor-based pagination"
        },
        {
          "info": {
            "name": "Get an entity by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.withluminary.com/api/public/v1/entities/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Entity ID"
              }
            ]
          },
          "docs": "Retrieve detailed information about a specific entity"
        },
        {
          "info": {
            "name": "Delete an entity",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.withluminary.com/api/public/v1/entities/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Entity ID"
              }
            ]
          },
          "docs": "Delete an entity and all of it's related data"
        },
        {
          "info": {
            "name": "Get the current valuation for an entity",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.withluminary.com/api/public/v1/entities/:id/valuation",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Entity ID"
              }
            ]
          },
          "docs": "Retrieve the most recent valuation with flattened asset values by type"
        },
        {
          "info": {
            "name": "Create a new valuation for an entity",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.withluminary.com/api/public/v1/entities/:id/valuation",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Entity ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add a new valuation to the entity's history"
        },
        {
          "info": {
            "name": "List all entities in a household",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.withluminary.com/api/public/v1/households/:id/entities",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Household ID"
              },
              {
                "name": "kind",
                "value": "",
                "type": "query",
                "description": "Filter by entity kind/type"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "Cursor for forward pagination. Returns items after this cursor."
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "Cursor for backward pagination. Returns items before this cursor."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of items to return"
              }
            ]
          },
          "docs": "Retrieve a paginated list of entities belonging to a specific household"
        }
      ]
    }
  ],
  "bundled": true
}