---
agentTools:
  projectIndex: https://docs.grafeno.digital/llms.txt
---

# Visualizar representante legal

Retorna os dados de um representante legal de determinado onboarding.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Cadastros - V2",
    "version": "3.0.0"
  },
  "servers": [
    {
      "url": "https://cadastros.grafeno.be/api/onboardings/v2/complete/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/clients/{onboarding_id}/legal_representatives/{legal_representative_id}": {
      "get": {
        "summary": "Visualizar representante legal",
        "description": "Retorna os dados de um representante legal de determinado onboarding.",
        "operationId": "view-legal-representative",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "description": "Id da solicitação de cadastro.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "legal_representative_id",
            "in": "path",
            "description": "Id do representante legal.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"data\": {\n    \"id\": \"b7eba684-abc1-458b-8685-f4ef7a8850a0\",\n    \"type\": \"legalRepresentative\",\n    \"attributes\": {\n      \"documentNumber\": \"12233445478\",\n      \"name\": \"Michael Gary Scott\",\n      \"birthDate\": \"1962-03-15\",\n      \"nationality\": \"BR\",\n      \"identityDocumentNumber\": \"123456789012\",\n      \"identityDocumentIssuingAgency\": \"ssp\",\n      \"maritalStatus\": \"single\",\n      \"email\": \"michael.scott@dunder-mifflin.paper\",\n      \"phone\": \"11999999999\",\n      \"kind\": \"attorney\",\n      \"representationKind\": \"together\",\n      \"proofOfPowerDueDate\": null,\n      \"createdAt\": \"2024-04-05T14:31:31.855-03:00\",\n      \"updatedAt\": \"2024-04-05T14:31:32.292-03:00\",\n      \"identityDocument\": {\n        \"data\": {\n          \"id\": \"2770db90-bdd4-4df3-a391-8c4e583eba1d\",\n          \"type\": \"file\",\n          \"attributes\": {\n            \"filename\": \"identity-document.pdf\",\n            \"content\": \"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgID\"\n          }\n        }\n      },\n      \"proofOfPower\": {\n        \"data\": {\n          \"id\": \"9fe3343c-19bc-4453-a5b4-abccb8485f66\",\n          \"type\": \"file\",\n          \"attributes\": {\n            \"filename\": \"proof-of-Power.pdf\",\n            \"content\": \"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgID\"\n          }\n        }\n      },\n      \"extraAttachments\": null,\n      \"address\": {\n        \"data\": {\n          \"id\": null,\n          \"type\": \"address\",\n          \"attributes\": {\n            \"zipCode\": \"01452002\",\n            \"street\": \"AV BRIG FARIA LIMA\",\n            \"number\": \"1355\",\n            \"complement\": \"ANDAR 15 SALA 5\",\n            \"country\": \"BR\",\n            \"state\": \"SP\",\n            \"city\": \"SÃO PAULO\",\n            \"neighborhood\": \"JARDIM PAULISTANO\"\n          }\n        }\n      },\n      \"pep\": {\n        \"data\": {\n          \"id\": null,\n          \"type\": \"shared\",\n          \"attributes\": {\n            \"kind\": \"none\",\n            \"role\": null,\n            \"documentNumber\": null,\n            \"name\": null\n          }\n        }\n      }\n    }\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "b7eba684-abc1-458b-8685-f4ef7a8850a0"
                        },
                        "type": {
                          "type": "string",
                          "example": "legalRepresentative"
                        },
                        "attributes": {
                          "type": "object",
                          "properties": {
                            "documentNumber": {
                              "type": "string",
                              "example": "12233445478"
                            },
                            "name": {
                              "type": "string",
                              "example": "Michael Gary Scott"
                            },
                            "birthDate": {
                              "type": "string",
                              "example": "1962-03-15"
                            },
                            "nationality": {
                              "type": "string",
                              "example": "BR"
                            },
                            "identityDocumentNumber": {
                              "type": "string",
                              "example": "123456789012"
                            },
                            "identityDocumentIssuingAgency": {
                              "type": "string",
                              "example": "ssp"
                            },
                            "maritalStatus": {
                              "type": "string",
                              "example": "single"
                            },
                            "email": {
                              "type": "string",
                              "example": "michael.scott@dunder-mifflin.paper"
                            },
                            "phone": {
                              "type": "string",
                              "example": "11999999999"
                            },
                            "kind": {
                              "type": "string",
                              "example": "attorney"
                            },
                            "representationKind": {
                              "type": "string",
                              "example": "together"
                            },
                            "proofOfPowerDueDate": {},
                            "createdAt": {
                              "type": "string",
                              "example": "2024-04-05T14:31:31.855-03:00"
                            },
                            "updatedAt": {
                              "type": "string",
                              "example": "2024-04-05T14:31:32.292-03:00"
                            },
                            "identityDocument": {
                              "type": "object",
                              "properties": {
                                "data": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "example": "2770db90-bdd4-4df3-a391-8c4e583eba1d"
                                    },
                                    "type": {
                                      "type": "string",
                                      "example": "file"
                                    },
                                    "attributes": {
                                      "type": "object",
                                      "properties": {
                                        "filename": {
                                          "type": "string",
                                          "example": "identity-document.pdf"
                                        },
                                        "content": {
                                          "type": "string",
                                          "example": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgID"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "proofOfPower": {
                              "type": "object",
                              "properties": {
                                "data": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "example": "9fe3343c-19bc-4453-a5b4-abccb8485f66"
                                    },
                                    "type": {
                                      "type": "string",
                                      "example": "file"
                                    },
                                    "attributes": {
                                      "type": "object",
                                      "properties": {
                                        "filename": {
                                          "type": "string",
                                          "example": "proof-of-Power.pdf"
                                        },
                                        "content": {
                                          "type": "string",
                                          "example": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgID"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "extraAttachments": {},
                            "address": {
                              "type": "object",
                              "properties": {
                                "data": {
                                  "type": "object",
                                  "properties": {
                                    "id": {},
                                    "type": {
                                      "type": "string",
                                      "example": "address"
                                    },
                                    "attributes": {
                                      "type": "object",
                                      "properties": {
                                        "zipCode": {
                                          "type": "string",
                                          "example": "01452002"
                                        },
                                        "street": {
                                          "type": "string",
                                          "example": "AV BRIG FARIA LIMA"
                                        },
                                        "number": {
                                          "type": "string",
                                          "example": "1355"
                                        },
                                        "complement": {
                                          "type": "string",
                                          "example": "ANDAR 15 SALA 5"
                                        },
                                        "country": {
                                          "type": "string",
                                          "example": "BR"
                                        },
                                        "state": {
                                          "type": "string",
                                          "example": "SP"
                                        },
                                        "city": {
                                          "type": "string",
                                          "example": "SÃO PAULO"
                                        },
                                        "neighborhood": {
                                          "type": "string",
                                          "example": "JARDIM PAULISTANO"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "pep": {
                              "type": "object",
                              "properties": {
                                "data": {
                                  "type": "object",
                                  "properties": {
                                    "id": {},
                                    "type": {
                                      "type": "string",
                                      "example": "shared"
                                    },
                                    "attributes": {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "example": "none"
                                        },
                                        "role": {},
                                        "documentNumber": {},
                                        "name": {}
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "null"
                  }
                },
                "schema": {}
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "660ea9b3f8253b0011474422:6610348354fcaf0012400399"
}
```