
Advanced administration via API
How to automate user administration in Pachca with the API: creating users, managing them and tags
Methods for managing members, tags and chats
Pachca lets you fully automate member management, which makes things much easier for large teams. You won't need to manually add and remove users, invite them to chats, remove them from chats or update key profile details. Your tech team can automate all of it with the Pachca open API.
To manage users via the API, you need to:
- Create a service account that will perform the user management actions
- Give it the "Administrator" role in Members
- Get an Access Token for the account in Automations -> API
You can find all these methods in the open Pachca API docs
Or use the description of our public API in OpenAPI format
User management
You can set up automatic user management in Pachca and:
- Add a new employee to Pachca when they're hired and send them an email invitation.
- Remove an employee from Pachca when they leave the company.
- Set an employee's access level. For example, if you're adding a partner who shouldn't have access to internal company information, you can give them guest access. If you want to give an employee extended admin permissions, you can give them Administrator access.
- Update an employee's details when their position or manager changes.
- Set a common naming standard. For example, users in your AD have names in Latin script, but you want all names in Pachca to be in Cyrillic.
- Get information about an employee (name, email, access level and so on).
Chat and channel management
The API lets you manage your company's chats and channels. Here's what you can do:
-
Add new employees to their team's chats.
-
Remove an employee from chats and add them to new ones when they move to another team or department.
-
Get a list of all chats in the workspace to keep track of members and the main chat settings (description, public/private, added tags and integrations).
-
Get a chat's members, name and other settings.
-
Get a list of messages from chats, channels, threads and direct messages, plus reactions, by chat ID.
Important! You can get a list of all public chats. For private chats, you can only get the ones the service account is a member of.
-
Update the main chat settings. For example, if you name all important company chats with #info, you can add this label to chat names automatically.
Important! You can only change the settings of chats where the service account is an admin.
Group tag management
Group tags in Pachca let you add a group of employees to a chat and mention them there. Members with the tag can't leave the chat on their own. Learn more here.
With automated tag management, you can:
- Create the tags you need and assign them to employees. For example, you can give everyone on the DevOps team a DevOps tag.
- Get the full list of tags with their names, IDs and the number of employees assigned to each tag.
- Add tags to the channels and chats you need. This way, you can add the DevOps team to all the required DevOps chats. In these chats, the tag can be mentioned, and members with the tag can't leave the chat.
- Remove tags from a chat.