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/jsonName
REQUIRED
Descriptive name of the API key.
Permissions
REQUIRED
| Status code | Description |
|---|---|
| 200 | The ID of the newly created API key. |
| 400 | Bad request error - the request contains invalid parameters or malformed data |
| 500 | Internal 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."}}}