> For the complete documentation index, see [llms.txt](/llms.txt)

# GS2-Chat Master Data Reference

Reference for the master data format and the models to be imported




## Master Data Format


**JSON**
```json
{
  "version": "2020-04-30",
  "categoryModels": [
    {
      "category": "[int]Category",
      "rejectAccessTokenPost": "[string (enum)?]Reject posts made using player access tokens"
    }
  ]
}
```


|  | Type | Condition | Required | Default | Value Limits | Description |
| --- | --- | --- | --- | --- | --- | --- |
| version | string | | ✓ | 2020-04-30 | | Master data format version |
| categoryModels | [List&lt;CategoryModel&gt;](#categorymodel) |  |  |  |  ~ 1000 items | Message Category Model<br>A Message Category Model defines the categories used to classify messages posted in chat rooms.<br>Each category is identified by a numeric value, and you can configure whether posts using player access tokens are accepted or rejected per category.<br>This enables use cases such as system-only announcement categories where only the server can post messages. |

## Models

### CategoryModel

Message Category Model

A Message Category Model defines the categories used to classify messages posted in chat rooms.
Each category is identified by a numeric value, and you can configure whether posts using player access tokens are accepted or rejected per category.
This enables use cases such as system-only announcement categories where only the server can post messages.

|  | Type | Condition | Required | Default | Value Limits | Description |
| --- | --- | --- | --- | --- | --- | --- |
| categoryModelId | string |  | * |  |  ~ 1024 chars | Message Category Model GRN<br>* Set automatically by the server |
| category | int |  | ✓ |  | 0 ~ 2147483645 | Category<br>A numeric identifier for the message category. Messages posted with this category number will follow the rules defined in this model, such as whether player posts are allowed or rejected. |
| rejectAccessTokenPost | string (enum)<br>enum {<br>&nbsp;&nbsp;"Enabled",<br>&nbsp;&nbsp;"Disabled"<br>}<br> |  |  |  |  | Reject posts made using player access tokens<br>When enabled, only server-side API calls specifying a user ID can post messages in this category. This is useful for system announcements or server-generated messages that should not be posted by players directly."Enabled": Reject posts made using player access tokens / "Disabled": Allow posts made using player access tokens /  |

---



