Create a new API key

Create and configure a new API key by providing the necessary details in the request body.

POST

Parameters

Body

application/json
Name
REQUIRED
Descriptive name of the API key.
Permissions
REQUIRED
Status codeDescription
200The ID of the newly created API key.
400Bad request error - the request contains invalid parameters or malformed data
500Internal server error - an unexpected error occurred on the server
cURL
curl -L -X POST \
"https://blockv-labs.io/api-keys" \
-H 'Accept: application/json'
Response
{
"id": "string",
"secret": "string"
}
json
{
"type": "object",
"required": [
"id",
"secret"
],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the API key."
},
"secret": {
"type": "string",
"description": "The secret key value."
}
}
}