Skip to content

Commit f4223d1

Browse files
docs: fix grammar, redundant word, and simplify OAuth client docs (calcom#25747)
* docs: fix grammar and redundant word in managed organizations guide Co-Authored-By: [email protected] <[email protected]> * docs: simplify OAuth client fetching paragraphs per Pedro's feedback Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]>
1 parent b0bf0aa commit f4223d1

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

docs/platform/guides/managed-orgs.mdx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Managed organizations
33
description: Find out how to create managed organizations and their OAuth clients via the api.
44
---
55

6-
## **1. How to create a managed organizations**
6+
## **1. How to create a managed organization**
77

88
First, manually create an OAuth client in [https://app.cal.com/settings/platform](https://app.cal.com/settings/platform).
99

@@ -43,7 +43,7 @@ Here is response:
4343
}
4444
```
4545

46-
Notably, you will only have access to the `apiKey` only now, so make sure to create a table in your database where you store managed organization's `id` and `apiKey` . The `apiKey` will be used to create an OAuth client that is used to create platform users.
46+
Notably, you will only have access to the `apiKey` now, so make sure to create a table in your database where you store managed organization's `id` and `apiKey` . The `apiKey` will be used to create an OAuth client that is used to create platform users.
4747

4848
Using same `x-cal-client-id` and `x-cal-secret-key` headers you can make requests to:
4949

@@ -86,13 +86,10 @@ Response:
8686
}
8787
```
8888

89-
To fetch all OAuth clients of a managed organization make a GET request to `https://api.cal.com/v2/oauth-clients` by:
89+
Using the same `Authorization: Bearer <apiKey>` header, you can also:
9090

91-
1. Setting `Authorization: Bearer <apiKey>` header where `<apiKey>` is the api key returned when creating a managed organization.
92-
93-
To fetch a specific OAuth client of a managed organization make a GET request to `https://api.cal.com/v2/oauth-clients/:oAuthClientId` by:
94-
95-
1. Setting `Authorization: Bearer <apiKey>` header where `<apiKey>` is the api key returned when creating a managed organization.
91+
- Fetch all OAuth clients: GET `https://api.cal.com/v2/oauth-clients`
92+
- Fetch a specific OAuth client: GET `https://api.cal.com/v2/oauth-clients/:oAuthClientId`
9693

9794
## **3. How to refresh api key of a managed organization**
9895

0 commit comments

Comments
 (0)