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

> ## Agent Instructions
> Melso MCP: https://mcp.melso.ai/mcp (OAuth; one company per connection). Documentation-search MCP: https://docs.melso.ai/mcp; it does not act on customer accounts. Melso API: https://api.melso.ai/v1, with a company API key or a partner key (early access); invoicing is live and the other operations are marked beta.
>
> Use the live tool list and respect company membership. Ask the person to approve the exact invoice or tax return version in the signed-in app. Melso's professionals prepare and file included returns after approval; an AI assistant does not file. A prepared file or an approval is not evidence of filing: only the AEAT's reference and receipt are. Keep credentials out of chat and logs.

# Identity verification

> When Melso needs to verify who your customer is, how the owner does it from your product, and how each verification's status reaches you.

> [!WARNING]
>
> **Beta.** Melso does not serve these endpoints yet, and their fields can still
> change.

Melso acts before the AEAT, the Social Security and notaries on behalf of your
customers, so it needs to know who they are. How depends on whether the
business already exists.

| Case | How Melso knows who it is |
| - | - |
| [Existing business](https://docs.melso.ai/api/partner/guides/existing-business.md) | Its [digital certificate](https://docs.melso.ai/api/partner/guides/certificate.md). Melso checks that the holder is the self-employed person, the company, or one of its administrators. |
| [New S.L.](https://docs.melso.ai/api/partner/guides/incorporation.md) | Every partner of the S.L. verifies their identity before the deed is signed. |
| [New self-employed registration](https://docs.melso.ai/api/partner/guides/incorporation.md) | The person verifies their identity before Melso registers them. |
| [Approving a return](https://docs.melso.ai/api/partner/guides/approvals.md) | You authenticate the person in your product and send who approved. Melso checks they are the self-employed person or an administrator of the company. |

## Verify a person for an incorporation

The person shows an identity document (DNI, NIE or passport) and takes a
selfie, on a page of Melso's identity provider. It takes about two minutes on a
phone.

**1. Know when it is needed**

The incorporation's `identity_verifications` lists each person who must verify,
and you get [`incorporation.action_required`](https://docs.melso.ai/api/partner/webhooks) when one is
due.

**2. Start a verification**

[Create an identity verification](https://docs.melso.ai/api/partner/reference/create-identity-verification.md)
for that person:

```bash theme={null}
curl -X POST https://api.melso.ai/v1/partner/incorporations/$INCORPORATION_ID/identity-verifications \
  -H "Authorization: Bearer $MELSO_PARTNER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tax_id": "00000000T"}'
```

```json theme={null}
{
  "id": "iv_5e2a9c1d",
  "tax_id": "00000000T",
  "name": "Lucía Martín Pérez",
  "status": "not_started",
  "url": "https://melso.ai/verify#…",
  "expires_at": "2026-12-02T09:30:00Z"
}
```

**3. Open it for the person**

Open `url` in your mobile app's in-app browser or in a new tab. It works once
and for 24 hours. A new verification for the same person cancels the earlier one.

**4. Follow its status**

The incorporation's `identity_verifications` carries each one's `status`, and
`incorporation.updated` fires when it changes.

| `status` | Meaning |
| - | - |
| `not_started` | The link has not been opened. |
| `in_progress` | The person is on it. |
| `in_review` | Melso's identity provider is checking it, usually within minutes. |
| `approved` | Done. Nothing else to do. |
| `declined` | The document or the selfie did not pass. Start a new one. |
| `abandoned`, `expired` | The person left or the link expired. Start a new one. |

If you never start a verification, Melso's team emails the person a link of its
own after the incorporation is `in_progress`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.