# Auth Rule

## Auth Rule Token

### Required
- **uuid**  
cannot be null

### Properties
- **token**: Auth Rule Token
  - **state**: string, required, enum: `ACTIVE`, `INACTIVE`
  - **program_level**: boolean, required  
  - **card_tokens**: array of uuids, required  
  - **excluded_card_tokens**: array of uuids
  - **excluded_account_tokens**: array of uuids
  - **excluded_business_account_tokens**: array of uuids
  - **account_tokens**: array of uuids, required  
  - **business_account_tokens**: array of uuids, required  
  - **type**: string, required, enum: 
    - `CONDITIONAL_BLOCK`
    - `VELOCITY_LIMIT`
    - `MERCHANT_LOCK`
    - `CONDITIONAL_ACTION`
    - `TYPESCRIPT_CODE`
  - **current_version**: null | object, required  
  - **draft_version**: null | object, required  
  - **name**: null | string, required
  - **event_stream**: string, required, enum:
    - `AUTHORIZATION`
    - `THREE_DS_AUTHENTICATION`
    - `TOKENIZATION`
    - `ACH_CREDIT_RECEIPT`
    - `ACH_DEBIT_RECEIPT`
    - `CARD_TRANSACTION_UPDATE`
    - `ACH_PAYMENT_UPDATE`
  - **lithic_managed**: boolean, required, indicates whether this auth rule is managed by Lithic.

## Example Request
```bash
curl --request GET \
     --url https://sandbox.lithic.com/v2/auth_rules/auth_rule_token \
     --header 'accept: application/json'
```

## Example Response  
```json
{
  "token": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "state": "ACTIVE",
  "program_level": true,
  "card_tokens": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "excluded_card_tokens": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "excluded_account_tokens": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "excluded_business_account_tokens": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "account_tokens": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "business_account_tokens": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "type": "CONDITIONAL_BLOCK",
  "current_version": {
    "parameters": {
      "conditions": [
        {
          "attribute": "MCC",
          "operation": "IS_ONE_OF",
          "value": "string"
        }
      ]
    },
    "version": 0
  },
  "draft_version": {
    "parameters": {
      "conditions": [
        {
          "attribute": "MCC",
          "operation": "IS_ONE_OF",
          "value": "string"
        }
      ]
    },
    "version": 0,
    "state": "PENDING",
    "error": "string"
  },
  "name": "string",
  "event_stream": "AUTHORIZATION",
  "lithic_managed": true
}
```
