> ## Documentation Index > Fetch the complete documentation index at: https://docs.restaurant365.com/llms.txt > Use this file to discover all available pages before exploring further. # Legal Entities > Retrieves a list of legal entities for a tenant. At least one of modifiedOnStart or modifiedOnEnd must be provided **Security** The requesting user must have the following permission to retrieve legal entities: - Administration → Legal Entities → View Legal Entities ## OpenAPI ````json GET /public/v1/core/legal-entities { "openapi": "3.0.1", "info": { "title": "R365 Public API", "contact": { "name": "R365 Services Team", "email": "r365@restaurant365.com" }, "version": "1.0" }, "security": [ { "Bearer": [] } ], "paths": { "/public/v1/core/legal-entities": { "get": { "tags": [ "core" ], "summary": "Legal Entities", "description": "Retrieves a list of legal entities for a tenant. At least one of modifiedOnStart or modifiedOnEnd must be provided\n\n**Security**\n\nThe requesting user must have the following permission to retrieve legal entities:\n\n- Administration → Legal Entities → View Legal Entities", "parameters": [ { "$ref": "#/components/parameters/TenantId" }, { "name": "modifiedOnStart", "in": "query", "description": "Start of the modified-on date range (inclusive). If only this value is provided, results for that single day are returned", "required": false, "schema": { "type": "string", "format": "date-time" } }, { "name": "modifiedOnEnd", "in": "query", "description": "End of the modified-on date range (inclusive). If only this value is provided, results for that single day are returned", "required": false, "schema": { "type": "string", "format": "date-time" } }, { "name": "pageSize", "in": "query", "required": false, "schema": { "type": "integer", "format": "int32", "minimum": 1, "maximum": 250, "default": 250 }, "description": "Maximum number of top-level objects to return in one page." }, { "name": "continuationToken", "in": "query", "description": "Continuation token returned by a previous response to retrieve the next page", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Paginated list of legal entities", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LegalEntityListResponse" } } } }, "400": { "description": "Bad Request — a parameter value is malformed, of the wrong type, or outside its allowed range." }, "401": { "description": "Unauthorized — the bearer token is missing, invalid or expired, or is not valid for the specified tenant." }, "403": { "description": "Forbidden — the caller lacks the permission required for this operation." }, "404": { "description": "Not Found — the requested resource does not exist, or the supplied continuation token is unknown or has expired." }, "409": { "description": "Conflict — the request conflicts with the current state of the resource and cannot be applied." }, "422": { "description": "Unprocessable Entity — a required parameter is missing, or a supplied parameter value is invalid." }, "429": { "description": "Too Many Requests — the caller has exceeded the rate limit; retry after a short delay." }, "500": { "description": "Internal Server Error — an unexpected error occurred while processing the request." } } } } }, "components": { "parameters": { "TenantId": { "name": "x-r365-context-tenant-id", "in": "header", "required": true, "description": "Identifies the R365 tenant the request applies to. Required on every request.", "schema": { "type": "string" } } }, "schemas": { "LegalEntityListResponse": { "type": "object", "additionalProperties": false, "properties": { "legalEntities": { "type": "array", "items": { "$ref": "#/components/schemas/LegalEntity" }, "description": "Legal entities matching the request criteria." }, "nextLink": { "type": "string", "nullable": true, "description": "Link to retrieve the next page of results. Null when no further pages exist." } } }, "LegalEntity": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "number": { "type": "string" }, "isActive": { "type": "boolean" }, "taxId": { "type": "string" }, "stateId": { "type": "string" }, "payrollProviderId": { "type": "string" }, "address1": { "type": "string" }, "address2": { "type": "string" }, "city": { "type": "string" }, "state": { "type": "string" }, "zipCode": { "type": "string" }, "country": { "type": "string" } } } }, "securitySchemes": { "Bearer": { "type": "http", "scheme": "Bearer" } } } } ````