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

# Get character history mission list by token ID

> Retrieve character history mission information with optional filtering by main and sub categories

## Path parameters

<ParamField path="tokenId" type="string" required>
  The character token ID
</ParamField>

## Query parameters

<ParamField query="mainCategory" type="string">
  Filter by main category. Options: `HISTORY_MISSION_MAIN_CATEGORY_CHARACTER`, `HISTORY_MISSION_MAIN_CATEGORY_ITEM`, `HISTORY_MISSION_MAIN_CATEGORY_ADVENTURE`, `HISTORY_MISSION_MAIN_CATEGORY_BATTLE`, `HISTORY_MISSION_MAIN_CATEGORY_BLOCKCHAIN`, `HISTORY_MISSION_MAIN_CATEGORY_SOCIAL`
</ParamField>

<ParamField query="subCategory" type="string">
  Filter by sub category
</ParamField>

<ParamField query="cursor" type="string">
  Pagination cursor for next page
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Indicates if the request was successful
</ResponseField>

<ResponseField name="data" type="object">
  <Expandable title="properties">
    <ResponseField name="historyMissions" type="array">
      List of history mission objects
    </ResponseField>

    <ResponseField name="nextCursor" type="string">
      Cursor for the next page
    </ResponseField>

    <ResponseField name="hasMore" type="boolean">
      Indicates if more results are available
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://openapi.msu.io/v1rc1/characters/by-token-id/{tokenId}/history-missions?mainCategory=HISTORY_MISSION_MAIN_CATEGORY_CHARACTER' \
    --header 'Content-Type: application/json' \
    --header 'x-nxopen-api-key: YOUR_API_KEY'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://openapi.msu.io/v1rc1/characters/by-token-id/{tokenId}/history-missions?mainCategory=HISTORY_MISSION_MAIN_CATEGORY_CHARACTER', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
      'x-nxopen-api-key': 'YOUR_API_KEY'
    }
  });
  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  url = "https://openapi.msu.io/v1rc1/characters/by-token-id/{tokenId}/history-missions"
  params = {"mainCategory": "HISTORY_MISSION_MAIN_CATEGORY_CHARACTER"}

  headers = {
    "x-nxopen-api-key": "YOUR_API_KEY"
  }

  response = requests.get(url, params=params, headers=headers)
  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "historyMissions": [],
      "nextCursor": "string",
      "hasMore": false
    }
  }
  ```
</ResponseExample>

## Notes

* Pagination is supported, with 20 items per page
