All Products
Search
Document Center

AI Coding Assistant Lingma:Obtain an access token

Last Updated:Dec 04, 2025

Access tokens are used to call API operations. This topic describes how to obtain an access token.

Applicable editions

Enterprise Dedicated Edition

Important

A token has the same permissions to access and manage resources as the user who created it. Use tokens with caution. Before you use a token, read Obtain a personal access token.

Procedure

  1. Log on to the console. Click Dedicated. In the Actions column of the target instance, click Go to Instance.

  2. In the upper-right corner of the page, click your profile and click Personal Settings. You can also go directly to the page at https://{primary domain name of the organization instance}/users/settings/personalAccessToken.

    image - 2025-04-01T110234

  3. In the navigation pane on the left, click Access Token. On the page that appears, set the token name, description, expiration time, and permissions. Then, click Create.

    image - 2025-04-01T111430

    Parameter

    Description

    Token Name

    A custom name for the token. The name can be up to 64 characters long.

    Description

    A description for the personal access token.

    Expiration Date

    Warning

    The token expires at this time. After it expires, it cannot be used to call API operations.

    Select Permissions

    Configure permissions as needed.

  4. The following table describes the Select Permissions parameter.

    Category

    Object

    Permission

    Description

    Basic services

    Organization members

    Read-only, Inaccessible

    ListMembers - Query a list of members

    Organization departments

    Read-only, Inaccessible

    ListDepartments - Query a list of organization departments

    Lingma

    Developer usage statistics

    Read-only, Inaccessible

    GetDeveloperUsage - Get a list of member usage data

    Department usage statistics

    Read-only, Inaccessible

    GetDepartmentUsage - Get department usage data

    Knowledge base

    Read-only, Read/Write, Inaccessible

    Knowledge base management

    Knowledge base members

    Read-only, Read/Write, Inaccessible

    Knowledge base member management

    Knowledge base files

    Read-only, Read/Write, Inaccessible

    Knowledge base file management