> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neuro-tech.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Legal identity flow

> Apply, attach evidence, and request approval

## Overview

This flow guides a user through applying for a legal identity, attaching
supporting documents, and submitting for approval or peer review.

## Flow overview

```mermaid theme={null}
sequenceDiagram
  participant Client
  participant Neuron
  Client->>Neuron: Crypto/CreateKey
  Neuron-->>Client: key id
  Client->>Neuron: Legal/ApplyId
  Neuron-->>Client: legalId
  Client->>Neuron: Legal/AddIdAttachment (optional)
  Client->>Neuron: Legal/ReadyForApproval
  Neuron-->>Client: status
  Client->>Neuron: Legal/PetitionPeerReview (optional)
```

## Steps

1. Create a signing key with `Crypto/CreateKey`.
2. Apply for an identity with `Legal/ApplyId`.
3. Attach evidence files with `Legal/AddIdAttachment`.
4. Mark the application ready with `Legal/ReadyForApproval`.
5. If needed, petition peers or a review service for approval.

## Related endpoints

* `Legal/GetApplicationAttributes`
* `Legal/GetServiceProvidersForIdReview`
* `Legal/SelectReviewService`
* `Legal/AuthorizeAccessToId`
