# Identity

First written 11 March 2026, revised 15 August 2026.

Identity claim flow for verifying and linking individual identities.

2 endpoints

## Endpoints

| Method | Path | Description | Auth |

[

`/identity/claim`

Claim an identity stub

| POST |  | Claim an identity stub | Public |

][

`/identity/stub/{claim_code}`

Get public stub info

| GET |  | Get public stub info | Public |

]

## Endpoint Details

GET `/identity/stub/{claim_code}` Public

Returns anonymous stub info for the claim page - trait count, query count, accrued earnings, and status. No authentication required.

#### Path Parameters

| Name | Type | Required | Description |
| `claim_code`* | `string` | Required | The claim code (e.g., ALT-K7X9M2) |

#### Response

```
{
  "claim_code": "ALT-K7X9M2",
  "trait_count": 14,
  "query_count": 3,
  "accrued_earnings": 0.48,
  "attunement_band": "Known",
  "created_at": "2026-03-05T12:00:00Z",
  "status": "unclaimed"
}

```
POST `/identity/claim` Public

Claim an anonymous identity stub by providing email, password, and ToS acceptance. Creates a user account, activates the stub, and returns JWT tokens with earnings summary.

#### Request Example

```
{
  "claim_code": "ALT-K7X9M2",
  "email": "jane@example.com",
  "password": "S3cure!Pass#2026", // pragma: allowlist secret
  "tos_accepted": true
}

```
#### Response

```
{
  "access_token": "eyJhbGciOiJFUzI1NiIs...", // pragma: allowlist secret
  "token_type": "bearer",
  "expires_in": 3600,
  "user": {
    "id": "c1d2e3f4-a5b6-7890-cdef-123456789abc",
    "email": "jane@example.com",
    "role": "member"
  },
  "member_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "earnings_summary": {
    "total_earned": 0.48,
    "pending_amount": 0.16,
    "transaction_count": 3
  }
}

```

https://truealter.com/docs/rest-api/identity
