curl --request POST \
--url https://app.herondata.io/api/credentials/keys \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>"
}
'{
"created": "2023-11-07T05:31:56Z",
"heron_id": "<string>",
"is_active": true,
"name": "<string>",
"token": "<string>",
"token_prefix": "<string>"
}Create a new named API key for the authenticated user. The full token is returned only in this response - it cannot be retrieved again.
curl --request POST \
--url https://app.herondata.io/api/credentials/keys \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>"
}
'{
"created": "2023-11-07T05:31:56Z",
"heron_id": "<string>",
"is_active": true,
"name": "<string>",
"token": "<string>",
"token_prefix": "<string>"
}A descriptive name for the key
1 - 128Was this page helpful?