Creating API Keys

Request Address: /api/bot/api-keys

Request Method: POST

Request Header 👇

Name
Type
Description

Authorization

String

The user token obtained by logging in to the console

Request Parameter 👇

Name
Type
IsRequired
Description

Name

String

No

The name of API key

Response Parameter 👇

Name
Type
Description

id

int

id

version

int

version

name

string

The name of api key

userId

string

The OORT AI user id

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": {
        "userId": "426772239258484736",
        "secretKey": "502d0183bacc15ed31dd40bb2e1180b4707946ceea4ef4d36bb590b6284c21b9",
        "name": "test0808",
        "deletedTime": null,
        "lastUsed": null,
        "createdTime": "2023-08-08T04:58:43.713Z",
        "updatedTime": "2023-08-08T04:58:43.713Z",
        "version": 1,
        "id": 9
    }
}

Last updated