API Keys
Create and manage API keys for programmatic access.
Issue keys for backend services, workers, queues, and automation jobs only.
Store keys in a secret manager and never expose them in browser bundles or logs.
Split keys by environment or service so rotation and incident response stay clear.
Operational Boundary
API keys are for backend services, workers, queues, and automation jobs only. Split keys by environment or service, store them in a secret manager, disable old keys when workflows, vendors, or employees change, and monitor usage before removing fallback paths.
Create an API Key
POST/v1/api-keysShow endpoint detailsHide endpoint details
/v1/api-keysAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Request Body
application/jsonRequirednameRequiredstringDisplay name for the API key
1Maximum length: 120expiresAtstring | nullOptional expiration date (ISO 8601)
"date-time"curl -X POST "https://api.hivebrowser.ai/v1/api-keys" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "expiresAt": "2019-08-24T14:15:22Z" }'fetch("https://api.hivebrowser.ai/v1/api-keys", { headers: { "Authorization": "Bearer <token>" }, body: JSON.stringify({ "name": "string", "expiresAt": "2019-08-24T14:15:22Z" })});API key created (includes secret)
Response example
{
"data": {
"id": "string",
"teamId": "string",
"name": "string",
"keyPrefix": "string",
"status": "ACTIVE",
"lastUsedAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"secret": "string"
}
}Invalid request payload
Response example
{
"error": "string",
"message": "string"
}Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}List API Keys
GET/v1/api-keysShow endpoint detailsHide endpoint details
/v1/api-keysAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
curl -X GET "https://api.hivebrowser.ai/v1/api-keys" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/api-keys", { headers: { "Authorization": "Bearer <token>" }});API key list
Response example
{
"data": {
"items": [
{
"id": "string",
"teamId": "string",
"name": "string",
"keyPrefix": "string",
"status": "ACTIVE",
"lastUsedAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"total": 0,
"page": 1,
"pageSize": 0
}
}Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Disable an API Key
POST/v1/api-keys/{id}/disableShow endpoint detailsHide endpoint details
/v1/api-keys/{id}/disableAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Path Parameters
idRequiredstringAPI key ID
curl -X POST "https://api.hivebrowser.ai/v1/api-keys/string/disable" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/api-keys/string/disable", { headers: { "Authorization": "Bearer <token>" }});API key disabled
Response example
{
"data": {
"id": "string",
"teamId": "string",
"name": "string",
"keyPrefix": "string",
"status": "ACTIVE",
"lastUsedAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Resource not found
Response example
{
"error": "string",
"message": "string"
}