Skip to content

Commit

Permalink
feat: Add platform app docs (#505)
Browse files Browse the repository at this point in the history
* 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
muhsin-k and sojan-official authored Aug 20, 2024
1 parent 1e9193d commit ba37e31
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/sidebar/contributingGuide.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module.exports = [
items: [
"contributing-guide/chatwoot-apis",
"contributing-guide/api-documentation",
"contributing-guide/chatwoot-platform-apis",
"contributing-guide/security-reports",
"contributing-guide/translation-guidelines",
"contributing-guide/community-guidelines",
Expand Down
50 changes: 50 additions & 0 deletions docs/contributing-guide/chatwoot-platform-apis.md
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.

0 comments on commit ba37e31

Please sign in to comment.