Docs
Obtaining ChatWork API Token and Room ID
This guide will walk you through the process of obtaining your ChatWork API token and finding your room ID. These are essential for integrating ChatWork with your application.
Step 1: Get Your ChatWork API Token
Log in to your ChatWork account.
Go to the API Token page: https://www.chatwork.com/service/packages/chatwork/subpackages/api/token.php
You'll see your API token displayed on this page.
If no token is displayed, or if you want to generate a new one, click on the "Generate" button.
Copy the API token. This is what you'll need to save in your dashboard.
Important : Keep this token secure and do not share it with others. It provides access to your ChatWork account.
Step 2: Find Your Room ID
To get a room ID:
Log in to your ChatWork account.
Open the chat room you want to integrate with.
Look at the URL in your browser. It should look like: https://www.chatwork.com/#!ridXXXXXXXXX
The room ID is the number after rid
. For example, if the URL ends with rid123456789
, the room ID is 123456789
.
Step 3: Save Token and Room ID in Dashboard
Go to your application's dashboard.
Navigate to the client settings or integration section.
Look for the ChatWork integration option.
Paste your API Token into the designated field.
Enter the Room ID for the chat room you want to integrate with.
Save your changes.
Using Your ChatWork Integration
With the API token and room ID saved, your application can now interact with ChatWork. You can use the integration to:
Send messages to the specified room
Retrieve room information
Read messages from the room
Remember to keep your API token secure and never share it publicly.
Important Notes
API tokens are tied to your ChatWork account. If you change your password or log out of all sessions, you may need to generate a new token.
Make sure to comply with ChatWork's API usage guidelines and rate limits.
For detailed API documentation and advanced features, refer to the ChatWork API Documentation .
If you need to update your integration settings or generate a new token, you can always return to the API Token page in your ChatWork account settings.