Cortex API
Search…
⌃K

queryProfile

This method returns the list of all the training profiles of the user.

Parameters

Name
Type
Required
Description
cortexToken
string
yes
A token returned by authorize.

Result

The result is an array of objects , or an empty array if the user has no profile. Each object includes these fields:
Name
Type
Description
name
string
The name of the profile.

Example

Request
Response
{
"id": 1,
"jsonrpc": "2.0",
"method": "queryProfile",
"params": {
"cortexToken": "xxx"
}
}
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{"name":"Profile A"},
{"name":"Profile B"}
]
}