---
updatedAt: 2026-04-29T23:07:57.000Z
agentTools:
  projectIndex: https://docs.bigeye.com/llms.txt
---

# Create a Service Account API Key

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Metadata",
    "version": "version not set"
  },
  "paths": {
    "/api/v1/personal-api-keys": {
      "post": {
        "operationId": "ServiceAccountApiKeyService_CreateServiceAccountApiKey",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/generatedCreatePersonalApiKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generatedCreatePersonalApiKeyResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runtimeError"
                }
              }
            }
          }
        },
        "summary": "Create a Service Account API Key",
        "tags": [
          "ServiceAccountApiKeyService"
        ]
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    },
    {
      "Personal_API_Key": []
    }
  ],
  "servers": [
    {
      "url": "https://app.bigeye.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      },
      "Personal_API_Key": {
        "description": "Add 'apikey ' to the beginning of your api key",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      }
    },
    "schemas": {
      "generatedCreatePersonalApiKeyRequest": {
        "properties": {
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "serviceAccountId": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "generatedCreatePersonalApiKeyResponse": {
        "properties": {
          "apiKey": {
            "type": "string"
          },
          "info": {
            "$ref": "#/components/schemas/generatedPersonalApiKeyInfo"
          }
        },
        "type": "object"
      },
      "generatedIdAndDisplayName": {
        "properties": {
          "displayName": {
            "type": "string"
          },
          "id": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "generatedPersonalApiKeyInfo": {
        "properties": {
          "createdAt": {
            "format": "int64",
            "type": "string"
          },
          "createdBy": {
            "$ref": "#/components/schemas/generatedUser"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "format": "int32",
            "type": "integer"
          },
          "lastUsedAt": {
            "format": "int64",
            "type": "string"
          },
          "lastUsedIp": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "owner": {
            "$ref": "#/components/schemas/generatedUser"
          }
        },
        "type": "object"
      },
      "generatedUser": {
        "properties": {
          "email": {
            "type": "string"
          },
          "groups": {
            "items": {
              "$ref": "#/components/schemas/generatedIdAndDisplayName"
            },
            "type": "array"
          },
          "id": {
            "format": "int32",
            "type": "integer"
          },
          "idpGroups": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "isServiceAccount": {
            "type": "boolean"
          },
          "lastLoginAt": {
            "format": "int64",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "pictureUrl": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "protobufAny": {
        "properties": {
          "typeUrl": {
            "type": "string"
          },
          "value": {
            "format": "byte",
            "type": "string"
          }
        },
        "type": "object"
      },
      "runtimeError": {
        "properties": {
          "code": {
            "format": "int32",
            "type": "integer"
          },
          "details": {
            "items": {
              "$ref": "#/components/schemas/protobufAny"
            },
            "type": "array"
          },
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  }
}
```