# GenerateApiKeyRequest


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **string** | Name for the API key. This helps identify the key\&#39;s purpose | [default to undefined]
**key_type** | [**ApiKeyType**](ApiKeyType.md) |  | [optional] [default to undefined]
**scopes** | [**Array&lt;ApiKeyScope&gt;**](ApiKeyScope.md) | List of scopes to grant to the API key. If the broad &#x60;write&#x60; parent scope is included, &#x60;read&#x60; must also be included. Child scopes may be granted without the broad parent scope. Defaults to full access (&#x60;read&#x60;, &#x60;write&#x60;) if not provided. | [optional] [default to undefined]
**subaccount** | **number** | If set, restricts the API key to a single sub-account (0-63) that you own. A restricted key may only read and trade on that sub-account; it cannot act on other sub-accounts, transfer funds between sub-accounts, or create sub-accounts. Omit to leave the key unrestricted. Mutually exclusive with fcm_subtrader_id. | [optional] [default to undefined]
**fcm_subtrader_id** | **string** | FCM members only. If set, binds the API key to a single FCM subtrader that you own, spelled {your_user_id}_{suffix} with a suffix of 1-16 case-sensitive ASCII alphanumeric characters. The subtrader must already exist. A bound key is the institution\&#39;s trading credential for that subtrader - FIX order-entry and market-data sessions, plus margin WebSocket sessions scoped to the subtrader\&#39;s own data - and is denied on every REST endpoint, including key management. Mutually exclusive with subaccount. | [optional] [default to undefined]

## Example

```typescript
import { GenerateApiKeyRequest } from 'kalshi-typescript';

const instance: GenerateApiKeyRequest = {
    name,
    key_type,
    scopes,
    subaccount,
    fcm_subtrader_id,
};
```

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
