---
title: "Create Google Cal Access"
method: POST
path: "/setup/v1/locations/{id}/google/service/account"
tags: ["Locations"]
---

# Create Google Cal Access

`POST /setup/v1/locations/{id}/google/service/account`

Use this endpoint to **Authorize Access** to google calendar users in your organization. You must create/have a Google Service account as an admin of your GSuite, then save the credentials as a Json Key file. This **Json Key** and a valid business **location id** are required.

## Path parameters

- `id` string, required

## Request body

- GoogleServiceAccountCreds
  - `type` string, nullable
  - `project_id` string, nullable
  - `private_key_id` string, nullable
  - `private_key` string, nullable
  - `client_email` string, nullable
  - `client_id` string, nullable
  - `auth_uri` string, nullable
  - `token_uri` string, nullable
  - `auth_provider_x509_cert_url` string, nullable
  - `client_x509_cert_url` string, nullable

## Response `200`

Success

- GoogleServiceAccountCreds
  - `type` string, nullable
  - `project_id` string, nullable
  - `private_key_id` string, nullable
  - `private_key` string, nullable
  - `client_email` string, nullable
  - `client_id` string, nullable
  - `auth_uri` string, nullable
  - `token_uri` string, nullable
  - `auth_provider_x509_cert_url` string, nullable
  - `client_x509_cert_url` string, nullable

---

[API](https://skmtc.net/onsched/apis/onsched-setup-api.md) · [All operations](https://skmtc.net/onsched/apis/onsched-setup-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onsched/onsched-setup-api/revisions/c5c023458a2f/schema)
