@ory/kratos-client
Version:
OpenAPI client for @ory/kratos-client
40 lines (32 loc) • 2.95 kB
Markdown
Create Identity Body
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**credentials** | [**IdentityWithCredentials**](IdentityWithCredentials.md) | | [optional] [default to undefined]
**external_id** | **string** | ExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities. | [optional] [default to undefined]
**metadata_admin** | **any** | Store metadata about the user which is only accessible through admin APIs such as &
**metadata_public** | **any** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] [default to undefined]
**organization_id** | **string** | | [optional] [default to undefined]
**recovery_addresses** | [**Array<RecoveryIdentityAddress>**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] [default to undefined]
**schema_id** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity\&
**state** | **string** | State is the identity\&
**traits** | **object** | Traits represent an identity\&
**verifiable_addresses** | [**Array<VerifiableIdentityAddress>**](VerifiableIdentityAddress.md) | VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] [default to undefined]
```typescript
import { CreateIdentityBody } from '@ory/kratos-client';
const instance: CreateIdentityBody = {
credentials,
external_id,
metadata_admin,
metadata_public,
organization_id,
recovery_addresses,
schema_id,
state,
traits,
verifiable_addresses,
};
```
[[Back to Model list]](../README.md