---
title: "Create Identity"
method: POST
path: "/v1/identities"
tags: ["Identities"]
---

# Create Identity

`POST /v1/identities`

Creates a new identity with credentials for authentication.

## Query parameters

- `validateAsync` boolean

## Request body

- CreateIdentityRequestSchema
  - `name` string — Name of the identity. Defaults to "Unnamed Identity" if not provided.
  - `source` string, uri, required — The source URL for the identity (e.g., login page URL)
  - `credentials` CredentialSchema[], required — Array of credentials for authentication
    - union
      - UsernamePasswordCredentialSchema
        - `type` 'username_password' — The type of credential
        - `username` string — The username of the credential
        - `password` string — The password of the credential
      - AuthenticatorCredentialSchema
        - `type` 'authenticator' — The type of credential
        - `secret` string — The secret of the credential
        - `otp` string — The OTP of the credential
      - CustomCredentialSchema
        - `type` 'custom' — The type of credential
        - `fields` object[]
          - `name` string — The name of the field
          - `value` string — The value of the field
  - `metadata` object — Optional metadata for the identity
  - `applicationName` string — Optional application name to associate with the identity
  - `applicationDescription` string — Optional application description

## Response `201`

Identity created successfully

- CreateIdentityResponseSchema
  - `id` string, uuid — Unique identifier for the identity
  - `name` string — Name of the identity
  - `status` 'pending' | 'validated' | 'failed' — Status of the identity
  - `metadata` object — Metadata associated with the identity
  - `created_at` string, date-time — Timestamp when the identity was created

## Other responses

- `400` — Invalid request parameters
- `500` — Failed to create identity

## Changes

- **2026-01-02** `4b12d8cb611b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/changes/v1/identities/post.md)

---

[API](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api.md) · [All operations](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anchorbrowser/anchorbrowser-api/revisions/d0f5aa64f9f4/schema)
