You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platform/guides/managed-orgs.mdx
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Managed organizations
3
3
description: Find out how to create managed organizations and their OAuth clients via the api.
4
4
---
5
5
6
-
## **1. How to create a managed organizations**
6
+
## **1. How to create a managed organization**
7
7
8
8
First, manually create an OAuth client in [https://app.cal.com/settings/platform](https://app.cal.com/settings/platform).
9
9
@@ -43,7 +43,7 @@ Here is response:
43
43
}
44
44
```
45
45
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.
47
47
48
48
Using same `x-cal-client-id` and `x-cal-secret-key` headers you can make requests to:
49
49
@@ -86,13 +86,10 @@ Response:
86
86
}
87
87
```
88
88
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:
90
90
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`
96
93
97
94
## **3. How to refresh api key of a managed organization**
0 commit comments