---
updatedAt: 2025-09-16T00:29:45.000Z
agentTools:
  projectIndex: https://docs.cgn.portal.checkpoint.com/llms.txt
---

# Post Service Account

Create a new Service Account

# OpenAPI definition

```json
{
  "info": {
    "title": "Administration",
    "version": "v2"
  },
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.dome9.com/",
      "description": "US region"
    },
    {
      "url": "https://api.{region}.dome9.com/",
      "description": "Other regions",
      "variables": {
        "region": {
          "enum": [
            "eu1",
            "ap1",
            "ap2",
            "ap3",
            "cace1"
          ],
          "default": "eu1"
        }
      }
    }
  ],
  "paths": {
    "/v2/service-account": {
      "post": {
        "tags": [
          "Service Account"
        ],
        "summary": "Post Service Account",
        "operationId": "ServiceAccount_PostServiceAccount_post_/v2/service-account",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Dome9.Web.Api.ServiceAccountViewModel"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Dome9.Web.Api.ServiceAccountViewModel"
              }
            }
          },
          "description": "The name of the Service Account and the role IDs to assign it.",
          "required": true
        },
        "description": "Create a new Service Account"
      }
    }
  },
  "components": {
    "schemas": {
      "Dome9.Web.Api.ServiceAccountViewModel": {
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 50,
            "minLength": 0,
            "pattern": "[^/]+$",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "roleIds": {
            "type": "array",
            "items": {
              "format": "int64",
              "type": "integer"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "basic": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basic": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```