---
title: "Add a domain to a Google Workspace integration instance"
method: POST
path: "/gsuites/{gsuite_id}/domains"
tags: ["G Suite"]
---

# Add a domain to a Google Workspace integration instance

`POST /gsuites/{gsuite_id}/domains`

## Request

- Base URL: `https://console.jumpcloud.com/api/v2`
- URL: `https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/domains`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/docs/gsuites/:gsuite_id/domains/post.ts> (a function with typed inputs; its response is checked against the schema)

Add a domain to a specific Google Workspace directory sync integration instance. The domain must be a verified domain in Google Workspace.

#### Sample Request
```
curl -X POST https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/domains \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}' \
  -d '{"domain": "{domain name}"}'
```

## Path parameters

- `gsuite_id` string, byte, required

## Query parameters

- `domain` string

## Response `200`

A successful response.

- JumpcloudGappsDomainResponse
  - `domain` JumpcloudGappsDomain
    - `accountObjectId` string, byte: Unique identifier of the GSuite.
    - `default` boolean: Suggests if the domain is default
    - `domain` string: name of the domain
    - `objectId` string, byte: Unique identifier of the Domain.

## Other responses

- `201`: Created
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: An unexpected error response.

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/revisions/3f09fe63caaa?raw)
