curl --request POST \
--url https://api.eu.bronto.io/api-keys \
--header 'Content-Type: application/json' \
--header 'X-BRONTO-API-KEY: <api-key>' \
--data '
{
"name": "Production Monitoring API Key",
"roles": [
"IngestionApi",
"SearchApi",
"AdminApi"
],
"ttl": 31536000
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Production API Key",
"api_key": "2ad85149",
"roles": [
"SearchApi",
"IngestionApi"
],
"tags": {
"region": "eu",
"environment": "production"
},
"expires_at": 1757000000,
"metadata": {
"created_at": 123,
"created_by": {
"type": "API_KEY_ID",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"modified_at": 123,
"modified_by": {
"type": "API_KEY_ID",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"deleted_at": 123,
"deleted_by": {
"type": "API_KEY_ID",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"last_heartbeat_at": 1791331200000
}
}{
"code": 400,
"type": "Bad Request",
"correlation_id": "95c6a974e3ab01209b6b0dfedb1b16c5",
"details": "Validation failed: 'name' field is required and cannot be empty"
}{
"code": 404,
"type": "Not Found",
"correlation_id": "605f832bcfe44a1081441691c8d42253",
"details": "Resource not found."
}{
"code": 429,
"type": "Too Many Requests",
"correlation_id": "53909ed43c544531b7a555e295960437",
"details": "Rate limit exceeded. Maximum 100 requests are allowed within a 5-minute window."
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}api-keys
Create a new API key
POST
/
api-keys
curl --request POST \
--url https://api.eu.bronto.io/api-keys \
--header 'Content-Type: application/json' \
--header 'X-BRONTO-API-KEY: <api-key>' \
--data '
{
"name": "Production Monitoring API Key",
"roles": [
"IngestionApi",
"SearchApi",
"AdminApi"
],
"ttl": 31536000
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Production API Key",
"api_key": "2ad85149",
"roles": [
"SearchApi",
"IngestionApi"
],
"tags": {
"region": "eu",
"environment": "production"
},
"expires_at": 1757000000,
"metadata": {
"created_at": 123,
"created_by": {
"type": "API_KEY_ID",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"modified_at": 123,
"modified_by": {
"type": "API_KEY_ID",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"deleted_at": 123,
"deleted_by": {
"type": "API_KEY_ID",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"last_heartbeat_at": 1791331200000
}
}{
"code": 400,
"type": "Bad Request",
"correlation_id": "95c6a974e3ab01209b6b0dfedb1b16c5",
"details": "Validation failed: 'name' field is required and cannot be empty"
}{
"code": 404,
"type": "Not Found",
"correlation_id": "605f832bcfe44a1081441691c8d42253",
"details": "Resource not found."
}{
"code": 429,
"type": "Too Many Requests",
"correlation_id": "53909ed43c544531b7a555e295960437",
"details": "Rate limit exceeded. Maximum 100 requests are allowed within a 5-minute window."
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}Authorizations
ApiKeyAuthBearerAuth
Body
application/json
The name of the API key to create
Required string length:
1 - 255Example:
"Production API Key"
A list of api key role ids
Example:
["IngestionApi"]
The time to live for the API key in seconds, defaults to no expiry
Required range:
0 <= x <= 70000000Example:
31536000
Response
API keys is created successfully
The unique identifier for the API key
The name of the API key
Example:
"Production API Key"
The first 8 characters of the API key. Note its not possible to retrieve the key after creation time.
Example:
"2ad85149"
A list of api key role ids
Example:
["SearchApi", "IngestionApi"]
A map of key value pairs associated with the resource
Show child attributes
Show child attributes
Example:
{
"region": "eu",
"environment": "production"
}
The expiration time of the API key, expressed as a Unix timestamp. If not set, the key never expires.
Example:
1757000000
Common metadata attached to all persisted resources.
Show child attributes
Show child attributes
