WhatsApp Phone number registration required
Integrating your WhatsApp Business API client with the Profichat Platform involves several crucial steps, including uploading and configuring a certificate for secure communication. This guide will walk you through the entire process to ensure your Profichat Platform instance can communicate seamlessly with the WhatsApp Business API client.
New WhatsApp numbers must be registered via https://developers.facebook.com/tools/explorer?method=GET&path=482709924924417&version=v20.0
Step 1: Access Your Server
To get started, access the server where your WhatsApp Business API client is running:
- Log in to server:
- Use SSH or a similar method to access your server (e.g., via terminal or PuTTY).
- Make sure you have the required administrative permissions to modify files on the server.
Step 2: Locate the Directory for Certificates
Identify where the certificate should be uploaded:
- Find the directory that holds configuration files and certificates for the WhatsApp Business API client. This directory might be:
/etc/whatsapp/
- A custom path defined during your API client setup.
- If unsure, inspect the client’s configuration file (e.g.,
config.yml
or docker-compose.yml
) to see where certificates are referenced.
Step 3: Upload the Certificate
Transfer the certificate from your local machine to your server:
- Upload the certificate file using
scp
, sftp
, or a file transfer tool like WinSCP or FileZilla.
- Place the certificate in the appropriate directory, such as
/etc/whatsapp/certs/
.
- Command example using
scp
:
scp /path/to/your/certificate.pem user@your-server:/etc/whatsapp/certs/
Step 4: Configure the WhatsApp Business API Client
Ensure the client can use the certificate by updating its configuration:
- Edit the main configuration file (e.g.,
config.yml
):
certificate_path: /etc/whatsapp/certs/certificate.pem
- For Docker setups, modify
docker-compose.yml
:
volumes:
- /etc/whatsapp/certs/certificate.pem:/app/certificate.pem
Step 5: Restart the API Client
To apply the changes, restart your API client:
- Restart the service:
- If your client runs as a service:
sudo systemctl restart whatsapp-api-client
docker-compose down && docker-compose up -d
Step 6: Test the Integration
Confirm that the Profichat Platform is now securely connected to the WhatsApp Business API client:
- Send a test message from the Profichat Platform to verify proper communication and check for any errors.
- Review the logs for any issues related to certificate configuration or SSL connections.
Troubleshooting Tips
- Check log files if you encounter issues, ensuring the certificate path and permissions are correct.
- Adjust permissions using
chmod 644
to allow the API client to read the certificate.
Final Thoughts
Setting up the certificate correctly ensures a secure and smooth connection between the Profichat Platform and your WhatsApp Business API client. Following these steps will help you maintain reliable and encrypted communication with your users.
Stay tuned for more tips and guides on optimizing your Profichat Platform setup!