---
title: "Resolve an unmapped identity — link to an existing user or create a new one"
method: POST
path: "/api/users/unmapped/{kind}/{externalId}/resolve"
tags: ["Users"]
---

# Resolve an unmapped identity — link to an existing user or create a new one

`POST /api/users/unmapped/{kind}/{externalId}/resolve`

## Path parameters

- `kind` string, required
- `externalId` string, required

## Request body

- union
  - object
    - `userId` string, required
  - object
    - `name` string, required
    - `email` string, email
    - `notes` string

## Response `200`

Identity linked + kv entries cleared

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `404` — Target user not found

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
