Getting a List of API Keys

Request Address: /api/bot/api-keys/list

Request Method: GET

Request Header 👇

Name
Type
Description

Authorization

String

The user token obtained by logging in to the console

Response Parameter 👇

Name
Type
Description

count

int

The list count

id

int

id

version

int

version

name

string

The name of API key

userId

string

The user id of OORT AI user

secretKey

string

The API key info

CreatedTime

string

The create time of API key

updatedTime

string

The update time of API key

deletedTime

string

The delete time of API key

lastUsed

int

The call times of this method

Response Example 👇

{
    "code": 0,
    "msg": "success",
    "data": {
        "list": [
            {
                "createdTime": "2023-07-27T12:24:52.446Z",
                "updatedTime": "2023-07-27T12:24:52.446Z",
                "deletedTime": null,
                "version": 1,
                "id": 3,
                "userId": "426772239258484736",
                "name": "tigerKey",
                "secretKey": "ddc7a1ce53caa8789ec9ad559f5a2c0b7acc858f6aeee2b685a62f7e459a2f7d",
                "lastUsed": null
            },
            {
                "createdTime": "2023-08-08T04:58:43.713Z",
                "updatedTime": "2023-08-08T04:58:43.713Z",
                "deletedTime": null,
                "version": 1,
                "id": 9,
                "userId": "426772239258484736",
                "name": "test0808",
                "secretKey": "502d0183bacc15ed31dd40bb2e1180b4707946ceea4ef4d36bb590b6284c21b9",
                "lastUsed": null
            }
        ],
        "count": 2
    }
}

Last updated