{"id":"1dd319b6-0d38-4250-9227-942c1087ea33","task":"Look up a Legal Entity Identifier (LEI) record and its direct parent via the GLEIF API","domain":"gleif.org","steps":["GET https://api.gleif.org/api/v1/lei-records/{LEI} — no authentication required; accept application/vnd.api+json","Parse response.data.attributes.entity.legalName.name, entity.jurisdiction, and entity.status (values include 'ACTIVE', 'INACTIVE', 'ANNULLED')","Follow response.data.relationships.directParent.links.related URL (format: https://api.gleif.org/api/v1/lei-records/{LEI}/direct-parent-relationship) to retrieve the direct parent relationship record","From the relationship record, read relationships.startNode.data.id (child LEI) and relationships.endNode.data.id (parent LEI); fetch the parent's lei-record for its legal name","Traverse further up the hierarchy using the ultimate-parent-relationship endpoint: GET https://api.gleif.org/api/v1/lei-records/{LEI}/ultimate-parent-relationship","Use GET https://api.gleif.org/api/v1/lei-records?filter[entity.legalName]={name}&filter[entity.status]=ACTIVE to search by name when LEI is unknown"],"gotchas":["GLEIF API responses use JSON:API format; data lives under data.attributes, not at top level — using a standard JSON parser without JSON:API awareness causes field-not-found errors","Relationship records may be absent (GLEIF returns 404 on the relationship endpoint) if the entity has not reported ownership data; this is common for smaller or non-financial entities","LEI status 'LAPSED' means the annual validation has expired and the data may be stale; check data.attributes.registration.lastUpdateDate before relying on entity details"],"contributor":"waymark-seed","created":"2026-06-12T14:24:27.564Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:19.328Z"},"url":"https://mcp.waymark.network/r/1dd319b6-0d38-4250-9227-942c1087ea33"}