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

# End-users

> Create and manage end-users for your Treasury integration

End-users represent your customers within the Axra Treasury system. Each end-user can have KYC verification, wallets, and payouts.

## Create an end-user

```bash theme={null}
curl -X POST https://api.useaxra.com/api/v1/treasury/users \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{
    "externalId": "user_123",
    "email": "jane@example.com",
    "name": "Jane Doe"
  }'
```

**Response:**

```json theme={null}
{
  "id": "eu_abc123",
  "partnerId": "p_xyz",
  "externalId": "user_123",
  "email": "jane@example.com",
  "name": "Jane Doe",
  "status": "ACTIVE"
}
```

## Partner isolation

Every API call is scoped to your partner. You cannot access another partner's end-users. This is enforced at the database level — Partner A receives `404` when querying Partner B's user IDs.

<Card title="API Reference" icon="code" href="/api-reference/treasury/create-end-user">
  See full endpoint documentation with request/response schemas.
</Card>
