Create Agent
Use this endpoint to create an agent using the Channel Manager API. It registers an agent for a given brand, including providing branding assets (logo, banner), display information, phone number, description, etc.
Example
Find the description for all variables used in each code snippet below:
| キー | 説明 |
|---|---|
VONAGE_API_KEY | Your Vonage API key (see it on your dashboard). |
VONAGE_API_SECRET | Your Vonage API secret (also available on your dashboard). |
VONAGE_APPLICATION_ID | The Vonage Application ID. |
CHANNEL_MANAGER_RCS_AGENT_DISPLAY_NAME | The unique display name of the RCS Agent. |
CHANNEL_MANAGER_RCS_AGENT_SENDER_ID | A unique sender identifier for the RCS Agent on the Vonage platform. |
CHANNEL_MANAGER_RCS_AGENT_HOSTING_REGION | The geographic location where your RCS business messaging service will be hosted and operated. |
CHANNEL_MANAGER_RCS_AGENT_PURPOSE | Specifies the intended use of the RCS Agent. |
CHANNEL_MANAGER_RCS_AGENT_BILLING_CATEGORY | Specifies the pricing model applied to messages sent via this RCS Agent. |
CHANNEL_MANAGER_RCS_BRAND_ID | The ID of the RCS brand. |
CHANNEL_MANAGER_RCS_AGENT_TAGLINE | A short phrase that represents the RCS Agent. |
CHANNEL_MANAGER_RCS_AGENT_BRAND_COLOR | The hexadecimal color code for the primary color used in UI elements. |
CHANNEL_MANAGER_RCS_AGENT_PHONE_NUMBER | End-user contact number in E.164 format. |
CHANNEL_MANAGER_RCS_AGENT_EMAIL_ADDRESS | The contact email address for the RCS Agent. |
CHANNEL_MANAGER_RCS_AGENT_WEBSITE_ADDRESS | The website address for the RCS Agent. |
Prerequisites
If you do not have an application you can create one. Make sure you also configure your webhooks.
Run your code
Save this file to your machine and run it: