-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add platform API docs * Update chatwoot-platform-apis.md * Update chatwoot-platform-apis.md some updates --------- Co-authored-by: Sojan Jose <[email protected]>
- Loading branch information
1 parent
1e9193d
commit ba37e31
Showing
7 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
title: "Chatwoot Platform APIs" | ||
--- | ||
|
||
# Chatwoot Platform APIs | ||
|
||
The Chatwoot Platform APIs allow you to integrate a conversation management interface into your existing software stack. Installation admins can use these APIs to manage users, accounts, and roles. Additionally, these APIs can be used to sync authentication information from external systems into Chatwoot. | ||
|
||
> **Note:** These APIs are available only on `self-hosted` Chatwoot installations. | ||
## Creating a Platform App | ||
|
||
To create a platform app, follow these steps: | ||
|
||
1. Go to the super admin portal and navigate to `super_admin/platform_apps`. | ||
|
||
![Super Admin Portal](./images/platform-app/super_admin.png) | ||
|
||
2. Click on the "New platform app" button. | ||
|
||
![Platform Apps Home](./images/platform-app/platform-home.png) | ||
|
||
3. Fill in the platform app name and click the "Create" button. | ||
|
||
![Create Platform App](./images/platform-app/platform-create.png) | ||
|
||
4. After creating the platform app, open it to view and copy the access token. | ||
|
||
![Platform App Access Token](./images/platform-app/platform-access-token.png) | ||
|
||
## Using the Access Token | ||
|
||
The `access_token` is required to authenticate all API requests. Please use the Postman collection to test these APIs. | ||
|
||
### Testing the APIs | ||
|
||
To test the APIs: | ||
|
||
1. Copy the access token from the platform app. | ||
2. Use it in the `Authorization` header of your API requests. | ||
|
||
Here's an example of creating a user using the API: | ||
|
||
![Create User API](./images/platform-app/create-user.png) | ||
|
||
Similarly, you can create `Account` and `Role` entities using the APIs. | ||
|
||
## Reference | ||
|
||
For more detailed information and to test the APIs, refer to our [Postman Collection](https://www.postman.com/chatwoot/workspace/chatwoot-apis/collection/162770-e5451b69-9f97-489b-b352-4ca7d8d82aff). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.