generateApiKey
POST
JSON-RPC generateApiKeyProtocol Details
ProtocolJSON-RPC
TransportHTTP POST
MethodgenerateApiKey
Parameters1
Resultobject
Inputs
Outputs
result
Shapeobject
SchemaGeneratedApiKey
RequiredapiKey, id, createdAt
idstringrequiredapiKeystringrequiredRelated Schemas
params
params
namestringrequiredGeneratedApiKey
GeneratedApiKey
idstringrequiredapiKeystringrequiredHistory
Added
1.5.0cURL
cURL
curl \
<JSON_RPC_URL> \
-H 'content-type: application/json' \
--data @- <<'EOF'
{
"jsonrpc": "2.0",
"id": 1,
"method": "generateApiKey",
"params": {
"params": {
"name": "<string>"
}
}
}
EOF
Resultapplication/json
Result
{
"id": "<string>",
"apiKey": "<string>"
}