GET
/api/public/v1/legal-entities/{legalEntityId}

Get a legal entity

Retrieve a single legal entity by ID.

Path Parameters

NameTypeRequiredDescription
legalEntityIdstring
Required
Legal entity ID.
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/legal-entities/{legalEntityId}" \
  -H "X-Organization-Id: your_org_id" \
  -H "X-API-Key: your_api_key"
200Example response
json
{
  "message": "Legal entity retrieved successfully!",
  "content": {
    "legalEntity": {
      "id": "le_abc",
      "name": "Acme Holdings",
      "type": "LLC"
    }
  }
}