Channel Manager API

The Channel Manager API provides a way of managing configuration and data related to various messaging channels in the Vonage Messages API.

Télécharger la spécification OpenAPI

WhatsApp WABAs

API endpoints relating to working with WhatsApp Business Accounts (WABAs)

List WhatsApp Business Accounts (WABAs)

List all WhatsApp Business Accounts (WABAs) that are associated with the Vonage account.

gethttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Demande de renseignements Paramètres

page
integer
exemple1

The page number to retrieve.

page_size
integer
exemple50

The number of WhatsApp WABAs to return per page.

order
string

The order in which to return WhatsApp WABAs.

Il doit s'agir de l'un d'entre eux :ascdesc

Réponses
Type de contenu
application/json

OK

page_size
integer
exemple50

The maximum number of WhatsApp WABAs returned per page.

page
integer
exemple1

The current page number within the set of pages.

total_pages
integer
exemple5

The total number of pages within the set of pages.

total_items
integer
exemple219

The total number of WhatsApp WABAs within the overall record set.

_embedded
object
wabas
array
waba_id
string
Exigée
exemple345688589250625

The ID of the WhatsApp Business Account.

api_key
string
Exigée
exempleabc123

The API key of the Vonage account associated with the WhatsApp Business Account.

name
string
Exigée
exempleMy Business

The name of the WhatsApp Business Account.

account_review_status
string
Exigée
exempleApproved

The review status of the WhatsApp Business Account.

Il doit s'agir de l'un d'entre eux :PendingApprovedRejected
timezone_id
string
Exigée
exemple58

The ID of the timezone of the WhatsApp Business Account.

currency
string
Exigée
exempleUSD

The currency of the WhatsApp Business Account.

solution_id
string
exemple1234567890

The ID of the solution of the WhatsApp Business Account. Applies for WABAs onboarded through a partner solution

country
string
exempleUS

The country of the WhatsApp Business Account's owning Meta Business account.

business_id
string
exemple224654643345

ID of the business manager or portfolio that contains the WhatsApp Business Account

business_name
string
exempleVonage Communication APIs & Conversational Commerce Platform

Name of the business manager or portfolio that contains the WhatsApp Business Account

status
string
DéfautACTIVE

WhatsApp Business Account status

Il doit s'agir de l'un d'entre eux :ACTIVEINELIGIBLENOT_STARTEDINELIGBLE_ON_BEHALF_OF_WABAPENDINGDELETEDMIGRATEDBANNEDRESTRICTEDRATE_LIMITEDFLAGGEDCONNECTEDDISCONNECTEDUNKNOWNUNVERIFIEDOFFLINE
whatsapp_business_manager_messaging_limit
string

Maximum number of unique WhatsApp user phone numbers that your Business Manager account can message, outside of a customer service window, within a moving 24-hour period. This limit is shared across all WhatsApp phone numbers owned by your business.

For more information on messaging limits see the Meta documentation.

Il doit s'agir de l'un d'entre eux :TIER_100KTIER_10KTIER_250TIER_2KTIER_UNLIMITEDUNTIERED
marketing_messages_onboarding_status
string

Onboarding status of the WhatsApp Business account into Marketing Messages API.

Il doit s'agir de l'un d'entre eux :INELIGIBLE_ON_BEHALF_OF_WABAINELIGIBLE_INACTIVE_OR_RESTRICTEDINELIGIBLE_COUNTRY_NOT_SUPPORTEDINELIGIBLE_USING_WHATSAPP_BUSINESS_APPELIGIBLEPENDING_VALID_PAYMENT_METHODPENDING_INTERNAL_SETUPONBOARDED
_links
object
self
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas?page=1&page_size=50&order=asc

The URL to the current page of WhatsApp WABAs.

first
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas?page=1&page_size=50&order=asc

The URL to the first page of WhatsApp WABAs.

last
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas?page=5&page_size=50&order=asc

The URL to the last page of WhatsApp WABAs.

next
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas?page=2&page_size=50&order=asc

The URL to the next page of WhatsApp WABAs.

prev
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas?page=1&page_size=50&order=asc

The URL to the previous page of WhatsApp WABAs.

Exemple Réponse

{
   "page_size": 50,
   "page": 1,
   "total_pages": 5,
   "total_items": 219,
   "_embedded": {
      "wabas": [
         {
            "waba_id": "345688589250625",
            "api_key": "abc123",
            "name": "My Business",
            "account_review_status": "Approved",
            "timezone_id": "58",
            "currency": "USD",
            "solution_id": "1234567890",
            "country": "US",
            "business_id": "224654643345",
            "business_name": "Vonage Communication APIs & Conversational Commerce Platform",
            "status": "ACTIVE",
            "whatsapp_business_manager_messaging_limit": "TIER_100K",
            "marketing_messages_onboarding_status": "INELIGIBLE_ON_BEHALF_OF_WABA"
         }
      ]
   },
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas?page=1&page_size=50&order=asc"
      },
      "first": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas?page=1&page_size=50&order=asc"
      },
      "last": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas?page=5&page_size=50&order=asc"
      },
      "next": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas?page=2&page_size=50&order=asc"
      },
      "prev": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas?page=1&page_size=50&order=asc"
      }
   }
}

Get a specific WhatsApp Business Account (WABA)

Retreive details of a specific WhatsApp Business Account (WABA).

gethttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/:waba_id

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

waba_id
string
Exigée
exemple345688589250625

The waba_id of the WhatsApp Business Account (WABA) to retrieve.

Réponses
Type de contenu
application/json

OK

waba_id
string
Exigée
exemple345688589250625

The ID of the WhatsApp Business Account.

api_key
string
Exigée
exempleabc123

The API key of the Vonage account associated with the WhatsApp Business Account.

name
string
Exigée
exempleMy Business

The name of the WhatsApp Business Account.

account_review_status
string
Exigée
exempleApproved

The review status of the WhatsApp Business Account.

Il doit s'agir de l'un d'entre eux :PendingApprovedRejected
timezone_id
string
Exigée
exemple58

The ID of the timezone of the WhatsApp Business Account.

currency
string
Exigée
exempleUSD

The currency of the WhatsApp Business Account.

solution_id
string
exemple1234567890

The ID of the solution of the WhatsApp Business Account. Applies for WABAs onboarded through a partner solution

country
string
exempleUS

The country of the WhatsApp Business Account's owning Meta Business account.

business_id
string
exemple224654643345

ID of the business manager or portfolio that contains the WhatsApp Business Account

business_name
string
exempleVonage Communication APIs & Conversational Commerce Platform

Name of the business manager or portfolio that contains the WhatsApp Business Account

status
string
DéfautACTIVE

WhatsApp Business Account status

Il doit s'agir de l'un d'entre eux :ACTIVEINELIGIBLENOT_STARTEDINELIGBLE_ON_BEHALF_OF_WABAPENDINGDELETEDMIGRATEDBANNEDRESTRICTEDRATE_LIMITEDFLAGGEDCONNECTEDDISCONNECTEDUNKNOWNUNVERIFIEDOFFLINE
whatsapp_business_manager_messaging_limit
string

Maximum number of unique WhatsApp user phone numbers that your Business Manager account can message, outside of a customer service window, within a moving 24-hour period. This limit is shared across all WhatsApp phone numbers owned by your business.

For more information on messaging limits see the Meta documentation.

Il doit s'agir de l'un d'entre eux :TIER_100KTIER_10KTIER_250TIER_2KTIER_UNLIMITEDUNTIERED
marketing_messages_onboarding_status
string

Onboarding status of the WhatsApp Business account into Marketing Messages API.

Il doit s'agir de l'un d'entre eux :INELIGIBLE_ON_BEHALF_OF_WABAINELIGIBLE_INACTIVE_OR_RESTRICTEDINELIGIBLE_COUNTRY_NOT_SUPPORTEDINELIGIBLE_USING_WHATSAPP_BUSINESS_APPELIGIBLEPENDING_VALID_PAYMENT_METHODPENDING_INTERNAL_SETUPONBOARDED
_links
object
self
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625

The URL to the WhatsApp Business Account (WABA) being retrieved.

numbers
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers

The URL to list the phone numbers associated with the WhatsApp Business Account (WABA).

Exemple Réponse

{
   "waba_id": "345688589250625",
   "api_key": "abc123",
   "name": "My Business",
   "account_review_status": "Approved",
   "timezone_id": "58",
   "currency": "USD",
   "solution_id": "1234567890",
   "country": "US",
   "business_id": "224654643345",
   "business_name": "Vonage Communication APIs & Conversational Commerce Platform",
   "status": "ACTIVE",
   "whatsapp_business_manager_messaging_limit": "TIER_100K",
   "marketing_messages_onboarding_status": "INELIGIBLE_ON_BEHALF_OF_WABA",
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625"
      },
      "numbers": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers"
      }
   }
}

List Numbers for a WhatsApp Business Account (WABA)

List all Numbers associated with a WhatsApp Business Account (WABA).

gethttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/:waba_id/numbers

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

waba_id
string
Exigée
exemple345688589250625

The waba_id of the WhatsApp Business Account (WABA) with which the numbers are associated.

Demande de renseignements Paramètres

page
integer
exemple1

The page number to retrieve.

page_size
integer
exemple50

The number of WhatsApp WABAs to return per page.

order
string

The order in which to return WhatsApp WABAs.

Il doit s'agir de l'un d'entre eux :ascdesc

Réponses
Type de contenu
application/json

OK

page_size
integer
exemple50

The maximum number of WABA numbers returned per page.

page
integer
exemple1

The current page number within the set of pages.

total_pages
integer
exemple5

The total number of pages within the set of pages.

total_items
integer
exemple219

The total number of WABA numbers within the overall record set.

_embedded
object
wabas
array
phone_number
string
Exigée
exemple447451277751

The phone number associated with the WhatsApp Business Account.

number_id
string
Exigée
exemple293464193855848

The ID of the phone number associated with the WhatsApp Business Account.

waba_id
string
Exigée
exemple345688589250625

The ID of the WhatsApp Business Account.

api_key
string
Exigée
exempleabc123

The API key of the Vonage account associated with the WhatsApp Business Account.

verified_name
string
exempleMy Business

The WhatsApp display name for number

code_verification_status
string
exempleVERIFIED

Indicates the phone number's one-time password (OTP) verification status.

  • Only phone numbers with a VERIFIED status can be registered.
  • An EXPIRED status means that the phone number was previously verified but the 14 day verification period has ended. If the phone number is not registered, it will need to be verified again.
Il doit s'agir de l'un d'entre eux :NOT_VERIFIEDVERIFIEDEXPIRED
display_phone_number
string
exemple+447451277751

How the number is displayed on WhatsApp accounts.

messaging_limit_tier
string
exempleTIER_100K

The messaging limit tier of the phone number. See WhatsApp messaging limits

Il doit s'agir de l'un d'entre eux :TIER_50TIER_250TIER_1KTIER_10KTIER_100KTIER_UNLIMITED
quality_score
object

The quality score of the phone number. See WhatsApp Business phone number’s quality rating

score
string
exempleGREEN

The quality score of the phone number.

  • GREEN: High quality
  • YELLOW: Medium quality
  • RED: Low quality
Il doit s'agir de l'un d'entre eux :GREENYELLOWRED
throughput
object

The throughput level of the phone number. Indication of throughput permissible by WhatsApp e.g. STANDARD is the default 80 messages/sec

level
string
exempleSTANDARD

The throughput rate of the phone number.

_links
object
self
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers/447451277751

The URL to the current page of WhatsApp WABAs.

first
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers?page=1&page_size=50&order=asc

The URL to the first page of WhatsApp WABAs.

last
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers?page=5&page_size=50&order=asc

The URL to the last page of WhatsApp WABAs.

next
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers?page=2&page_size=50&order=asc

The URL to the next page of WhatsApp WABAs.

prev
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers?page=1&page_size=50&order=asc

The URL to the previous page of WhatsApp WABAs.

Exemple Réponse

{
   "page_size": 50,
   "page": 1,
   "total_pages": 5,
   "total_items": 219,
   "_embedded": {
      "wabas": [
         {
            "phone_number": "447451277751",
            "number_id": "293464193855848",
            "waba_id": "345688589250625",
            "api_key": "abc123",
            "verified_name": "My Business",
            "code_verification_status": "VERIFIED",
            "display_phone_number": "+447451277751",
            "messaging_limit_tier": "TIER_100K",
            "quality_score": {
               "score": "GREEN"
            },
            "throughput": {
               "level": "STANDARD"
            }
         }
      ]
   },
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers/447451277751"
      },
      "first": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers?page=1&page_size=50&order=asc"
      },
      "last": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers?page=5&page_size=50&order=asc"
      },
      "next": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers?page=2&page_size=50&order=asc"
      },
      "prev": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers?page=1&page_size=50&order=asc"
      }
   }
}

Get a specific WhatsApp Business Account (WABA) Number

Retreive details of a specific Number associated with a WhatsApp Business Account (WABA).

gethttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/:waba_id/numbers/:whatsapp_number

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

waba_id
string
Exigée
exemple345688589250625

The waba_id of the WhatsApp Business Account (WABA) to retrieve.

whatsapp_number
string
Exigée
exemple447451277751

The whatsapp_number for which to retrieve the details.

Réponses
Type de contenu
application/json

OK

phone_number
string
Exigée
exemple447451277751

The phone number associated with the WhatsApp Business Account.

number_id
string
Exigée
exemple293464193855848

The ID of the phone number associated with the WhatsApp Business Account.

waba_id
string
Exigée
exemple345688589250625

The ID of the WhatsApp Business Account.

api_key
string
Exigée
exempleabc123

The API key of the Vonage account associated with the WhatsApp Business Account.

verified_name
string
exempleMy Business

The WhatsApp display name for number

code_verification_status
string
exempleVERIFIED

Indicates the phone number's one-time password (OTP) verification status.

  • Only phone numbers with a VERIFIED status can be registered.
  • An EXPIRED status means that the phone number was previously verified but the 14 day verification period has ended. If the phone number is not registered, it will need to be verified again.
Il doit s'agir de l'un d'entre eux :NOT_VERIFIEDVERIFIEDEXPIRED
display_phone_number
string
exemple+447451277751

How the number is displayed on WhatsApp accounts.

messaging_limit_tier
string
exempleTIER_100K

The messaging limit tier of the phone number. See WhatsApp messaging limits

Il doit s'agir de l'un d'entre eux :TIER_50TIER_250TIER_1KTIER_10KTIER_100KTIER_UNLIMITED
quality_score
object

The quality score of the phone number. See WhatsApp Business phone number’s quality rating

score
string
exempleGREEN

The quality score of the phone number.

  • GREEN: High quality
  • YELLOW: Medium quality
  • RED: Low quality
Il doit s'agir de l'un d'entre eux :GREENYELLOWRED
throughput
object

The throughput level of the phone number. Indication of throughput permissible by WhatsApp e.g. STANDARD is the default 80 messages/sec

level
string
exempleSTANDARD

The throughput rate of the phone number.

_links
object
self
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers/447451277751

The URL to the WhatsApp Business Account (WABA) Number being retrieved.

Exemple Réponse

{
   "phone_number": "447451277751",
   "number_id": "293464193855848",
   "waba_id": "345688589250625",
   "api_key": "abc123",
   "verified_name": "My Business",
   "code_verification_status": "VERIFIED",
   "display_phone_number": "+447451277751",
   "messaging_limit_tier": "TIER_100K",
   "quality_score": {
      "score": "GREEN"
   },
   "throughput": {
      "level": "STANDARD"
   },
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers/447451277751"
      }
   }
}

Get the profile for a specific WhatsApp Business Account (WABA) Number

Retreive details of the profile for a specific Number associated with a WhatsApp Business Account (WABA).

gethttps://api.nexmo.com/v1/channel-manager/whatsapp/numbers/:whatsapp_number/profile

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

waba_id
string
Exigée
exemple345688589250625

The waba_id of the WhatsApp Business Account (WABA) with which the number is associated.

whatsapp_number
string
Exigée
exemple447451277751

The whatsapp_number for which to retrieve the profile details.

Réponses
Type de contenu
application/json

OK

about
string
exempleAbout my business

Information about the profile

address
string
exemple123 Main Street, Anytown, USA

The address of the profile

description
string
exempleDescription of my business

The description of the profile

email
string
exemplebob@example.com

The email address of the profile

profile_picture_url
string(uri)
exemplehttps://example.com/profile.png

URL of picture for the profile. Profile picture must be a square JPG or PNG, with min dimensions of 192px x 192px, and max dimensions of 640 px x 640 px, and a max file size of 800 kb. If the image is larger, it will get automatically centre-cropped to fit these dimensions

websites
array

URLs of websites for the profile

vertical
string
exempleOTHER

The Industry or Business Category of the WhatsApp Profile

Il doit s'agir de l'un d'entre eux :APPARELAUTOBEAUTYEDUENTERTAINEVENT_PLANFINANCEGOVTGROCERYHEALTHHOTELNONPROFITOTHERPROF_SERVICESRESTAURANTRETAILTRAVEL
messaging_product
string
exemplewhatsapp

The messaging product with which the profile is associated.

Il doit s'agir de l'un d'entre eux :whatsapp
_links
object
self
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers/447451277751

The URL to the profile being retrieved.

Exemple Réponse

{
   "about": "About my business",
   "address": "123 Main Street, Anytown, USA",
   "description": "Description of my business",
   "email": "bob@example.com",
   "profile_picture_url": "https://example.com/profile.png",
   "websites": [
      "https://example.com",
      "https://example.org"
   ],
   "vertical": "OTHER",
   "messaging_product": "whatsapp",
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers/447451277751"
      }
   }
}

Update the profile for a specific WhatsApp Business Account (WABA) Number

Update details of the profile for a specific Number associated with a WhatsApp Business Account (WABA).

patchhttps://api.nexmo.com/v1/channel-manager/whatsapp/numbers/:whatsapp_number/profile

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

waba_id
string
Exigée
exemple345688589250625

The waba_id of the WhatsApp Business Account (WABA) with which the number is associated.

whatsapp_number
string
Exigée
exemple447451277751

The whatsapp_number for which to update the profile details.

Corps de la demande
Type de contenu
application/json

about
string
exempleAbout my business

Information about the profile

address
string
exemple123 Main Street, Anytown, USA

The address of the profile

description
string
exempleDescription of my business

The description of the profile

email
string
exemplebob@example.com

The email address of the profile

profile_picture_url
string(uri)
exemplehttps://example.com/profile.png

URL of picture for the profile. Profile picture must be a square JPG or PNG, with min dimensions of 192px x 192px, and max dimensions of 640 px x 640 px, and a max file size of 800 kb. If the image is larger, it will get automatically centre-cropped to fit these dimensions

websites
array

URLs of websites for the profile

vertical
string
exempleOTHER

The Industry or Business Category of the WhatsApp Profile

Il doit s'agir de l'un d'entre eux :APPARELAUTOBEAUTYEDUENTERTAINEVENT_PLANFINANCEGOVTGROCERYHEALTHHOTELNONPROFITOTHERPROF_SERVICESRESTAURANTRETAILTRAVEL

Exemple Demande

{
   "about": "About my business",
   "address": "123 Main Street, Anytown, USA",
   "description": "Description of my business",
   "email": "bob@example.com",
   "profile_picture_url": "https://example.com/profile.png",
   "websites": [
      "https://example.com",
      "https://example.org"
   ],
   "vertical": "OTHER"
}

Réponses
Type de contenu
application/json

OK

about
string
exempleAbout my business

Information about the profile

address
string
exemple123 Main Street, Anytown, USA

The address of the profile

description
string
exempleDescription of my business

The description of the profile

email
string
exemplebob@example.com

The email address of the profile

profile_picture_url
string(uri)
exemplehttps://example.com/profile.png

URL of picture for the profile. Profile picture must be a square JPG or PNG, with min dimensions of 192px x 192px, and max dimensions of 640 px x 640 px, and a max file size of 800 kb. If the image is larger, it will get automatically centre-cropped to fit these dimensions

websites
array

URLs of websites for the profile

vertical
string
exempleOTHER

The Industry or Business Category of the WhatsApp Profile

Il doit s'agir de l'un d'entre eux :APPARELAUTOBEAUTYEDUENTERTAINEVENT_PLANFINANCEGOVTGROCERYHEALTHHOTELNONPROFITOTHERPROF_SERVICESRESTAURANTRETAILTRAVEL
messaging_product
string
exemplewhatsapp

The messaging product with which the profile is associated.

Il doit s'agir de l'un d'entre eux :whatsapp
_links
object
self
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers/447451277751

The URL to the profile being updated.

Exemple Réponse

{
   "about": "About my business",
   "address": "123 Main Street, Anytown, USA",
   "description": "Description of my business",
   "email": "bob@example.com",
   "profile_picture_url": "https://example.com/profile.png",
   "websites": [
      "https://example.com",
      "https://example.org"
   ],
   "vertical": "OTHER",
   "messaging_product": "whatsapp",
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/numbers/447451277751"
      }
   }
}

WhatsApp Hosted ES Flow

API endpoints relating to working with WhatsApp Hosted Embedded Sign-up Flows

Opérations disponibles

Generate Hosted ES Flow URL

Generate a URL for the start page for WhatsApp hosted embedded sign-up flow based on the supplied partner solution ID.

posthttps://api.nexmo.com/v1/channel-manager/whatsapp/tp-registration/url

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Corps de la demande
Type de contenu
application/json

solution_id
string
Exigée
exemple123456789111213

The partner solution ID.

api_key
string
exempleabc123

Sub-api-key of the end-client that the Partner wants to generate the ES flow URL for. If not provided, this defaults to Partner’s main api-key

ttl
integer
Max259200
Défaut86400
exemple300

The time-to-live for the URL in seconds.

Exemple Demande

{
   "solution_id": "123456789111213",
   "api_key": "abc123",
   "ttl": 300
}

Réponses
Type de contenu
application/json

OK

id
string
Exigée
exemple3amb0119-0196-42d1-8fb5-55a98s133546

The trace ID for the URL generation request.

url
string
Exigée
exemplehttps://tools.vonage.com/wa/partners/onboard?token=fhdhhdJhbGciOiJSUzI1NiJ9.eyJleHAiOjE3MjU5Njc1OTYsImp0aSI6ImQ1MmJhNmFjLWYxZjktNDdmNC05MTR_cFT1bVfkDhP-wgpKZibSbUoh9z-9KGD-wsmHxi0h7tTidpVhPNShfC5jmgiHtOQKXXv5NWb9OqoUraOMMpqCdNdXoN3ao-PeZX7axyYW_FQ6CeV9gDEPhAZ4urTi0uW4mCYGl3ULmA9Ps92r_wi2DJyRE_Kx2KahWtQd51yVpU6FfXgMb4odREEccDctT1Peo09wKgwBa1wsOkD7rrvkoQPqZ00VXcqOY1_LOO5tq4WJaKqtxX-U7VtDo9qyVUl8pdegZW6QWChQzGN4PkqXXLWcBlyrCtAYdhtWG8q6NM_6bARRjcGJlj0tQvE0PZ9AtafAQSPpOll5lcnUK8Ds

URL containing tokenized information and redirecting to ES flow start page.

Exemple Réponse

{
   "id": "3amb0119-0196-42d1-8fb5-55a98s133546",
   "url": "https://tools.vonage.com/wa/partners/onboard?token=fhdhhdJhbGciOiJSUzI1NiJ9.eyJleHAiOjE3MjU5Njc1OTYsImp0aSI6ImQ1MmJhNmFjLWYxZjktNDdmNC05MTR_cFT1bVfkDhP-wgpKZibSbUoh9z-9KGD-wsmHxi0h7tTidpVhPNShfC5jmgiHtOQKXXv5NWb9OqoUraOMMpqCdNdXoN3ao-PeZX7axyYW_FQ6CeV9gDEPhAZ4urTi0uW4mCYGl3ULmA9Ps92r_wi2DJyRE_Kx2KahWtQd51yVpU6FfXgMb4odREEccDctT1Peo09wKgwBa1wsOkD7rrvkoQPqZ00VXcqOY1_LOO5tq4WJaKqtxX-U7VtDo9qyVUl8pdegZW6QWChQzGN4PkqXXLWcBlyrCtAYdhtWG8q6NM_6bARRjcGJlj0tQvE0PZ9AtafAQSPpOll5lcnUK8Ds"
}

WhatsApp Analytics

API endpoints relating to analytics data for WhatsApp

Get Template Analytics

Get analytics for a specific template.

gethttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/:waba_id/template-analytics

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

waba_id
string
Exigée
exemple345688589250625

The waba_id of the WhatsApp Business Account (WABA) for which to retrieve the template analytics data.

Demande de renseignements Paramètres

template_ids
array
Min1
Max10
exemple[ "458951126288937", "458951126288942" ]

An array of the template_ids of the template(s) to retrieve analytics for.

start
string(timestamp)
exemple2024-11-01

The start date and time in ISO-8601 format for the analytics data to be retrieved from, in the format YYYY-MM-DD.

end
string(timestamp)
exemple2024-11-03

The end date and time in ISO-8601 format for the analytics data to be retrieved to, in the format YYYY-MM-DD. The maximum difference between the start and end dates is 90 days.

metric_types
array
exemple[ "SENT", "DELIVERED" ]

An array of the metric types to retrieve analytics for. Possible values are SENT, DELIVERED, READ, and CLICKED.

Valeurs disponibles :
SENT,DELIVERED,READ,CLICKED
granularity
string
exempleDAILY

The granularity of the analytics data to be retrieved.

Il doit s'agir de l'un d'entre eux :DAILY

Réponses
Type de contenu
application/json

OK

granularity
string
exempleDAILY

The granularity of the template analytics retrieved.

Il doit s'agir de l'un d'entre eux :DAILY
product_type
string
exemplecloud_api

The product type for which the template analytics were retrieved.

page_size
integer
exemple100

The maximum number of template analytics returned per page.

_embedded
object
template_analytics
array
template_id
string
Exigée
exemple458951126288942

The ID of the WhatsApp Template which the analytics data is for.

start
string(date-time)
Exigée
exemple2024-11-11T00:00:00Z

The start date and time in ISO-8601 format for the analytics data to be retrieved from.

end
string(date-time)
Exigée
exemple2024-11-11T00:00:00Z

The end date and time in ISO-8601 format for the analytics data to be retrieved to.

sent
integer
exemple100

The number of messages sent using the WhatsApp Template.

delivered
integer
exemple90

The number of messages delivered using the WhatsApp Template.

read
integer
exemple80

The number of messages read using the WhatsApp Template.

clicked
integer
exemple70

The number of messages clicked using the WhatsApp Template.

_links
object
self
object
href
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/template-analytics?template_ids=[458951126288937]&start=2024-11-10&end=2024-11-14&page_size=100&cursor=c2VsZj1udWxs

The URL to the current page of WhatsApp Template Analytics.

Exemple Réponse

{
   "granularity": "DAILY",
   "product_type": "cloud_api",
   "page_size": 100,
   "_embedded": {
      "template_analytics": [
         {
            "template_id": "458951126288942",
            "start": "2024-11-11T00:00:00Z",
            "end": "2024-11-11T00:00:00Z",
            "sent": 100,
            "delivered": 90,
            "read": 80,
            "clicked": 70
         }
      ]
   },
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/template-analytics?template_ids=[458951126288937]&start=2024-11-10&end=2024-11-14&page_size=100&cursor=c2VsZj1udWxs"
      }
   }
}

Get Messaging Analytics

Get analytics for WhatsApp messages

gethttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/:waba_id/messaging-analytics

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

waba_id
string
Exigée
exemple345688589250625

The waba_id of the WhatsApp Business Account (WABA) for which to retrieve the messaging analytics data.

Demande de renseignements Paramètres

granularity
string
exempleHALF_HOUR

The granularity of the messaging analytics data to be retrieved.

Il doit s'agir de l'un d'entre eux :HALF_HOURDAILYMONTHLY
start
string(timestamp)
exemple2024-11-01

The start date and time in ISO-8601 format for the analytics data to be retrieved from, in the format YYYY-MM-DD.

end
string(timestamp)
exemple2024-11-03

The end date and time in ISO-8601 format for the analytics data to be retrieved to, in the format YYYY-MM-DD.

product_types
array
exemple[ 0 ]

An array of the message types to retrieve analytics for. Possible values are 0 for notification messages and/or 2 for customer support messages. If not specified, analytics for all message types will be returned.

Valeurs disponibles :
0,2
phone_numbers
array
exemple[ "16505550111" ]

Phone numbers for which you would like to retrieve analytics. If not specified, analytics for all phone numbers associated with the WABA will be returned.

country_codes
array
exemple[ "US" ]

Two-letter country codes for the countries for which you would like to retrieve analytics. If not specified, analytics for all countries will be returned.

Réponses
Type de contenu
application/json

OK

id
string
exemple345688589250625

The ID of the WhatsApp Business Account (WABA) for which the messaging analytics were retrieved.

granularity
string
exempleHALF_HOUR

The granularity of the template analytics retrieved.

Il doit s'agir de l'un d'entre eux :HALF_HOURDAILYMONTHLY
phone_numbers
array

Phone numbers for which the messaging analytics were retrieved.

country_codes
array

Two-letter country codes for the countries for which the messaging analytics were retrieved.

_embedded
object
messaging_analytics
array
start
string(timestamp)
Exigée
exemple1543543200

The UNIX timestamp for the start of the data point range.

end
string(timestamp)
Exigée
exemple1543629600

The UNIX timestamp for the end of the data point range.

sent
integer
Exigée
exemple100

The number of messages sent within the data point range.

delivered
integer
Exigée
exemple90

The number of messages delivered within the data point range.

paging
object
cursors
object
before
string
exempleMAZDZD

The page before the first page in the current list

after
string
exempleMjQZD

The page after the last page in the current list

next
string(uri)
exemplehttps://api.nexmo.com/v2/channel-manager/wabas/106499765517625/messaging-analytics?after=MAZDZD

A URI to ge the next paginated page.

previous
string(uri)
exemplehttps://api.nexmo.com/v2/channel-manager/wabas/106499765517625/messaging-analytics?before=MjQZD

A URI to ge the previous paginated page.

Exemple Réponse

{
   "id": "345688589250625",
   "granularity": "HALF_HOUR",
   "phone_numbers": [
      "16505550111"
   ],
   "country_codes": [
      "US"
   ],
   "_embedded": {
      "messaging_analytics": [
         {
            "start": "1543543200",
            "end": "1543629600",
            "sent": 100,
            "delivered": 90
         }
      ]
   },
   "paging": {
      "cursors": {
         "before": "MAZDZD",
         "after": "MjQZD"
      },
      "next": "https://api.nexmo.com/v2/channel-manager/wabas/106499765517625/messaging-analytics?after=MAZDZD",
      "previous": "https://api.nexmo.com/v2/channel-manager/wabas/106499765517625/messaging-analytics?before=MjQZD"
   }
}

Get Pricing Analytics

Get analytics for message pricing.

gethttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/:waba_id/pricing-analytics

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

waba_id
string
Exigée
exemple345688589250625

The waba_id of the WhatsApp Business Account (WABA) for which to retrieve the pricing analytics data.

Demande de renseignements Paramètres

start
string(timestamp)
exemple2024-11-01

The start date and time in ISO-8601 format for the analytics data to be retrieved from, in the format YYYY-MM-DD.

end
string(timestamp)
exemple2024-11-03

The end date and time in ISO-8601 format for the analytics data to be retrieved to, in the format YYYY-MM-DD.

granularity
string
exempleDAILY

The granularity of the analytics data to be retrieved.

Il doit s'agir de l'un d'entre eux :HALF_HOURDAILYMONTHLY
phone_numbers
array
exemple[ "16505550111" ]

Phone numbers for which you would like to retrieve analytics. If not specified, analytics for all phone numbers associated with the WABA will be returned.

country_codes
array
exemple[ "US" ]

Two-letter country codes for the countries for which you would like to retrieve analytics. If not specified, analytics for all countries will be returned.

dimensions
array
exemple[ "PRICING_CATEGORY" ]

List of breakdowns you would like to apply to your metrics. If empty, all results returned without any breakdowns.

Valeurs disponibles :
PRICING_CATEGORY,PRICING_TYPE,COUNTRY,PHONE,TIER
tier
array
exemple[ "0:100000" ]

The tier property value represents a concatenation of the lower and upper bounds for the tier specific to the market–category pair (country and pricing_category).

Réponses
Type de contenu
application/json

OK

granularity
string
exempleDAILY

The granularity of the pricing analytics retrieved.

Il doit s'agir de l'un d'entre eux :DAILY
product_type
string
exemplecloud_api

The product type for which the pricing analytics were retrieved.

_embedded
object
pricing_analytics
array
start
string(date-time)
exemple2024-11-11T00:00:00Z

The start date and time in ISO-8601 format for the analytics data to be retrieved from.

end
string(date-time)
exemple2024-11-11T00:00:00Z

The end date and time in ISO-8601 format for the analytics data to be retrieved to.

volume
integer
exemple100

The number of messages sent.

phone_number
string
exemple14155552671

The phone number associated with the Messaging Analytics.

country
string
exempleUS

The country for the phone number associated with the Messaging Analytics.

tier
string
exemple75000:150000

The pricing tier for the messages related to the Messaging Analytics.

pricing_type
string
exempleREGULAR

The pricing type for the messages related to the Messaging Analytics.

pricing_category
string
exempleAUTHENTICATION

The pricing category for the messages related to the Messaging Analytics.

paging
object
cursors
object
before
string
exempleMjQZD

The cursor the previous page of WhatsApp Pricing Analytics.

after
string
exempleMAZDZD

The cursor the next page of WhatsApp Pricing Analytics.

previous
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/pricing-analytics?before=MjQZD

The URL to the previous page of WhatsApp Pricing Analytics.

next
string
exemplehttps://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/pricing-analytics?before=MAZDZD

The URL to the next page of WhatsApp Pricing Analytics.

Exemple Réponse

{
   "granularity": "DAILY",
   "product_type": "cloud_api",
   "_embedded": {
      "pricing_analytics": [
         {
            "start": "2024-11-11T00:00:00Z",
            "end": "2024-11-11T00:00:00Z",
            "volume": 100,
            "phone_number": "14155552671",
            "country": "US",
            "tier": "75000:150000",
            "pricing_type": "REGULAR",
            "pricing_category": "AUTHENTICATION"
         }
      ]
   },
   "paging": {
      "cursors": {
         "before": "MjQZD",
         "after": "MAZDZD"
      },
      "previous": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/pricing-analytics?before=MjQZD",
      "next": "https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/345688589250625/pricing-analytics?before=MAZDZD"
   }
}

WhatsApp Notification Subscriptions

API endpoints relating to subscriptions for WhatsApp Notification

List Notification Subscriptions

Get a list of all notification subscriptions for the main API key

gethttps://api.nexmo.com/v2/whatsapp-manager/subscriptions

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Réponses
Type de contenu
application/json

OK

array
N'importe lequel
created_at
timestamp
Exigée
exemple2024-11-01T12:00:00Z

The date and time when the subscription was created, in ISO-8601 format.

id
string
Exigée
exemple9fa85698-c92a-4786-be0e-b5a489425120

The unique ID of the subscription

type
string
Exigée
exempleslack

The subscription type

Il doit s'agir de l'un d'entre eux :slack
label
string
exempleMy WhatsApp Subscription

An optional label for the subscription

whatsapp_subscribe_types
string
exempleaccount_alerts,account_update

A comma-separated list of the WhatsApp notification types that the subscription is for. Supports all the notification types available for WhatsApp accounts listed here. When a new subscription is created, if this parameter is not specified then the subscription will include all of the subscription types.

vonage_subscribe_types
string
exemplevonage_number_onboarded

A comma-separated list of the Vonage notification types that the subscription is for.

Il doit s'agir de l'un d'entre eux :vonage_number_onboarded
slack
object
Exigée

The Slack hook configuration for the subscription, where the subscription type is slack.

url
string(uri)
Exigée
exemplehttps://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

The URL of the Slack hook to which the WhatsApp notifications will be sent

Exemple Réponse

[
   {
      "id": "9fa85698-c92a-4786-be0e-b5a489425120",
      "type": "slack",
      "label": "My WhatsApp Slack Subscription",
      "whatsapp_subscribe_types": "account_alerts,account_update",
      "vonage_subscribe_types": "vonage_number_onboarded",
      "created_at": "2024-11-01T12:00:00Z",
      "slack": {
         "url": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
      }
   },
   {
      "id": "8bceefe2-ebc8-4aa6-a4a3-73d837b3d416",
      "type": "webhook",
      "label": "My WhatsApp Webhook Subscription",
      "whatsapp_subscribe_types": "account_alerts,account_update",
      "vonage_subscribe_types": "vonage_number_onboarded",
      "created_at": "2024-11-01T12:00:00Z",
      "webhook": {
         "url": "https://example.com/webhook"
      }
   }
]

Create a Notification Subscription

Create a new notification subscription for the main API key

posthttps://api.nexmo.com/v2/whatsapp-manager/subscriptions

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Corps de la demande
Type de contenu
application/json

L'un des
type
string
Exigée
exempleslack

The type of subscription to create

Il doit s'agir de l'un d'entre eux :slack
label
string
exempleMy WhatsApp Subscription

An optional label for the subscription

whatsapp_subscribe_types
string
exempleaccount_alerts,account_update

A comma-separated list of the WhatsApp notification types that the subscription is for. Supports all the notification types available for WhatsApp accounts listed here. When a new subscription is created, if this parameter is not specified then the subscription will include all of the subscription types.

vonage_subscribe_types
string
exemplevonage_number_onboarded

A comma-separated list of the Vonage notification types that the subscription is for.

Il doit s'agir de l'un d'entre eux :vonage_number_onboarded
slack
object
Exigée

The Slack hook configuration for the subscription, where the subscription type is slack.

url
string(uri)
Exigée
exemplehttps://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

The URL of the Slack hook to which the WhatsApp notifications will be sent

Exemple Demande

{
   "label": "My WhatsApp Subscription",
   "whatsapp_subscribe_types": "account_alerts,account_update",
   "vonage_subscribe_types": "vonage_number_onboarded",
   "slack": {
      "url": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
   },
   "type": "slack"
}

Réponses
Type de contenu
application/json

OK

L'un des
created_at
timestamp
Exigée
exemple2024-11-01T12:00:00Z

The date and time when the subscription was created, in ISO-8601 format.

id
string
Exigée
exemple9fa85698-c92a-4786-be0e-b5a489425120

The unique ID of the subscription

type
string
Exigée
exempleslack

The subscription type

Il doit s'agir de l'un d'entre eux :slack
label
string
exempleMy WhatsApp Subscription

An optional label for the subscription

whatsapp_subscribe_types
string
exempleaccount_alerts,account_update

A comma-separated list of the WhatsApp notification types that the subscription is for. Supports all the notification types available for WhatsApp accounts listed here. When a new subscription is created, if this parameter is not specified then the subscription will include all of the subscription types.

vonage_subscribe_types
string
exemplevonage_number_onboarded

A comma-separated list of the Vonage notification types that the subscription is for.

Il doit s'agir de l'un d'entre eux :vonage_number_onboarded
slack
object
Exigée

The Slack hook configuration for the subscription, where the subscription type is slack.

url
string(uri)
Exigée
exemplehttps://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

The URL of the Slack hook to which the WhatsApp notifications will be sent

Exemple Réponse

{
   "label": "My WhatsApp Subscription",
   "whatsapp_subscribe_types": "account_alerts,account_update",
   "vonage_subscribe_types": "vonage_number_onboarded",
   "slack": {
      "url": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
   },
   "created_at": "2024-11-01T12:00:00Z",
   "id": "9fa85698-c92a-4786-be0e-b5a489425120",
   "type": "slack"
}

Delete a Notification Subscription

Delete a notification subscription for the main API key

deletehttps://api.nexmo.com/v2/whatsapp-manager/subscriptions/:subscription_id

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

subscription_id
string
Exigée
exemple9fa85698-c92a-4786-be0e-b5a489425120

The ID of the notification subscription to delete.

Réponses

No Content

RCS Capability Checks

API endpoints relating to checking RCS capabilities of a device or devices

RCS Capabilities Device Check

Get RCS Capabilities for a Specific Device. Please note that this operation is deprecated, please refer to this one instead.

gethttps://api.nexmo.com/v1/channel-manager/rcs/agents/:sender_id/google/phones/:phone_number/capabilities

Authentification

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>

Trajectoire Paramètres

sender_id
string
Exigée
exempleVonageAgent

The Sender ID of your RCS Agent.

phone_number
string
Exigée
exemple447900000000

The phone number of the device to check.

Réponses
Type de contenu
application/json

OK

features
array

A list of RCS capabilities for the device being checked.

Valeurs disponibles :
RICHCARD,RICHCARD_CAROUSEL,CREATE_CALENDAR_EVENT,DIAL_PHONE_NUMBER,OPEN_URL,SHARE_LOCATION,VIEW_LOCATION

Exemple Réponse

{
   "features": [
      "RICHCARD",
      "RICHCARD_CAROUSEL",
      "CREATE_CALENDAR_EVENT",
      "DIAL_PHONE_NUMBER",
      "OPEN_URL",
      "SHARE_LOCATION",
      "VIEW_LOCATION"
   ]
}

RCS Capabilities Device Check

Get RCS Capabilities for a Specific Device

posthttps://api.nexmo.com/v1/channel-manager/rcs/agents/:sender_id/devices/capabilities

Authentification

Cette API prend en charge l'authentification JWT et l'authentification de base. L'authentification de base est plus facile à mettre en œuvre, mais elle ne prend pas en charge les fonctions avancées telles que les listes de contrôle d'accès.

Vous pouvez utiliser l'authentification JWT ou l'authentification de base, mais pas les deux en même temps.

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

sender_id
string
Exigée
exempleVonageAgent

The Sender ID of your RCS Agent.

Corps de la demande
Type de contenu
application/json

msisdn
string
Exigée
exemple+447900000000

The phone number of the device to check in E.164 format.

country
string
Exigée
exempleGB

The country code of the device to check.

Exemple Demande

{
   "msisdn": "+447900000000",
   "country": "GB"
}

Réponses
Type de contenu
application/json

OK

rcs_supported
boolean
exempletrue

Indicates if RCS is supported on the device.

features
array

A list of RCS capabilities for the device being checked.

Valeurs disponibles :
RICHCARD_STANDALONE,RICHCARD_CAROUSEL,ACTION_CREATE_CALENDAR_EVENT,ACTION_DIAL,ACTION_OPEN_URL,ACTION_SHARE_LOCATION,ACTION_VIEW_LOCATION

Exemple Réponse

{
   "rcs_supported": true,
   "features": [
      "RICHCARD_STANDALONE",
      "ACTION_CREATE_CALENDAR_EVENT",
      "ACTION_DIAL",
      "ACTION_OPEN_URL",
      "ACTION_SHARE_LOCATION",
      "ACTION_VIEW_LOCATION",
      "RICHCARD_CAROUSEL"
   ]
}

RCS Capabilities Bulk Check

Perform an RCS Capability Check for Multiple Devices. See the RCS Capability Checks documentation for more information.

posthttps://api.nexmo.com/v1/channel-manager/rcs/agents/:sender_id/google/:operation

Authentification

CléDescriptionExemple
Authorization

Votre jeton web JSON.
En savoir plus sur les JWT

Headers

Bearer <JWT>

Trajectoire Paramètres

sender_id
string
Exigée
exempleVonageAgent

The Sender ID of your RCS Agent.

operation
string
Exigée

The operation to perform.

Il doit s'agir de l'un d'entre eux :users:batchGet

Corps de la demande
Type de contenu
application/json

users
array

An array of phone numbers to check.

Exemple Demande

{
   "users": [
      "447900000000",
      "447900000001"
   ]
}

Réponses
Type de contenu
application/json

OK

L'un des
reachableUsers
array

A list of specific numbers for devices that reachable for RCS messaging.

Exemple Réponse»Response where 500 numbers or less submitted.

{
   "reachableUsers": [
      "447900000000",
      "447900000001"
   ]
}

RCS Opt-out Management

API endpoints relating to managing RCS opt-outs

Get Opt-out Information

Retrieve RCS Opt-out information. Note: this feature is only available to accounts with RCS enabled; please contact your Vonage representative for more information.

gethttps://api.nexmo.com/v1/channel-manager/rcs/opt-out/:sender_id

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

sender_id
string
Exigée
exempleVonageId123

The sender_id of the RCS Agent for which Opt-out information is being requested.

Réponses
Type de contenu
application/json

OK

actions
array
Exigée

A list of actions available for opt-out.

keywords
array
Exigée

A list of keywords that trigger the action.

auto-reply
string
Exigée
exempleYou have opted out.

The auto-reply message sent when the action is triggered.

action
string
Exigée
exempleSTOP

The type of action.

Il doit s'agir de l'un d'entre eux :STOPSTARTCUSTOM
enabled
boolean
Exigée
exempletrue

Indicates if opt-out is enabled for the user.

Exemple Réponse

{
   "actions": [
      {
         "keywords": [
            "STOP"
         ],
         "auto-reply": "You have opted out.",
         "action": "STOP"
      }
   ],
   "enabled": true
}

Update Opt-out Information

Update RCS Opt-out information. Note: this feature is only available to accounts with RCS enabled; please contact your Vonage representative for more information.

posthttps://api.nexmo.com/v1/channel-manager/rcs/opt-out/:sender_id

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

sender_id
string
Exigée
exempleVonageId123

The sender_id of the RCS Agent for which Opt-out information is being updated.

Corps de la demande
Type de contenu
application/json

actions
array
Exigée

A list of actions available for opt-out.

keywords
array
Exigée

A list of keywords that trigger the action.

auto-reply
string
Exigée
exempleYou have opted out.

The auto-reply message sent when the action is triggered.

action
string
Exigée
exempleSTOP

The type of action.

Il doit s'agir de l'un d'entre eux :STOPSTARTCUSTOM

Exemple Demande

{
   "actions": [
      {
         "keywords": [
            "STOP"
         ],
         "auto-reply": "You have opted out.",
         "action": "STOP"
      }
   ]
}

Réponses
Type de contenu
application/json

OK

actions
array
Exigée

A list of actions available for opt-out.

keywords
array
Exigée

A list of keywords that trigger the action.

auto-reply
string
Exigée
exempleYou have opted out.

The auto-reply message sent when the action is triggered.

action
string
Exigée
exempleSTOP

The type of action.

Il doit s'agir de l'un d'entre eux :STOPSTARTCUSTOM
enabled
boolean
Exigée
exempletrue

Indicates if opt-out is enabled for the user.

Exemple Réponse

{
   "actions": [
      {
         "keywords": [
            "STOP"
         ],
         "auto-reply": "You have opted out.",
         "action": "STOP"
      }
   ],
   "enabled": true
}

RCS Brand Management

API endpoints relating to managing RCS Brands

List Brands

Retrieve a list of RCS Brands.

gethttps://api.nexmo.com/v1/channel-manager/rcs/brands

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Réponses
Type de contenu
application/json

OK

array
brands
array
Exigée
id
string(uuid)
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The unique ID of the RCS Brand.

display_name
string
Exigée
exempleMy RCS Brand

The name of the RCS Brand.

Exemple Réponse

[
   {
      "brands": [
         {
            "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
            "display_name": "My RCS Brand"
         }
      ]
   }
]

Create Brand

Create a new RCS Brand.

posthttps://api.nexmo.com/v1/channel-manager/rcs/brands

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Corps de la demande
Type de contenu
application/json

display_name
string
Exigée
Max100
exempleMy RCS Brand

The name of the RCS Brand.

Exemple Demande

{
   "display_name": "My RCS Brand"
}

Réponses
Type de contenu
application/json

Created

id
string(uuid)
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The unique ID of the RCS Brand.

display_name
string
Exigée
exempleMy RCS Brand

The name of the RCS Brand.

Exemple Réponse

{
   "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
   "display_name": "My RCS Brand"
}

Update Brand

Update an existing RCS Brand.

patchhttps://api.nexmo.com/v1/channel-manager/rcs/brands/:brand_id

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

brand_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The brand_id of the RCS Brand to update.

Corps de la demande
Type de contenu
application/json

display_name
string
Exigée
Max100
exempleMy Updated RCS Brand

The name of the RCS Brand.

Exemple Demande

{
   "display_name": "My Updated RCS Brand"
}

Réponses
Type de contenu
application/json

OK

id
string(uuid)
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The unique ID of the RCS Brand.

display_name
string
Exigée
exempleMy RCS Brand

The name of the RCS Brand.

Exemple Réponse

{
   "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
   "display_name": "My RCS Brand"
}

Delete Brand

Delete an existing RCS Brand.

deletehttps://api.nexmo.com/v1/channel-manager/rcs/brands/:brand_id

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

brand_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The brand_id of the RCS Brand to delete.

Réponses

No Content

RCS Agent Management

API endpoints relating to managing RCS Agents

List Agents

Retrieve a list of RCS Agents.

gethttps://api.nexmo.com/v1/channel-manager/rcs/agents

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Demande de renseignements Paramètres

brand_id
string
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of an RCS Brand to filter by.

state
string
exempleDRAFT

The state of the RCS Agent to filter by.

Il doit s'agir de l'un d'entre eux :DRAFTCREATEDVERIFIEDLAUNCHEDREJECTEDUNLAUNCHED
agent_purpose
string
exempleMULTI_USE

The agent_purpose of the RCS Agent to filter by.

Il doit s'agir de l'un d'entre eux :OTPMULTI_USEPROMOTIONALTRANSACTIONAL
billing_category
string
exempleSINGLE_MESSAGE

The billing_category of the RCS Agent to filter by.

Il doit s'agir de l'un d'entre eux :SINGLE_MESSAGECONVERSATIONALBASIC_MESSAGE
hosting_region
string
exempleNORTH_AMERICA

The hosting_region of the RCS Agent to filter by.

Il doit s'agir de l'un d'entre eux :NORTH_AMERICAEUROPEASIA_PACIFIC
page_size
integer
exemple10

The number of results to return per page. Default is 20.

order
string
exempleasc

The order in which to return the results.

Il doit s'agir de l'un d'entre eux :ascdesc
page
integer
exemple2

The page number to return. Default is 1.

Réponses
Type de contenu
application/json

OK

_embedded
object
Exigée
agents
array
Exigée
id
string(uuid)
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The unique ID of the created RCS Agent.

state
string
exempleDRAFT

The current state of the created RCS Agent.

basic_info
object
Exigée
brand_id
string
Exigée
exemple0198095f-f18a-7f75-aa0a-59c3dfd68802

The id of the RCS Brand with which to associate this agent.

display_name
string
Exigée
exempleExample Co

The unique display name of the RCS Agent.

sender_id
string
Exigée
exempleExampleCo-RCSAgent-1

A unique sender identifier on the Vonage platform. This cannot be blank, include whitespaces, or be changed after creation. The sender ID is used as the from value when sending RCS messages via the Messages API.

hosting_region
string
Exigée
exempleNORTH_AMERICA

The geographic location where your RCS business messaging service will be hosted and operated. This can affect data residency and compliance requirements.

Il doit s'agir de l'un d'entre eux :NORTH_AMERICAEUROPEASIA_PACIFIC
agent_purpose
string
Exigée
exempleTRANSACTIONAL

Specifies the intended use of the RCS Agent. This cannot be changed after creation.

Il doit s'agir de l'un d'entre eux :PROMOTIONALTRANSACTIONALOTPMULTI_USE
billing_category
string
Exigée
exempleBASIC_MESSAGE

Specifies the pricing model applied to messages sent via this RCS Agent.

Il doit s'agir de l'un d'entre eux :BASIC_MESSAGESINGLE_MESSAGECONVERSATIONAL
notes
string
exempleThis agent is used for transactional messages only.

Additional notes or comments about the RCS Agent.

visual_design
object
brand_color
string
Exigée
exemple#8860CD

The hexadecimal color code for the primary color used in UI elements. The specified color must meet WCAG 2.1 contrast ratio of 4.5:1 for legibility.

email
object
Exigée
address
string
Exigée
exemplesupport@example.com

The contact email address for the RCS Agent.

label
string
Max25
exempleCustomer Support

A label for the email address.

phone
object
Exigée
number
string
Exigée
exemple+1234567890

End-user contact number in E.164 format.

label
string
Max25
exempleCustomer Support

A label for the phone number.

tagline
string
Exigée
Max100
exempleYour trusted partner in messaging.

A short phrase that represents the RCS Agent.

website
array
Exigée
address
string(uri)
Exigée
label
string
Max25
exempleCompany Website

A label for the website URL.

privacy_policy
string(uri)
exemplehttps://www.example.com/privacy-policy

The publicly accessible URL of the privacy policy for the RCS Agent.

terms_of_service
string(uri)
exemplehttps://www.example.com/terms-of-service

The publicly accessible URL of the terms of service for the RCS Agent.

application_settings
object
application_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the Vonage application with which to associate this agent.

representative
object
first_name
string
Exigée
Max200
exempleJohn

The first name of the representative for the RCS Agent.

last_name
string
Exigée
Max200
exempleDoe

The last name of the representative for the RCS Agent.

email
string(email)
Exigée
exemplejohn.doe@example.com

The email address of the representative.

brand_website
string(uri)
exemplehttps://www.example.com

The website URL of the brand represented by the RCS Agent.

carrier_requirements
object
agent_preview
object
Exigée
agent_access_instructions
string
Exigée
exempleProvide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. If you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. Test the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.

Agent access instructions specify how reviewers and testers can access and interact with your RBM agent during the review and testing phases before launch. This property provides guidance on methods for triggering agent functionality and testing various features.

urls
array
media_type
string
Exigée
exempleimage

The media type of the agent preview.

Il doit s'agir de l'un d'entre eux :imagevideo
url
string(uri)
exemplehttps://www.example.com/rcs-agent-preview.jpg

The URL to the agent preview.

points_of_contact
array
Exigée

A list of points of contact for the RCS Agent.

first_name
string
Exigée
Max200
exempleJane

The first name of the point of contact.

last_name
string
Exigée
Max200
exempleSmith

The last name of the point of contact.

email
string(email)
Exigée
exemplejane.smith@example.com

The email address of the point of contact.

job_title
string
Exigée
Max200
exempleTechnical Support

The job title of the point of contact.

traffic_estimates
object
Exigée

Traffic estimates for the RCS Agent.

average_global_traffic
string
Exigée
exempleTHOUSAND

Estimated global traffic.

Il doit s'agir de l'un d'entre eux :THOUSANDTEN_THOUSANDFIFTY_THOUSANDHUNDRED_THOUSANDMILLIONMILLION_AND_MORE
average_message_rate_per_user
string
Exigée
exempleONCE_PER_MONTH

Estimated message rate per user.

Il doit s'agir de l'un d'entre eux :ONCE_PER_MONTH2_4_TIMES_PER_MONTHONCE_PER_WEEK2_6_TIMES_PER_WEEKDAILYMULTIPLE_TIMES_PER_DAY
users_targeted
string
Exigée
exempleHUNDRED

Estimated number of users targeted.

Il doit s'agir de l'un d'entre eux :HUNDREDTHOUSANDTEN_THOUSANDHUNDRED_THOUSANDHALF_MILLIONMILLIONMILLION_AND_MORE
user_experience
object
Exigée
interactions_description
string
Exigée
Max10000
exempleThis agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. Secondary interactions may include promotional offers for existing customers and appointment scheduling assistance.

This field describes the primary and secondary types of interactions your RBM agent will have with users. It outlines the conversational patterns, message types, and engagement scenarios your agent supports.

optin_description
string
Exigée
Max10000
exempleThis is a test environment. Customers consent to receive messages directly via request, phone, or email. Users can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. Opt-in confirmation includes details about message frequency and content type.

Details how users will provide consent to receive messages from your RBM agent. This must clearly explain the opt-in mechanism and what users can expect when they subscribe to your messaging service.

optout_description
string
Exigée
Max10000
exempleCustomers can unsubscribe from receiving messages by replying 'STOP' to any message. They can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, and can re-subscribe at any time by replying 'START'.

Explains how users can unsubscribe from receiving messages from your agent. Must describe the process for users to stop receiving communications and how your system handles these requests.

trigger_description
string
Exigée
Max10000
exempleThis account is used exclusively for sending test messages to introduce RCS capabilities to customers. Triggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, and weekly promotional campaigns for opted-in users.

Defines the external events or conditions that will cause your RBM agent to initiate conversations with users. These triggers determine when and why your agent sends the first message to users.

created_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent was created.

updated_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent was last updated.

test_devices
array
id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the test device.

phone
string
Exigée
exemple+1234567890

The phone number of the test device in E.164 format.

status
string
Exigée
exempleACCEPTED

The current status of the test device.

created_at
string(date-time)
Exigée
exemple2023-01-01T12:00:00Z

The date and time when the test device was created.

carriers
object
id
string
Exigée
exempleatt-us

The id of the carrier.

launch_state
string
exempleLAUNCH_STATE_UNLAUNCHED

The launch state of the carrier.

Il doit s'agir de l'un d'entre eux :LAUNCH_STATE_UNSPECIFIEDLAUNCH_STATE_UNLAUNCHEDLAUNCH_STATE_PENDINGLAUNCH_STATE_LAUNCHEDLAUNCH_STATE_REJECTEDLAUNCH_STATE_SUSPENDEDLAUNCH_STATE_PENDING_UNLAUNCHLAUNCH_STATE_INVALID_IN_GMB
verification_details
object
status
string
exempleVERIFICATION_STATE_UNVERIFIED

The verification status of the RCS Agent.

launch_submitted_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent launch was submitted.

_links
object
Exigée
self
object

The link for the current page.

href
string
exemplehttps://api.nexmo.com/v1/channel-manager/rcs/agents?page=1
first
object

The link for the next page.

href
string
exemplehttps://api.nexmo.com/v1/channel-manager/rcs/agents?page=1
last
object

The link for the previous page.

href
string
exemplehttps://api.nexmo.com/v1/channel-manager/rcs/agents?page=10
page
integer
Exigée
exemple1

The current page number.

page_size
integer
Exigée
exemple10

The number of items per page.

total_items
integer
Exigée
exemple100

The total number of items.

total_pages
integer
Exigée
exemple10

The total number of pages.

Exemple Réponse

{
   "_embedded": {
      "agents": [
         {
            "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
            "state": "DRAFT",
            "basic_info": {
               "brand_id": "0198095f-f18a-7f75-aa0a-59c3dfd68802",
               "display_name": "Example Co",
               "sender_id": "ExampleCo-RCSAgent-1",
               "hosting_region": "NORTH_AMERICA",
               "agent_purpose": "TRANSACTIONAL",
               "billing_category": "BASIC_MESSAGE",
               "notes": "This agent is used for transactional messages only."
            },
            "visual_design": {
               "brand_color": "#8860CD",
               "email": {
                  "address": "support@example.com",
                  "label": "Customer Support"
               },
               "phone": {
                  "number": "+1234567890",
                  "label": "Customer Support"
               },
               "tagline": "Your trusted partner in messaging.",
               "website": {
                  "address": "https://www.example.com"
               },
               "privacy_policy": "https://www.example.com/privacy-policy",
               "terms_of_service": "https://www.example.com/terms-of-service"
            },
            "application_settings": {
               "application_id": "78d335fa-323d-0114-9c3d-d6f0d48968cf"
            },
            "representative": {
               "first_name": "John",
               "last_name": "Doe",
               "email": "john.doe@example.com",
               "brand_website": "https://www.example.com"
            },
            "carrier_requirements": {
               "agent_preview": {
                  "agent_access_instructions": "Provide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. \nIf you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. \nTest the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.\n",
                  "urls": [
                     {
                        "media_type": "image",
                        "url": "https://www.example.com/rcs-agent-preview.jpg"
                     }
                  ]
               },
               "points_of_contact": [
                  {
                     "first_name": "Jane",
                     "last_name": "Smith",
                     "email": "jane.smith@example.com",
                     "job_title": "Technical Support"
                  }
               ],
               "traffic_estimates": {
                  "average_global_traffic": "THOUSAND",
                  "average_message_rate_per_user": "ONCE_PER_MONTH",
                  "users_targeted": "HUNDRED"
               },
               "user_experience": {
                  "interactions_description": "This agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. \nSecondary interactions may include promotional offers for existing customers and appointment scheduling assistance.\n",
                  "optin_description": "This is a test environment. Customers consent to receive messages directly via request, phone, or email. \nUsers can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. \nOpt-in confirmation includes details about message frequency and content type.\n",
                  "optout_description": "Customers can unsubscribe from receiving messages by replying 'STOP' to any message. \nThey can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, \nand can re-subscribe at any time by replying 'START'.\n",
                  "trigger_description": "This account is used exclusively for sending test messages to introduce RCS capabilities to customers. \nTriggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, \nand weekly promotional campaigns for opted-in users.\n"
               }
            },
            "created_at": "2023-01-01T12:00:00Z",
            "updated_at": "2023-01-01T12:00:00Z",
            "test_devices": [
               {
                  "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
                  "phone": "+1234567890",
                  "status": "ACCEPTED",
                  "created_at": "2023-01-01T12:00:00Z"
               }
            ],
            "carriers": {
               "id": "att-us",
               "launch_state": "LAUNCH_STATE_UNLAUNCHED"
            },
            "verification_details": {
               "status": "VERIFICATION_STATE_UNVERIFIED"
            },
            "launch_submitted_at": "2023-01-01T12:00:00Z"
         }
      ]
   },
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/v1/channel-manager/rcs/agents?page=1"
      },
      "first": {
         "href": "https://api.nexmo.com/v1/channel-manager/rcs/agents?page=1"
      },
      "last": {
         "href": "https://api.nexmo.com/v1/channel-manager/rcs/agents?page=10"
      }
   },
   "page": 1,
   "page_size": 10,
   "total_items": 100,
   "total_pages": 10
}

Create Agent

Create a new RCS Agent.

posthttps://api.nexmo.com/v1/channel-manager/rcs/agents

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Corps de la demande
Type de contenu
application/json

application_settings
object
Exigée
application_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the Vonage application with which to associate this agent.

basic_info
object
Exigée
brand_id
string
Exigée
exemple0198095f-f18a-7f75-aa0a-59c3dfd68802

The id of the RCS Brand with which to associate this agent.

display_name
string
Exigée
exempleExample Co

The unique display name of the RCS Agent.

sender_id
string
Exigée
exempleExampleCo-RCSAgent-1

A unique sender identifier on the Vonage platform. This cannot be blank, include whitespaces, or be changed after creation. The sender ID is used as the from value when sending RCS messages via the Messages API.

hosting_region
string
Exigée
exempleNORTH_AMERICA

The geographic location where your RCS business messaging service will be hosted and operated. This can affect data residency and compliance requirements.

Il doit s'agir de l'un d'entre eux :NORTH_AMERICAEUROPEASIA_PACIFIC
agent_purpose
string
Exigée
exempleTRANSACTIONAL

Specifies the intended use of the RCS Agent. This cannot be changed after creation.

Il doit s'agir de l'un d'entre eux :PROMOTIONALTRANSACTIONALOTPMULTI_USE
billing_category
string
Exigée
exempleBASIC_MESSAGE

Specifies the pricing model applied to messages sent via this RCS Agent.

Il doit s'agir de l'un d'entre eux :BASIC_MESSAGESINGLE_MESSAGECONVERSATIONAL
notes
string
exempleThis agent is used for transactional messages only.

Additional notes or comments about the RCS Agent.

visual_design
object
Exigée
brand_color
string
Exigée
exemple#8860CD

The hexadecimal color code for the primary color used in UI elements. The specified color must meet WCAG 2.1 contrast ratio of 4.5:1 for legibility.

email
object
Exigée
address
string
Exigée
exemplesupport@example.com

The contact email address for the RCS Agent.

label
string
Max25
exempleCustomer Support

A label for the email address.

phone
object
Exigée
number
string
Exigée
exemple+1234567890

End-user contact number in E.164 format.

label
string
Max25
exempleCustomer Support

A label for the phone number.

tagline
string
Exigée
Max100
exempleYour trusted partner in messaging.

A short phrase that represents the RCS Agent.

website
array
Exigée
address
string(uri)
Exigée
label
string
Max25
exempleCompany Website

A label for the website URL.

privacy_policy
string(uri)
exemplehttps://www.example.com/privacy-policy

The publicly accessible URL of the privacy policy for the RCS Agent.

terms_of_service
string(uri)
exemplehttps://www.example.com/terms-of-service

The publicly accessible URL of the terms of service for the RCS Agent.

representative
object
first_name
string
Exigée
Max200
exempleJohn

The first name of the representative for the RCS Agent.

last_name
string
Exigée
Max200
exempleDoe

The last name of the representative for the RCS Agent.

email
string(email)
Exigée
exemplejohn.doe@example.com

The email address of the representative.

brand_website
string(uri)
exemplehttps://www.example.com

The website URL of the brand represented by the RCS Agent.

carrier_requirements
object
agent_preview
object
Exigée
agent_access_instructions
string
Exigée
exempleProvide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. If you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. Test the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.

Agent access instructions specify how reviewers and testers can access and interact with your RBM agent during the review and testing phases before launch. This property provides guidance on methods for triggering agent functionality and testing various features.

urls
array
media_type
string
Exigée
exempleimage

The media type of the agent preview.

Il doit s'agir de l'un d'entre eux :imagevideo
url
string(uri)
exemplehttps://www.example.com/rcs-agent-preview.jpg

The URL to the agent preview.

points_of_contact
array
Exigée

A list of points of contact for the RCS Agent.

first_name
string
Exigée
Max200
exempleJane

The first name of the point of contact.

last_name
string
Exigée
Max200
exempleSmith

The last name of the point of contact.

email
string(email)
Exigée
exemplejane.smith@example.com

The email address of the point of contact.

job_title
string
Exigée
Max200
exempleTechnical Support

The job title of the point of contact.

traffic_estimates
object
Exigée

Traffic estimates for the RCS Agent.

average_global_traffic
string
Exigée
exempleTHOUSAND

Estimated global traffic.

Il doit s'agir de l'un d'entre eux :THOUSANDTEN_THOUSANDFIFTY_THOUSANDHUNDRED_THOUSANDMILLIONMILLION_AND_MORE
average_message_rate_per_user
string
Exigée
exempleONCE_PER_MONTH

Estimated message rate per user.

Il doit s'agir de l'un d'entre eux :ONCE_PER_MONTH2_4_TIMES_PER_MONTHONCE_PER_WEEK2_6_TIMES_PER_WEEKDAILYMULTIPLE_TIMES_PER_DAY
users_targeted
string
Exigée
exempleHUNDRED

Estimated number of users targeted.

Il doit s'agir de l'un d'entre eux :HUNDREDTHOUSANDTEN_THOUSANDHUNDRED_THOUSANDHALF_MILLIONMILLIONMILLION_AND_MORE
user_experience
object
Exigée
interactions_description
string
Exigée
Max10000
exempleThis agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. Secondary interactions may include promotional offers for existing customers and appointment scheduling assistance.

This field describes the primary and secondary types of interactions your RBM agent will have with users. It outlines the conversational patterns, message types, and engagement scenarios your agent supports.

optin_description
string
Exigée
Max10000
exempleThis is a test environment. Customers consent to receive messages directly via request, phone, or email. Users can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. Opt-in confirmation includes details about message frequency and content type.

Details how users will provide consent to receive messages from your RBM agent. This must clearly explain the opt-in mechanism and what users can expect when they subscribe to your messaging service.

optout_description
string
Exigée
Max10000
exempleCustomers can unsubscribe from receiving messages by replying 'STOP' to any message. They can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, and can re-subscribe at any time by replying 'START'.

Explains how users can unsubscribe from receiving messages from your agent. Must describe the process for users to stop receiving communications and how your system handles these requests.

trigger_description
string
Exigée
Max10000
exempleThis account is used exclusively for sending test messages to introduce RCS capabilities to customers. Triggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, and weekly promotional campaigns for opted-in users.

Defines the external events or conditions that will cause your RBM agent to initiate conversations with users. These triggers determine when and why your agent sends the first message to users.

Exemple Demande

{
   "application_settings": {
      "application_id": "78d335fa-323d-0114-9c3d-d6f0d48968cf"
   },
   "basic_info": {
      "brand_id": "0198095f-f18a-7f75-aa0a-59c3dfd68802",
      "display_name": "Example Co",
      "sender_id": "ExampleCo-RCSAgent-1",
      "hosting_region": "NORTH_AMERICA",
      "agent_purpose": "TRANSACTIONAL",
      "billing_category": "BASIC_MESSAGE",
      "notes": "This agent is used for transactional messages only."
   },
   "visual_design": {
      "brand_color": "#8860CD",
      "email": {
         "address": "support@example.com",
         "label": "Customer Support"
      },
      "phone": {
         "number": "+1234567890",
         "label": "Customer Support"
      },
      "tagline": "Your trusted partner in messaging.",
      "website": {
         "address": "https://www.example.com"
      },
      "privacy_policy": "https://www.example.com/privacy-policy",
      "terms_of_service": "https://www.example.com/terms-of-service"
   },
   "representative": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.doe@example.com",
      "brand_website": "https://www.example.com"
   },
   "carrier_requirements": {
      "agent_preview": {
         "agent_access_instructions": "Provide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. \nIf you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. \nTest the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.\n",
         "urls": [
            {
               "media_type": "image",
               "url": "https://www.example.com/rcs-agent-preview.jpg"
            }
         ]
      },
      "points_of_contact": [
         {
            "first_name": "Jane",
            "last_name": "Smith",
            "email": "jane.smith@example.com",
            "job_title": "Technical Support"
         }
      ],
      "traffic_estimates": {
         "average_global_traffic": "THOUSAND",
         "average_message_rate_per_user": "ONCE_PER_MONTH",
         "users_targeted": "HUNDRED"
      },
      "user_experience": {
         "interactions_description": "This agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. \nSecondary interactions may include promotional offers for existing customers and appointment scheduling assistance.\n",
         "optin_description": "This is a test environment. Customers consent to receive messages directly via request, phone, or email. \nUsers can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. \nOpt-in confirmation includes details about message frequency and content type.\n",
         "optout_description": "Customers can unsubscribe from receiving messages by replying 'STOP' to any message. \nThey can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, \nand can re-subscribe at any time by replying 'START'.\n",
         "trigger_description": "This account is used exclusively for sending test messages to introduce RCS capabilities to customers. \nTriggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, \nand weekly promotional campaigns for opted-in users.\n"
      }
   }
}

Réponses
Type de contenu
application/json

Created

id
string(uuid)
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The unique ID of the created RCS Agent.

state
string
exempleDRAFT

The current state of the created RCS Agent.

basic_info
object
Exigée
brand_id
string
Exigée
exemple0198095f-f18a-7f75-aa0a-59c3dfd68802

The id of the RCS Brand with which to associate this agent.

display_name
string
Exigée
exempleExample Co

The unique display name of the RCS Agent.

sender_id
string
Exigée
exempleExampleCo-RCSAgent-1

A unique sender identifier on the Vonage platform. This cannot be blank, include whitespaces, or be changed after creation. The sender ID is used as the from value when sending RCS messages via the Messages API.

hosting_region
string
Exigée
exempleNORTH_AMERICA

The geographic location where your RCS business messaging service will be hosted and operated. This can affect data residency and compliance requirements.

Il doit s'agir de l'un d'entre eux :NORTH_AMERICAEUROPEASIA_PACIFIC
agent_purpose
string
Exigée
exempleTRANSACTIONAL

Specifies the intended use of the RCS Agent. This cannot be changed after creation.

Il doit s'agir de l'un d'entre eux :PROMOTIONALTRANSACTIONALOTPMULTI_USE
billing_category
string
Exigée
exempleBASIC_MESSAGE

Specifies the pricing model applied to messages sent via this RCS Agent.

Il doit s'agir de l'un d'entre eux :BASIC_MESSAGESINGLE_MESSAGECONVERSATIONAL
notes
string
exempleThis agent is used for transactional messages only.

Additional notes or comments about the RCS Agent.

visual_design
object
brand_color
string
Exigée
exemple#8860CD

The hexadecimal color code for the primary color used in UI elements. The specified color must meet WCAG 2.1 contrast ratio of 4.5:1 for legibility.

email
object
Exigée
address
string
Exigée
exemplesupport@example.com

The contact email address for the RCS Agent.

label
string
Max25
exempleCustomer Support

A label for the email address.

phone
object
Exigée
number
string
Exigée
exemple+1234567890

End-user contact number in E.164 format.

label
string
Max25
exempleCustomer Support

A label for the phone number.

tagline
string
Exigée
Max100
exempleYour trusted partner in messaging.

A short phrase that represents the RCS Agent.

website
array
Exigée
address
string(uri)
Exigée
label
string
Max25
exempleCompany Website

A label for the website URL.

privacy_policy
string(uri)
exemplehttps://www.example.com/privacy-policy

The publicly accessible URL of the privacy policy for the RCS Agent.

terms_of_service
string(uri)
exemplehttps://www.example.com/terms-of-service

The publicly accessible URL of the terms of service for the RCS Agent.

application_settings
object
application_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the Vonage application with which to associate this agent.

representative
object
first_name
string
Exigée
Max200
exempleJohn

The first name of the representative for the RCS Agent.

last_name
string
Exigée
Max200
exempleDoe

The last name of the representative for the RCS Agent.

email
string(email)
Exigée
exemplejohn.doe@example.com

The email address of the representative.

brand_website
string(uri)
exemplehttps://www.example.com

The website URL of the brand represented by the RCS Agent.

carrier_requirements
object
agent_preview
object
Exigée
agent_access_instructions
string
Exigée
exempleProvide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. If you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. Test the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.

Agent access instructions specify how reviewers and testers can access and interact with your RBM agent during the review and testing phases before launch. This property provides guidance on methods for triggering agent functionality and testing various features.

urls
array
media_type
string
Exigée
exempleimage

The media type of the agent preview.

Il doit s'agir de l'un d'entre eux :imagevideo
url
string(uri)
exemplehttps://www.example.com/rcs-agent-preview.jpg

The URL to the agent preview.

points_of_contact
array
Exigée

A list of points of contact for the RCS Agent.

first_name
string
Exigée
Max200
exempleJane

The first name of the point of contact.

last_name
string
Exigée
Max200
exempleSmith

The last name of the point of contact.

email
string(email)
Exigée
exemplejane.smith@example.com

The email address of the point of contact.

job_title
string
Exigée
Max200
exempleTechnical Support

The job title of the point of contact.

traffic_estimates
object
Exigée

Traffic estimates for the RCS Agent.

average_global_traffic
string
Exigée
exempleTHOUSAND

Estimated global traffic.

Il doit s'agir de l'un d'entre eux :THOUSANDTEN_THOUSANDFIFTY_THOUSANDHUNDRED_THOUSANDMILLIONMILLION_AND_MORE
average_message_rate_per_user
string
Exigée
exempleONCE_PER_MONTH

Estimated message rate per user.

Il doit s'agir de l'un d'entre eux :ONCE_PER_MONTH2_4_TIMES_PER_MONTHONCE_PER_WEEK2_6_TIMES_PER_WEEKDAILYMULTIPLE_TIMES_PER_DAY
users_targeted
string
Exigée
exempleHUNDRED

Estimated number of users targeted.

Il doit s'agir de l'un d'entre eux :HUNDREDTHOUSANDTEN_THOUSANDHUNDRED_THOUSANDHALF_MILLIONMILLIONMILLION_AND_MORE
user_experience
object
Exigée
interactions_description
string
Exigée
Max10000
exempleThis agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. Secondary interactions may include promotional offers for existing customers and appointment scheduling assistance.

This field describes the primary and secondary types of interactions your RBM agent will have with users. It outlines the conversational patterns, message types, and engagement scenarios your agent supports.

optin_description
string
Exigée
Max10000
exempleThis is a test environment. Customers consent to receive messages directly via request, phone, or email. Users can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. Opt-in confirmation includes details about message frequency and content type.

Details how users will provide consent to receive messages from your RBM agent. This must clearly explain the opt-in mechanism and what users can expect when they subscribe to your messaging service.

optout_description
string
Exigée
Max10000
exempleCustomers can unsubscribe from receiving messages by replying 'STOP' to any message. They can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, and can re-subscribe at any time by replying 'START'.

Explains how users can unsubscribe from receiving messages from your agent. Must describe the process for users to stop receiving communications and how your system handles these requests.

trigger_description
string
Exigée
Max10000
exempleThis account is used exclusively for sending test messages to introduce RCS capabilities to customers. Triggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, and weekly promotional campaigns for opted-in users.

Defines the external events or conditions that will cause your RBM agent to initiate conversations with users. These triggers determine when and why your agent sends the first message to users.

created_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent was created.

updated_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent was last updated.

Exemple Réponse

{
   "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
   "state": "DRAFT",
   "basic_info": {
      "brand_id": "0198095f-f18a-7f75-aa0a-59c3dfd68802",
      "display_name": "Example Co",
      "sender_id": "ExampleCo-RCSAgent-1",
      "hosting_region": "NORTH_AMERICA",
      "agent_purpose": "TRANSACTIONAL",
      "billing_category": "BASIC_MESSAGE",
      "notes": "This agent is used for transactional messages only."
   },
   "visual_design": {
      "brand_color": "#8860CD",
      "email": {
         "address": "support@example.com",
         "label": "Customer Support"
      },
      "phone": {
         "number": "+1234567890",
         "label": "Customer Support"
      },
      "tagline": "Your trusted partner in messaging.",
      "website": {
         "address": "https://www.example.com"
      },
      "privacy_policy": "https://www.example.com/privacy-policy",
      "terms_of_service": "https://www.example.com/terms-of-service"
   },
   "application_settings": {
      "application_id": "78d335fa-323d-0114-9c3d-d6f0d48968cf"
   },
   "representative": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.doe@example.com",
      "brand_website": "https://www.example.com"
   },
   "carrier_requirements": {
      "agent_preview": {
         "agent_access_instructions": "Provide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. \nIf you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. \nTest the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.\n",
         "urls": [
            {
               "media_type": "image",
               "url": "https://www.example.com/rcs-agent-preview.jpg"
            }
         ]
      },
      "points_of_contact": [
         {
            "first_name": "Jane",
            "last_name": "Smith",
            "email": "jane.smith@example.com",
            "job_title": "Technical Support"
         }
      ],
      "traffic_estimates": {
         "average_global_traffic": "THOUSAND",
         "average_message_rate_per_user": "ONCE_PER_MONTH",
         "users_targeted": "HUNDRED"
      },
      "user_experience": {
         "interactions_description": "This agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. \nSecondary interactions may include promotional offers for existing customers and appointment scheduling assistance.\n",
         "optin_description": "This is a test environment. Customers consent to receive messages directly via request, phone, or email. \nUsers can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. \nOpt-in confirmation includes details about message frequency and content type.\n",
         "optout_description": "Customers can unsubscribe from receiving messages by replying 'STOP' to any message. \nThey can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, \nand can re-subscribe at any time by replying 'START'.\n",
         "trigger_description": "This account is used exclusively for sending test messages to introduce RCS capabilities to customers. \nTriggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, \nand weekly promotional campaigns for opted-in users.\n"
      }
   },
   "created_at": "2023-01-01T12:00:00Z",
   "updated_at": "2023-01-01T12:00:00Z"
}

Get Agent

Retrieve an existing RCS Agent.

gethttps://api.nexmo.com/v1/channel-manager/rcs/agents/:agent_id

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

agent_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The agent_id of the RCS Agent to retrieve.

Réponses
Type de contenu
application/json

OK

id
string(uuid)
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The unique ID of the created RCS Agent.

state
string
exempleDRAFT

The current state of the created RCS Agent.

basic_info
object
Exigée
brand_id
string
Exigée
exemple0198095f-f18a-7f75-aa0a-59c3dfd68802

The id of the RCS Brand with which to associate this agent.

display_name
string
Exigée
exempleExample Co

The unique display name of the RCS Agent.

sender_id
string
Exigée
exempleExampleCo-RCSAgent-1

A unique sender identifier on the Vonage platform. This cannot be blank, include whitespaces, or be changed after creation. The sender ID is used as the from value when sending RCS messages via the Messages API.

hosting_region
string
Exigée
exempleNORTH_AMERICA

The geographic location where your RCS business messaging service will be hosted and operated. This can affect data residency and compliance requirements.

Il doit s'agir de l'un d'entre eux :NORTH_AMERICAEUROPEASIA_PACIFIC
agent_purpose
string
Exigée
exempleTRANSACTIONAL

Specifies the intended use of the RCS Agent. This cannot be changed after creation.

Il doit s'agir de l'un d'entre eux :PROMOTIONALTRANSACTIONALOTPMULTI_USE
billing_category
string
Exigée
exempleBASIC_MESSAGE

Specifies the pricing model applied to messages sent via this RCS Agent.

Il doit s'agir de l'un d'entre eux :BASIC_MESSAGESINGLE_MESSAGECONVERSATIONAL
notes
string
exempleThis agent is used for transactional messages only.

Additional notes or comments about the RCS Agent.

visual_design
object
brand_color
string
Exigée
exemple#8860CD

The hexadecimal color code for the primary color used in UI elements. The specified color must meet WCAG 2.1 contrast ratio of 4.5:1 for legibility.

email
object
Exigée
address
string
Exigée
exemplesupport@example.com

The contact email address for the RCS Agent.

label
string
Max25
exempleCustomer Support

A label for the email address.

phone
object
Exigée
number
string
Exigée
exemple+1234567890

End-user contact number in E.164 format.

label
string
Max25
exempleCustomer Support

A label for the phone number.

tagline
string
Exigée
Max100
exempleYour trusted partner in messaging.

A short phrase that represents the RCS Agent.

website
array
Exigée
address
string(uri)
Exigée
label
string
Max25
exempleCompany Website

A label for the website URL.

privacy_policy
string(uri)
exemplehttps://www.example.com/privacy-policy

The publicly accessible URL of the privacy policy for the RCS Agent.

terms_of_service
string(uri)
exemplehttps://www.example.com/terms-of-service

The publicly accessible URL of the terms of service for the RCS Agent.

application_settings
object
application_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the Vonage application with which to associate this agent.

representative
object
first_name
string
Exigée
Max200
exempleJohn

The first name of the representative for the RCS Agent.

last_name
string
Exigée
Max200
exempleDoe

The last name of the representative for the RCS Agent.

email
string(email)
Exigée
exemplejohn.doe@example.com

The email address of the representative.

brand_website
string(uri)
exemplehttps://www.example.com

The website URL of the brand represented by the RCS Agent.

carrier_requirements
object
agent_preview
object
Exigée
agent_access_instructions
string
Exigée
exempleProvide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. If you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. Test the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.

Agent access instructions specify how reviewers and testers can access and interact with your RBM agent during the review and testing phases before launch. This property provides guidance on methods for triggering agent functionality and testing various features.

urls
array
media_type
string
Exigée
exempleimage

The media type of the agent preview.

Il doit s'agir de l'un d'entre eux :imagevideo
url
string(uri)
exemplehttps://www.example.com/rcs-agent-preview.jpg

The URL to the agent preview.

points_of_contact
array
Exigée

A list of points of contact for the RCS Agent.

first_name
string
Exigée
Max200
exempleJane

The first name of the point of contact.

last_name
string
Exigée
Max200
exempleSmith

The last name of the point of contact.

email
string(email)
Exigée
exemplejane.smith@example.com

The email address of the point of contact.

job_title
string
Exigée
Max200
exempleTechnical Support

The job title of the point of contact.

traffic_estimates
object
Exigée

Traffic estimates for the RCS Agent.

average_global_traffic
string
Exigée
exempleTHOUSAND

Estimated global traffic.

Il doit s'agir de l'un d'entre eux :THOUSANDTEN_THOUSANDFIFTY_THOUSANDHUNDRED_THOUSANDMILLIONMILLION_AND_MORE
average_message_rate_per_user
string
Exigée
exempleONCE_PER_MONTH

Estimated message rate per user.

Il doit s'agir de l'un d'entre eux :ONCE_PER_MONTH2_4_TIMES_PER_MONTHONCE_PER_WEEK2_6_TIMES_PER_WEEKDAILYMULTIPLE_TIMES_PER_DAY
users_targeted
string
Exigée
exempleHUNDRED

Estimated number of users targeted.

Il doit s'agir de l'un d'entre eux :HUNDREDTHOUSANDTEN_THOUSANDHUNDRED_THOUSANDHALF_MILLIONMILLIONMILLION_AND_MORE
user_experience
object
Exigée
interactions_description
string
Exigée
Max10000
exempleThis agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. Secondary interactions may include promotional offers for existing customers and appointment scheduling assistance.

This field describes the primary and secondary types of interactions your RBM agent will have with users. It outlines the conversational patterns, message types, and engagement scenarios your agent supports.

optin_description
string
Exigée
Max10000
exempleThis is a test environment. Customers consent to receive messages directly via request, phone, or email. Users can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. Opt-in confirmation includes details about message frequency and content type.

Details how users will provide consent to receive messages from your RBM agent. This must clearly explain the opt-in mechanism and what users can expect when they subscribe to your messaging service.

optout_description
string
Exigée
Max10000
exempleCustomers can unsubscribe from receiving messages by replying 'STOP' to any message. They can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, and can re-subscribe at any time by replying 'START'.

Explains how users can unsubscribe from receiving messages from your agent. Must describe the process for users to stop receiving communications and how your system handles these requests.

trigger_description
string
Exigée
Max10000
exempleThis account is used exclusively for sending test messages to introduce RCS capabilities to customers. Triggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, and weekly promotional campaigns for opted-in users.

Defines the external events or conditions that will cause your RBM agent to initiate conversations with users. These triggers determine when and why your agent sends the first message to users.

created_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent was created.

updated_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent was last updated.

test_devices
array
id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the test device.

phone
string
Exigée
exemple+1234567890

The phone number of the test device in E.164 format.

status
string
Exigée
exempleACCEPTED

The current status of the test device.

created_at
string(date-time)
Exigée
exemple2023-01-01T12:00:00Z

The date and time when the test device was created.

carriers
object
id
string
Exigée
exempleatt-us

The id of the carrier.

launch_state
string
exempleLAUNCH_STATE_UNLAUNCHED

The launch state of the carrier.

Il doit s'agir de l'un d'entre eux :LAUNCH_STATE_UNSPECIFIEDLAUNCH_STATE_UNLAUNCHEDLAUNCH_STATE_PENDINGLAUNCH_STATE_LAUNCHEDLAUNCH_STATE_REJECTEDLAUNCH_STATE_SUSPENDEDLAUNCH_STATE_PENDING_UNLAUNCHLAUNCH_STATE_INVALID_IN_GMB
verification_details
object
status
string
exempleVERIFICATION_STATE_UNVERIFIED

The verification status of the RCS Agent.

launch_submitted_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent launch was submitted.

Exemple Réponse

{
   "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
   "state": "DRAFT",
   "basic_info": {
      "brand_id": "0198095f-f18a-7f75-aa0a-59c3dfd68802",
      "display_name": "Example Co",
      "sender_id": "ExampleCo-RCSAgent-1",
      "hosting_region": "NORTH_AMERICA",
      "agent_purpose": "TRANSACTIONAL",
      "billing_category": "BASIC_MESSAGE",
      "notes": "This agent is used for transactional messages only."
   },
   "visual_design": {
      "brand_color": "#8860CD",
      "email": {
         "address": "support@example.com",
         "label": "Customer Support"
      },
      "phone": {
         "number": "+1234567890",
         "label": "Customer Support"
      },
      "tagline": "Your trusted partner in messaging.",
      "website": {
         "address": "https://www.example.com"
      },
      "privacy_policy": "https://www.example.com/privacy-policy",
      "terms_of_service": "https://www.example.com/terms-of-service"
   },
   "application_settings": {
      "application_id": "78d335fa-323d-0114-9c3d-d6f0d48968cf"
   },
   "representative": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.doe@example.com",
      "brand_website": "https://www.example.com"
   },
   "carrier_requirements": {
      "agent_preview": {
         "agent_access_instructions": "Provide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. \nIf you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. \nTest the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.\n",
         "urls": [
            {
               "media_type": "image",
               "url": "https://www.example.com/rcs-agent-preview.jpg"
            }
         ]
      },
      "points_of_contact": [
         {
            "first_name": "Jane",
            "last_name": "Smith",
            "email": "jane.smith@example.com",
            "job_title": "Technical Support"
         }
      ],
      "traffic_estimates": {
         "average_global_traffic": "THOUSAND",
         "average_message_rate_per_user": "ONCE_PER_MONTH",
         "users_targeted": "HUNDRED"
      },
      "user_experience": {
         "interactions_description": "This agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. \nSecondary interactions may include promotional offers for existing customers and appointment scheduling assistance.\n",
         "optin_description": "This is a test environment. Customers consent to receive messages directly via request, phone, or email. \nUsers can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. \nOpt-in confirmation includes details about message frequency and content type.\n",
         "optout_description": "Customers can unsubscribe from receiving messages by replying 'STOP' to any message. \nThey can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, \nand can re-subscribe at any time by replying 'START'.\n",
         "trigger_description": "This account is used exclusively for sending test messages to introduce RCS capabilities to customers. \nTriggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, \nand weekly promotional campaigns for opted-in users.\n"
      }
   },
   "created_at": "2023-01-01T12:00:00Z",
   "updated_at": "2023-01-01T12:00:00Z",
   "test_devices": [
      {
         "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
         "phone": "+1234567890",
         "status": "ACCEPTED",
         "created_at": "2023-01-01T12:00:00Z"
      }
   ],
   "carriers": {
      "id": "att-us",
      "launch_state": "LAUNCH_STATE_UNLAUNCHED"
   },
   "verification_details": {
      "status": "VERIFICATION_STATE_UNVERIFIED"
   },
   "launch_submitted_at": "2023-01-01T12:00:00Z"
}

Update Agent

Fully update an existing RCS Agent.

puthttps://api.nexmo.com/v1/channel-manager/rcs/agents/:agent_id

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

agent_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The agent_id of the RCS Agent to update.

Corps de la demande
Type de contenu
application/json

application_settings
object
Exigée
application_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the Vonage application with which to associate this agent.

basic_info
object
Exigée
brand_id
string
Exigée
exemple0198095f-f18a-7f75-aa0a-59c3dfd68802

The id of the RCS Brand with which to associate this agent.

display_name
string
Exigée
exempleExample Co

The unique display name of the RCS Agent.

sender_id
string
Exigée
exempleExampleCo-RCSAgent-1

A unique sender identifier on the Vonage platform. This cannot be blank, include whitespaces, or be changed after creation. The sender ID is used as the from value when sending RCS messages via the Messages API.

hosting_region
string
Exigée
exempleNORTH_AMERICA

The geographic location where your RCS business messaging service will be hosted and operated. This can affect data residency and compliance requirements.

Il doit s'agir de l'un d'entre eux :NORTH_AMERICAEUROPEASIA_PACIFIC
agent_purpose
string
Exigée
exempleTRANSACTIONAL

Specifies the intended use of the RCS Agent. This cannot be changed after creation.

Il doit s'agir de l'un d'entre eux :PROMOTIONALTRANSACTIONALOTPMULTI_USE
billing_category
string
Exigée
exempleBASIC_MESSAGE

Specifies the pricing model applied to messages sent via this RCS Agent.

Il doit s'agir de l'un d'entre eux :BASIC_MESSAGESINGLE_MESSAGECONVERSATIONAL
notes
string
exempleThis agent is used for transactional messages only.

Additional notes or comments about the RCS Agent.

visual_design
object
Exigée
brand_color
string
Exigée
exemple#8860CD

The hexadecimal color code for the primary color used in UI elements. The specified color must meet WCAG 2.1 contrast ratio of 4.5:1 for legibility.

email
object
Exigée
address
string
Exigée
exemplesupport@example.com

The contact email address for the RCS Agent.

label
string
Max25
exempleCustomer Support

A label for the email address.

phone
object
Exigée
number
string
Exigée
exemple+1234567890

End-user contact number in E.164 format.

label
string
Max25
exempleCustomer Support

A label for the phone number.

tagline
string
Exigée
Max100
exempleYour trusted partner in messaging.

A short phrase that represents the RCS Agent.

website
array
Exigée
address
string(uri)
Exigée
label
string
Max25
exempleCompany Website

A label for the website URL.

privacy_policy
string(uri)
exemplehttps://www.example.com/privacy-policy

The publicly accessible URL of the privacy policy for the RCS Agent.

terms_of_service
string(uri)
exemplehttps://www.example.com/terms-of-service

The publicly accessible URL of the terms of service for the RCS Agent.

representative
object
Exigée
first_name
string
Exigée
Max200
exempleJohn

The first name of the representative for the RCS Agent.

last_name
string
Exigée
Max200
exempleDoe

The last name of the representative for the RCS Agent.

email
string(email)
Exigée
exemplejohn.doe@example.com

The email address of the representative.

brand_website
string(uri)
exemplehttps://www.example.com

The website URL of the brand represented by the RCS Agent.

carrier_requirements
object
Exigée
agent_preview
object
Exigée
agent_access_instructions
string
Exigée
exempleProvide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. If you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. Test the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.

Agent access instructions specify how reviewers and testers can access and interact with your RBM agent during the review and testing phases before launch. This property provides guidance on methods for triggering agent functionality and testing various features.

urls
array
media_type
string
Exigée
exempleimage

The media type of the agent preview.

Il doit s'agir de l'un d'entre eux :imagevideo
url
string(uri)
exemplehttps://www.example.com/rcs-agent-preview.jpg

The URL to the agent preview.

points_of_contact
array
Exigée

A list of points of contact for the RCS Agent.

first_name
string
Exigée
Max200
exempleJane

The first name of the point of contact.

last_name
string
Exigée
Max200
exempleSmith

The last name of the point of contact.

email
string(email)
Exigée
exemplejane.smith@example.com

The email address of the point of contact.

job_title
string
Exigée
Max200
exempleTechnical Support

The job title of the point of contact.

traffic_estimates
object
Exigée

Traffic estimates for the RCS Agent.

average_global_traffic
string
Exigée
exempleTHOUSAND

Estimated global traffic.

Il doit s'agir de l'un d'entre eux :THOUSANDTEN_THOUSANDFIFTY_THOUSANDHUNDRED_THOUSANDMILLIONMILLION_AND_MORE
average_message_rate_per_user
string
Exigée
exempleONCE_PER_MONTH

Estimated message rate per user.

Il doit s'agir de l'un d'entre eux :ONCE_PER_MONTH2_4_TIMES_PER_MONTHONCE_PER_WEEK2_6_TIMES_PER_WEEKDAILYMULTIPLE_TIMES_PER_DAY
users_targeted
string
Exigée
exempleHUNDRED

Estimated number of users targeted.

Il doit s'agir de l'un d'entre eux :HUNDREDTHOUSANDTEN_THOUSANDHUNDRED_THOUSANDHALF_MILLIONMILLIONMILLION_AND_MORE
user_experience
object
Exigée
interactions_description
string
Exigée
Max10000
exempleThis agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. Secondary interactions may include promotional offers for existing customers and appointment scheduling assistance.

This field describes the primary and secondary types of interactions your RBM agent will have with users. It outlines the conversational patterns, message types, and engagement scenarios your agent supports.

optin_description
string
Exigée
Max10000
exempleThis is a test environment. Customers consent to receive messages directly via request, phone, or email. Users can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. Opt-in confirmation includes details about message frequency and content type.

Details how users will provide consent to receive messages from your RBM agent. This must clearly explain the opt-in mechanism and what users can expect when they subscribe to your messaging service.

optout_description
string
Exigée
Max10000
exempleCustomers can unsubscribe from receiving messages by replying 'STOP' to any message. They can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, and can re-subscribe at any time by replying 'START'.

Explains how users can unsubscribe from receiving messages from your agent. Must describe the process for users to stop receiving communications and how your system handles these requests.

trigger_description
string
Exigée
Max10000
exempleThis account is used exclusively for sending test messages to introduce RCS capabilities to customers. Triggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, and weekly promotional campaigns for opted-in users.

Defines the external events or conditions that will cause your RBM agent to initiate conversations with users. These triggers determine when and why your agent sends the first message to users.

Exemple Demande

{
   "application_settings": {
      "application_id": "78d335fa-323d-0114-9c3d-d6f0d48968cf"
   },
   "basic_info": {
      "brand_id": "0198095f-f18a-7f75-aa0a-59c3dfd68802",
      "display_name": "Example Co",
      "sender_id": "ExampleCo-RCSAgent-1",
      "hosting_region": "NORTH_AMERICA",
      "agent_purpose": "TRANSACTIONAL",
      "billing_category": "BASIC_MESSAGE",
      "notes": "This agent is used for transactional messages only."
   },
   "visual_design": {
      "brand_color": "#8860CD",
      "email": {
         "address": "support@example.com",
         "label": "Customer Support"
      },
      "phone": {
         "number": "+1234567890",
         "label": "Customer Support"
      },
      "tagline": "Your trusted partner in messaging.",
      "website": {
         "address": "https://www.example.com"
      },
      "privacy_policy": "https://www.example.com/privacy-policy",
      "terms_of_service": "https://www.example.com/terms-of-service"
   },
   "representative": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.doe@example.com",
      "brand_website": "https://www.example.com"
   },
   "carrier_requirements": {
      "agent_preview": {
         "agent_access_instructions": "Provide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. \nIf you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. \nTest the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.\n",
         "urls": [
            {
               "media_type": "image",
               "url": "https://www.example.com/rcs-agent-preview.jpg"
            }
         ]
      },
      "points_of_contact": [
         {
            "first_name": "Jane",
            "last_name": "Smith",
            "email": "jane.smith@example.com",
            "job_title": "Technical Support"
         }
      ],
      "traffic_estimates": {
         "average_global_traffic": "THOUSAND",
         "average_message_rate_per_user": "ONCE_PER_MONTH",
         "users_targeted": "HUNDRED"
      },
      "user_experience": {
         "interactions_description": "This agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. \nSecondary interactions may include promotional offers for existing customers and appointment scheduling assistance.\n",
         "optin_description": "This is a test environment. Customers consent to receive messages directly via request, phone, or email. \nUsers can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. \nOpt-in confirmation includes details about message frequency and content type.\n",
         "optout_description": "Customers can unsubscribe from receiving messages by replying 'STOP' to any message. \nThey can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, \nand can re-subscribe at any time by replying 'START'.\n",
         "trigger_description": "This account is used exclusively for sending test messages to introduce RCS capabilities to customers. \nTriggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, \nand weekly promotional campaigns for opted-in users.\n"
      }
   }
}

Réponses
Type de contenu
application/json

Accepted

id
string(uuid)
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The unique ID of the created RCS Agent.

state
string
exempleDRAFT

The current state of the created RCS Agent.

basic_info
object
Exigée
brand_id
string
Exigée
exemple0198095f-f18a-7f75-aa0a-59c3dfd68802

The id of the RCS Brand with which to associate this agent.

display_name
string
Exigée
exempleExample Co

The unique display name of the RCS Agent.

sender_id
string
Exigée
exempleExampleCo-RCSAgent-1

A unique sender identifier on the Vonage platform. This cannot be blank, include whitespaces, or be changed after creation. The sender ID is used as the from value when sending RCS messages via the Messages API.

hosting_region
string
Exigée
exempleNORTH_AMERICA

The geographic location where your RCS business messaging service will be hosted and operated. This can affect data residency and compliance requirements.

Il doit s'agir de l'un d'entre eux :NORTH_AMERICAEUROPEASIA_PACIFIC
agent_purpose
string
Exigée
exempleTRANSACTIONAL

Specifies the intended use of the RCS Agent. This cannot be changed after creation.

Il doit s'agir de l'un d'entre eux :PROMOTIONALTRANSACTIONALOTPMULTI_USE
billing_category
string
Exigée
exempleBASIC_MESSAGE

Specifies the pricing model applied to messages sent via this RCS Agent.

Il doit s'agir de l'un d'entre eux :BASIC_MESSAGESINGLE_MESSAGECONVERSATIONAL
notes
string
exempleThis agent is used for transactional messages only.

Additional notes or comments about the RCS Agent.

visual_design
object
brand_color
string
Exigée
exemple#8860CD

The hexadecimal color code for the primary color used in UI elements. The specified color must meet WCAG 2.1 contrast ratio of 4.5:1 for legibility.

email
object
Exigée
address
string
Exigée
exemplesupport@example.com

The contact email address for the RCS Agent.

label
string
Max25
exempleCustomer Support

A label for the email address.

phone
object
Exigée
number
string
Exigée
exemple+1234567890

End-user contact number in E.164 format.

label
string
Max25
exempleCustomer Support

A label for the phone number.

tagline
string
Exigée
Max100
exempleYour trusted partner in messaging.

A short phrase that represents the RCS Agent.

website
array
Exigée
address
string(uri)
Exigée
label
string
Max25
exempleCompany Website

A label for the website URL.

privacy_policy
string(uri)
exemplehttps://www.example.com/privacy-policy

The publicly accessible URL of the privacy policy for the RCS Agent.

terms_of_service
string(uri)
exemplehttps://www.example.com/terms-of-service

The publicly accessible URL of the terms of service for the RCS Agent.

application_settings
object
application_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the Vonage application with which to associate this agent.

representative
object
first_name
string
Exigée
Max200
exempleJohn

The first name of the representative for the RCS Agent.

last_name
string
Exigée
Max200
exempleDoe

The last name of the representative for the RCS Agent.

email
string(email)
Exigée
exemplejohn.doe@example.com

The email address of the representative.

brand_website
string(uri)
exemplehttps://www.example.com

The website URL of the brand represented by the RCS Agent.

carrier_requirements
object
agent_preview
object
Exigée
agent_access_instructions
string
Exigée
exempleProvide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. If you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. Test the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.

Agent access instructions specify how reviewers and testers can access and interact with your RBM agent during the review and testing phases before launch. This property provides guidance on methods for triggering agent functionality and testing various features.

urls
array
media_type
string
Exigée
exempleimage

The media type of the agent preview.

Il doit s'agir de l'un d'entre eux :imagevideo
url
string(uri)
exemplehttps://www.example.com/rcs-agent-preview.jpg

The URL to the agent preview.

points_of_contact
array
Exigée

A list of points of contact for the RCS Agent.

first_name
string
Exigée
Max200
exempleJane

The first name of the point of contact.

last_name
string
Exigée
Max200
exempleSmith

The last name of the point of contact.

email
string(email)
Exigée
exemplejane.smith@example.com

The email address of the point of contact.

job_title
string
Exigée
Max200
exempleTechnical Support

The job title of the point of contact.

traffic_estimates
object
Exigée

Traffic estimates for the RCS Agent.

average_global_traffic
string
Exigée
exempleTHOUSAND

Estimated global traffic.

Il doit s'agir de l'un d'entre eux :THOUSANDTEN_THOUSANDFIFTY_THOUSANDHUNDRED_THOUSANDMILLIONMILLION_AND_MORE
average_message_rate_per_user
string
Exigée
exempleONCE_PER_MONTH

Estimated message rate per user.

Il doit s'agir de l'un d'entre eux :ONCE_PER_MONTH2_4_TIMES_PER_MONTHONCE_PER_WEEK2_6_TIMES_PER_WEEKDAILYMULTIPLE_TIMES_PER_DAY
users_targeted
string
Exigée
exempleHUNDRED

Estimated number of users targeted.

Il doit s'agir de l'un d'entre eux :HUNDREDTHOUSANDTEN_THOUSANDHUNDRED_THOUSANDHALF_MILLIONMILLIONMILLION_AND_MORE
user_experience
object
Exigée
interactions_description
string
Exigée
Max10000
exempleThis agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. Secondary interactions may include promotional offers for existing customers and appointment scheduling assistance.

This field describes the primary and secondary types of interactions your RBM agent will have with users. It outlines the conversational patterns, message types, and engagement scenarios your agent supports.

optin_description
string
Exigée
Max10000
exempleThis is a test environment. Customers consent to receive messages directly via request, phone, or email. Users can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. Opt-in confirmation includes details about message frequency and content type.

Details how users will provide consent to receive messages from your RBM agent. This must clearly explain the opt-in mechanism and what users can expect when they subscribe to your messaging service.

optout_description
string
Exigée
Max10000
exempleCustomers can unsubscribe from receiving messages by replying 'STOP' to any message. They can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, and can re-subscribe at any time by replying 'START'.

Explains how users can unsubscribe from receiving messages from your agent. Must describe the process for users to stop receiving communications and how your system handles these requests.

trigger_description
string
Exigée
Max10000
exempleThis account is used exclusively for sending test messages to introduce RCS capabilities to customers. Triggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, and weekly promotional campaigns for opted-in users.

Defines the external events or conditions that will cause your RBM agent to initiate conversations with users. These triggers determine when and why your agent sends the first message to users.

created_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent was created.

updated_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent was last updated.

test_devices
array
id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the test device.

phone
string
Exigée
exemple+1234567890

The phone number of the test device in E.164 format.

status
string
Exigée
exempleACCEPTED

The current status of the test device.

created_at
string(date-time)
Exigée
exemple2023-01-01T12:00:00Z

The date and time when the test device was created.

carriers
object
id
string
Exigée
exempleatt-us

The id of the carrier.

launch_state
string
exempleLAUNCH_STATE_UNLAUNCHED

The launch state of the carrier.

Il doit s'agir de l'un d'entre eux :LAUNCH_STATE_UNSPECIFIEDLAUNCH_STATE_UNLAUNCHEDLAUNCH_STATE_PENDINGLAUNCH_STATE_LAUNCHEDLAUNCH_STATE_REJECTEDLAUNCH_STATE_SUSPENDEDLAUNCH_STATE_PENDING_UNLAUNCHLAUNCH_STATE_INVALID_IN_GMB
verification_details
object
status
string
exempleVERIFICATION_STATE_UNVERIFIED

The verification status of the RCS Agent.

launch_submitted_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent launch was submitted.

Exemple Réponse

{
   "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
   "state": "DRAFT",
   "basic_info": {
      "brand_id": "0198095f-f18a-7f75-aa0a-59c3dfd68802",
      "display_name": "Example Co",
      "sender_id": "ExampleCo-RCSAgent-1",
      "hosting_region": "NORTH_AMERICA",
      "agent_purpose": "TRANSACTIONAL",
      "billing_category": "BASIC_MESSAGE",
      "notes": "This agent is used for transactional messages only."
   },
   "visual_design": {
      "brand_color": "#8860CD",
      "email": {
         "address": "support@example.com",
         "label": "Customer Support"
      },
      "phone": {
         "number": "+1234567890",
         "label": "Customer Support"
      },
      "tagline": "Your trusted partner in messaging.",
      "website": {
         "address": "https://www.example.com"
      },
      "privacy_policy": "https://www.example.com/privacy-policy",
      "terms_of_service": "https://www.example.com/terms-of-service"
   },
   "application_settings": {
      "application_id": "78d335fa-323d-0114-9c3d-d6f0d48968cf"
   },
   "representative": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.doe@example.com",
      "brand_website": "https://www.example.com"
   },
   "carrier_requirements": {
      "agent_preview": {
         "agent_access_instructions": "Provide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. \nIf you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. \nTest the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.\n",
         "urls": [
            {
               "media_type": "image",
               "url": "https://www.example.com/rcs-agent-preview.jpg"
            }
         ]
      },
      "points_of_contact": [
         {
            "first_name": "Jane",
            "last_name": "Smith",
            "email": "jane.smith@example.com",
            "job_title": "Technical Support"
         }
      ],
      "traffic_estimates": {
         "average_global_traffic": "THOUSAND",
         "average_message_rate_per_user": "ONCE_PER_MONTH",
         "users_targeted": "HUNDRED"
      },
      "user_experience": {
         "interactions_description": "This agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. \nSecondary interactions may include promotional offers for existing customers and appointment scheduling assistance.\n",
         "optin_description": "This is a test environment. Customers consent to receive messages directly via request, phone, or email. \nUsers can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. \nOpt-in confirmation includes details about message frequency and content type.\n",
         "optout_description": "Customers can unsubscribe from receiving messages by replying 'STOP' to any message. \nThey can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, \nand can re-subscribe at any time by replying 'START'.\n",
         "trigger_description": "This account is used exclusively for sending test messages to introduce RCS capabilities to customers. \nTriggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, \nand weekly promotional campaigns for opted-in users.\n"
      }
   },
   "created_at": "2023-01-01T12:00:00Z",
   "updated_at": "2023-01-01T12:00:00Z",
   "test_devices": [
      {
         "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
         "phone": "+1234567890",
         "status": "ACCEPTED",
         "created_at": "2023-01-01T12:00:00Z"
      }
   ],
   "carriers": {
      "id": "att-us",
      "launch_state": "LAUNCH_STATE_UNLAUNCHED"
   },
   "verification_details": {
      "status": "VERIFICATION_STATE_UNVERIFIED"
   },
   "launch_submitted_at": "2023-01-01T12:00:00Z"
}

Partially Update Agent

Partially update an existing RCS Agent.

patchhttps://api.nexmo.com/v1/channel-manager/rcs/agents/:agent_id

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

agent_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The agent_id of the RCS Agent to update.

Corps de la demande
Type de contenu
application/json

application_settings
object
application_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the Vonage application with which to associate this agent.

basic_info
object
brand_id
string
Exigée
exemple0198095f-f18a-7f75-aa0a-59c3dfd68802

The id of the RCS Brand with which to associate this agent.

display_name
string
Exigée
exempleExample Co

The unique display name of the RCS Agent.

sender_id
string
Exigée
exempleExampleCo-RCSAgent-1

A unique sender identifier on the Vonage platform. This cannot be blank, include whitespaces, or be changed after creation. The sender ID is used as the from value when sending RCS messages via the Messages API.

hosting_region
string
Exigée
exempleNORTH_AMERICA

The geographic location where your RCS business messaging service will be hosted and operated. This can affect data residency and compliance requirements.

Il doit s'agir de l'un d'entre eux :NORTH_AMERICAEUROPEASIA_PACIFIC
agent_purpose
string
Exigée
exempleTRANSACTIONAL

Specifies the intended use of the RCS Agent. This cannot be changed after creation.

Il doit s'agir de l'un d'entre eux :PROMOTIONALTRANSACTIONALOTPMULTI_USE
billing_category
string
Exigée
exempleBASIC_MESSAGE

Specifies the pricing model applied to messages sent via this RCS Agent.

Il doit s'agir de l'un d'entre eux :BASIC_MESSAGESINGLE_MESSAGECONVERSATIONAL
notes
string
exempleThis agent is used for transactional messages only.

Additional notes or comments about the RCS Agent.

visual_design
object
brand_color
string
Exigée
exemple#8860CD

The hexadecimal color code for the primary color used in UI elements. The specified color must meet WCAG 2.1 contrast ratio of 4.5:1 for legibility.

email
object
Exigée
address
string
Exigée
exemplesupport@example.com

The contact email address for the RCS Agent.

label
string
Max25
exempleCustomer Support

A label for the email address.

phone
object
Exigée
number
string
Exigée
exemple+1234567890

End-user contact number in E.164 format.

label
string
Max25
exempleCustomer Support

A label for the phone number.

tagline
string
Exigée
Max100
exempleYour trusted partner in messaging.

A short phrase that represents the RCS Agent.

website
array
Exigée
address
string(uri)
Exigée
label
string
Max25
exempleCompany Website

A label for the website URL.

privacy_policy
string(uri)
exemplehttps://www.example.com/privacy-policy

The publicly accessible URL of the privacy policy for the RCS Agent.

terms_of_service
string(uri)
exemplehttps://www.example.com/terms-of-service

The publicly accessible URL of the terms of service for the RCS Agent.

representative
object
first_name
string
Exigée
Max200
exempleJohn

The first name of the representative for the RCS Agent.

last_name
string
Exigée
Max200
exempleDoe

The last name of the representative for the RCS Agent.

email
string(email)
Exigée
exemplejohn.doe@example.com

The email address of the representative.

brand_website
string(uri)
exemplehttps://www.example.com

The website URL of the brand represented by the RCS Agent.

carrier_requirements
object
agent_preview
object
Exigée
agent_access_instructions
string
Exigée
exempleProvide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. If you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. Test the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.

Agent access instructions specify how reviewers and testers can access and interact with your RBM agent during the review and testing phases before launch. This property provides guidance on methods for triggering agent functionality and testing various features.

urls
array
media_type
string
Exigée
exempleimage

The media type of the agent preview.

Il doit s'agir de l'un d'entre eux :imagevideo
url
string(uri)
exemplehttps://www.example.com/rcs-agent-preview.jpg

The URL to the agent preview.

points_of_contact
array
Exigée

A list of points of contact for the RCS Agent.

first_name
string
Exigée
Max200
exempleJane

The first name of the point of contact.

last_name
string
Exigée
Max200
exempleSmith

The last name of the point of contact.

email
string(email)
Exigée
exemplejane.smith@example.com

The email address of the point of contact.

job_title
string
Exigée
Max200
exempleTechnical Support

The job title of the point of contact.

traffic_estimates
object
Exigée

Traffic estimates for the RCS Agent.

average_global_traffic
string
Exigée
exempleTHOUSAND

Estimated global traffic.

Il doit s'agir de l'un d'entre eux :THOUSANDTEN_THOUSANDFIFTY_THOUSANDHUNDRED_THOUSANDMILLIONMILLION_AND_MORE
average_message_rate_per_user
string
Exigée
exempleONCE_PER_MONTH

Estimated message rate per user.

Il doit s'agir de l'un d'entre eux :ONCE_PER_MONTH2_4_TIMES_PER_MONTHONCE_PER_WEEK2_6_TIMES_PER_WEEKDAILYMULTIPLE_TIMES_PER_DAY
users_targeted
string
Exigée
exempleHUNDRED

Estimated number of users targeted.

Il doit s'agir de l'un d'entre eux :HUNDREDTHOUSANDTEN_THOUSANDHUNDRED_THOUSANDHALF_MILLIONMILLIONMILLION_AND_MORE
user_experience
object
Exigée
interactions_description
string
Exigée
Max10000
exempleThis agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. Secondary interactions may include promotional offers for existing customers and appointment scheduling assistance.

This field describes the primary and secondary types of interactions your RBM agent will have with users. It outlines the conversational patterns, message types, and engagement scenarios your agent supports.

optin_description
string
Exigée
Max10000
exempleThis is a test environment. Customers consent to receive messages directly via request, phone, or email. Users can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. Opt-in confirmation includes details about message frequency and content type.

Details how users will provide consent to receive messages from your RBM agent. This must clearly explain the opt-in mechanism and what users can expect when they subscribe to your messaging service.

optout_description
string
Exigée
Max10000
exempleCustomers can unsubscribe from receiving messages by replying 'STOP' to any message. They can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, and can re-subscribe at any time by replying 'START'.

Explains how users can unsubscribe from receiving messages from your agent. Must describe the process for users to stop receiving communications and how your system handles these requests.

trigger_description
string
Exigée
Max10000
exempleThis account is used exclusively for sending test messages to introduce RCS capabilities to customers. Triggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, and weekly promotional campaigns for opted-in users.

Defines the external events or conditions that will cause your RBM agent to initiate conversations with users. These triggers determine when and why your agent sends the first message to users.

Exemple Demande

{
   "application_settings": {
      "application_id": "78d335fa-323d-0114-9c3d-d6f0d48968cf"
   },
   "basic_info": {
      "brand_id": "0198095f-f18a-7f75-aa0a-59c3dfd68802",
      "display_name": "Example Co",
      "sender_id": "ExampleCo-RCSAgent-1",
      "hosting_region": "NORTH_AMERICA",
      "agent_purpose": "TRANSACTIONAL",
      "billing_category": "BASIC_MESSAGE",
      "notes": "This agent is used for transactional messages only."
   },
   "visual_design": {
      "brand_color": "#8860CD",
      "email": {
         "address": "support@example.com",
         "label": "Customer Support"
      },
      "phone": {
         "number": "+1234567890",
         "label": "Customer Support"
      },
      "tagline": "Your trusted partner in messaging.",
      "website": {
         "address": "https://www.example.com"
      },
      "privacy_policy": "https://www.example.com/privacy-policy",
      "terms_of_service": "https://www.example.com/terms-of-service"
   },
   "representative": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.doe@example.com",
      "brand_website": "https://www.example.com"
   },
   "carrier_requirements": {
      "agent_preview": {
         "agent_access_instructions": "Provide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. \nIf you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. \nTest the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.\n",
         "urls": [
            {
               "media_type": "image",
               "url": "https://www.example.com/rcs-agent-preview.jpg"
            }
         ]
      },
      "points_of_contact": [
         {
            "first_name": "Jane",
            "last_name": "Smith",
            "email": "jane.smith@example.com",
            "job_title": "Technical Support"
         }
      ],
      "traffic_estimates": {
         "average_global_traffic": "THOUSAND",
         "average_message_rate_per_user": "ONCE_PER_MONTH",
         "users_targeted": "HUNDRED"
      },
      "user_experience": {
         "interactions_description": "This agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. \nSecondary interactions may include promotional offers for existing customers and appointment scheduling assistance.\n",
         "optin_description": "This is a test environment. Customers consent to receive messages directly via request, phone, or email. \nUsers can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. \nOpt-in confirmation includes details about message frequency and content type.\n",
         "optout_description": "Customers can unsubscribe from receiving messages by replying 'STOP' to any message. \nThey can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, \nand can re-subscribe at any time by replying 'START'.\n",
         "trigger_description": "This account is used exclusively for sending test messages to introduce RCS capabilities to customers. \nTriggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, \nand weekly promotional campaigns for opted-in users.\n"
      }
   }
}

Réponses
Type de contenu
application/json

Accepted

id
string(uuid)
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The unique ID of the created RCS Agent.

state
string
exempleDRAFT

The current state of the created RCS Agent.

basic_info
object
Exigée
brand_id
string
Exigée
exemple0198095f-f18a-7f75-aa0a-59c3dfd68802

The id of the RCS Brand with which to associate this agent.

display_name
string
Exigée
exempleExample Co

The unique display name of the RCS Agent.

sender_id
string
Exigée
exempleExampleCo-RCSAgent-1

A unique sender identifier on the Vonage platform. This cannot be blank, include whitespaces, or be changed after creation. The sender ID is used as the from value when sending RCS messages via the Messages API.

hosting_region
string
Exigée
exempleNORTH_AMERICA

The geographic location where your RCS business messaging service will be hosted and operated. This can affect data residency and compliance requirements.

Il doit s'agir de l'un d'entre eux :NORTH_AMERICAEUROPEASIA_PACIFIC
agent_purpose
string
Exigée
exempleTRANSACTIONAL

Specifies the intended use of the RCS Agent. This cannot be changed after creation.

Il doit s'agir de l'un d'entre eux :PROMOTIONALTRANSACTIONALOTPMULTI_USE
billing_category
string
Exigée
exempleBASIC_MESSAGE

Specifies the pricing model applied to messages sent via this RCS Agent.

Il doit s'agir de l'un d'entre eux :BASIC_MESSAGESINGLE_MESSAGECONVERSATIONAL
notes
string
exempleThis agent is used for transactional messages only.

Additional notes or comments about the RCS Agent.

visual_design
object
brand_color
string
Exigée
exemple#8860CD

The hexadecimal color code for the primary color used in UI elements. The specified color must meet WCAG 2.1 contrast ratio of 4.5:1 for legibility.

email
object
Exigée
address
string
Exigée
exemplesupport@example.com

The contact email address for the RCS Agent.

label
string
Max25
exempleCustomer Support

A label for the email address.

phone
object
Exigée
number
string
Exigée
exemple+1234567890

End-user contact number in E.164 format.

label
string
Max25
exempleCustomer Support

A label for the phone number.

tagline
string
Exigée
Max100
exempleYour trusted partner in messaging.

A short phrase that represents the RCS Agent.

website
array
Exigée
address
string(uri)
Exigée
label
string
Max25
exempleCompany Website

A label for the website URL.

privacy_policy
string(uri)
exemplehttps://www.example.com/privacy-policy

The publicly accessible URL of the privacy policy for the RCS Agent.

terms_of_service
string(uri)
exemplehttps://www.example.com/terms-of-service

The publicly accessible URL of the terms of service for the RCS Agent.

application_settings
object
application_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the Vonage application with which to associate this agent.

representative
object
first_name
string
Exigée
Max200
exempleJohn

The first name of the representative for the RCS Agent.

last_name
string
Exigée
Max200
exempleDoe

The last name of the representative for the RCS Agent.

email
string(email)
Exigée
exemplejohn.doe@example.com

The email address of the representative.

brand_website
string(uri)
exemplehttps://www.example.com

The website URL of the brand represented by the RCS Agent.

carrier_requirements
object
agent_preview
object
Exigée
agent_access_instructions
string
Exigée
exempleProvide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. If you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. Test the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.

Agent access instructions specify how reviewers and testers can access and interact with your RBM agent during the review and testing phases before launch. This property provides guidance on methods for triggering agent functionality and testing various features.

urls
array
media_type
string
Exigée
exempleimage

The media type of the agent preview.

Il doit s'agir de l'un d'entre eux :imagevideo
url
string(uri)
exemplehttps://www.example.com/rcs-agent-preview.jpg

The URL to the agent preview.

points_of_contact
array
Exigée

A list of points of contact for the RCS Agent.

first_name
string
Exigée
Max200
exempleJane

The first name of the point of contact.

last_name
string
Exigée
Max200
exempleSmith

The last name of the point of contact.

email
string(email)
Exigée
exemplejane.smith@example.com

The email address of the point of contact.

job_title
string
Exigée
Max200
exempleTechnical Support

The job title of the point of contact.

traffic_estimates
object
Exigée

Traffic estimates for the RCS Agent.

average_global_traffic
string
Exigée
exempleTHOUSAND

Estimated global traffic.

Il doit s'agir de l'un d'entre eux :THOUSANDTEN_THOUSANDFIFTY_THOUSANDHUNDRED_THOUSANDMILLIONMILLION_AND_MORE
average_message_rate_per_user
string
Exigée
exempleONCE_PER_MONTH

Estimated message rate per user.

Il doit s'agir de l'un d'entre eux :ONCE_PER_MONTH2_4_TIMES_PER_MONTHONCE_PER_WEEK2_6_TIMES_PER_WEEKDAILYMULTIPLE_TIMES_PER_DAY
users_targeted
string
Exigée
exempleHUNDRED

Estimated number of users targeted.

Il doit s'agir de l'un d'entre eux :HUNDREDTHOUSANDTEN_THOUSANDHUNDRED_THOUSANDHALF_MILLIONMILLIONMILLION_AND_MORE
user_experience
object
Exigée
interactions_description
string
Exigée
Max10000
exempleThis agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. Secondary interactions may include promotional offers for existing customers and appointment scheduling assistance.

This field describes the primary and secondary types of interactions your RBM agent will have with users. It outlines the conversational patterns, message types, and engagement scenarios your agent supports.

optin_description
string
Exigée
Max10000
exempleThis is a test environment. Customers consent to receive messages directly via request, phone, or email. Users can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. Opt-in confirmation includes details about message frequency and content type.

Details how users will provide consent to receive messages from your RBM agent. This must clearly explain the opt-in mechanism and what users can expect when they subscribe to your messaging service.

optout_description
string
Exigée
Max10000
exempleCustomers can unsubscribe from receiving messages by replying 'STOP' to any message. They can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, and can re-subscribe at any time by replying 'START'.

Explains how users can unsubscribe from receiving messages from your agent. Must describe the process for users to stop receiving communications and how your system handles these requests.

trigger_description
string
Exigée
Max10000
exempleThis account is used exclusively for sending test messages to introduce RCS capabilities to customers. Triggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, and weekly promotional campaigns for opted-in users.

Defines the external events or conditions that will cause your RBM agent to initiate conversations with users. These triggers determine when and why your agent sends the first message to users.

created_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent was created.

updated_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent was last updated.

test_devices
array
id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the test device.

phone
string
Exigée
exemple+1234567890

The phone number of the test device in E.164 format.

status
string
Exigée
exempleACCEPTED

The current status of the test device.

created_at
string(date-time)
Exigée
exemple2023-01-01T12:00:00Z

The date and time when the test device was created.

carriers
object
id
string
Exigée
exempleatt-us

The id of the carrier.

launch_state
string
exempleLAUNCH_STATE_UNLAUNCHED

The launch state of the carrier.

Il doit s'agir de l'un d'entre eux :LAUNCH_STATE_UNSPECIFIEDLAUNCH_STATE_UNLAUNCHEDLAUNCH_STATE_PENDINGLAUNCH_STATE_LAUNCHEDLAUNCH_STATE_REJECTEDLAUNCH_STATE_SUSPENDEDLAUNCH_STATE_PENDING_UNLAUNCHLAUNCH_STATE_INVALID_IN_GMB
verification_details
object
status
string
exempleVERIFICATION_STATE_UNVERIFIED

The verification status of the RCS Agent.

launch_submitted_at
string(date-time)
exemple2023-01-01T12:00:00Z

The date and time when the RCS Agent launch was submitted.

Exemple Réponse

{
   "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
   "state": "DRAFT",
   "basic_info": {
      "brand_id": "0198095f-f18a-7f75-aa0a-59c3dfd68802",
      "display_name": "Example Co",
      "sender_id": "ExampleCo-RCSAgent-1",
      "hosting_region": "NORTH_AMERICA",
      "agent_purpose": "TRANSACTIONAL",
      "billing_category": "BASIC_MESSAGE",
      "notes": "This agent is used for transactional messages only."
   },
   "visual_design": {
      "brand_color": "#8860CD",
      "email": {
         "address": "support@example.com",
         "label": "Customer Support"
      },
      "phone": {
         "number": "+1234567890",
         "label": "Customer Support"
      },
      "tagline": "Your trusted partner in messaging.",
      "website": {
         "address": "https://www.example.com"
      },
      "privacy_policy": "https://www.example.com/privacy-policy",
      "terms_of_service": "https://www.example.com/terms-of-service"
   },
   "application_settings": {
      "application_id": "78d335fa-323d-0114-9c3d-d6f0d48968cf"
   },
   "representative": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.doe@example.com",
      "brand_website": "https://www.example.com"
   },
   "carrier_requirements": {
      "agent_preview": {
         "agent_access_instructions": "Provide a method for reviewers to trigger the agent, such as a website where reviewers can invite and add phone numbers. \nIf you need a list of phone numbers to add as test devices, contact rbm-support@vonage.com. \nTest the agent by sending a keyword like 'HELP' or 'START' to initiate conversation flow.\n",
         "urls": [
            {
               "media_type": "image",
               "url": "https://www.example.com/rcs-agent-preview.jpg"
            }
         ]
      },
      "points_of_contact": [
         {
            "first_name": "Jane",
            "last_name": "Smith",
            "email": "jane.smith@example.com",
            "job_title": "Technical Support"
         }
      ],
      "traffic_estimates": {
         "average_global_traffic": "THOUSAND",
         "average_message_rate_per_user": "ONCE_PER_MONTH",
         "users_targeted": "HUNDRED"
      },
      "user_experience": {
         "interactions_description": "This agent handles customer support inquiries and provides product information. Primary interactions include order status updates, account notifications, and FAQ responses. \nSecondary interactions may include promotional offers for existing customers and appointment scheduling assistance.\n",
         "optin_description": "This is a test environment. Customers consent to receive messages directly via request, phone, or email. \nUsers can opt-in by visiting our website and providing their phone number, or by texting 'JOIN' to our SMS shortcode. \nOpt-in confirmation includes details about message frequency and content type.\n",
         "optout_description": "Customers can unsubscribe from receiving messages by replying 'STOP' to any message. \nThey can also contact us by email at support@company.com. Users will receive a confirmation message when successfully unsubscribed, \nand can re-subscribe at any time by replying 'START'.\n",
         "trigger_description": "This account is used exclusively for sending test messages to introduce RCS capabilities to customers. \nTriggers include: order placement confirmations, shipping notifications, appointment reminders, customer service escalations, \nand weekly promotional campaigns for opted-in users.\n"
      }
   },
   "created_at": "2023-01-01T12:00:00Z",
   "updated_at": "2023-01-01T12:00:00Z",
   "test_devices": [
      {
         "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
         "phone": "+1234567890",
         "status": "ACCEPTED",
         "created_at": "2023-01-01T12:00:00Z"
      }
   ],
   "carriers": {
      "id": "att-us",
      "launch_state": "LAUNCH_STATE_UNLAUNCHED"
   },
   "verification_details": {
      "status": "VERIFICATION_STATE_UNVERIFIED"
   },
   "launch_submitted_at": "2023-01-01T12:00:00Z"
}

Get Carriers

Retrieve a list of available carriers for RCS.

gethttps://api.nexmo.com/v1/channel-manager/rcs/metadata/carriers

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Réponses
Type de contenu
application/json

OK

carriers
array
Exigée

A list of available carriers for RCS.

id
string
exempleverizon-us

A unique identifier for the carrier.

carrier
string
exempleVerizon

The name of the carrier.

country_letter_code
string
exempleUS

Code for the country where the carrier operates.

Exemple Réponse

{
   "carriers": [
      {
         "id": "verizon-us",
         "carrier": "Verizon",
         "country_letter_code": "US"
      }
   ]
}

Add Carriers to Agent

Add carriers to an existing RCS Agent.

posthttps://api.nexmo.com/v1/channel-manager/rcs/agents/:agent_id/carriers

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

agent_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The agent_id of the RCS Agent to which to add carriers.

Corps de la demande
Type de contenu
application/json

carriers
array
Exigée

An array of Carrier IDs to add to the RCS Agent.

Exemple Demande

{
   "carriers": [
      "verizon-us"
   ]
}

Réponses
Type de contenu
application/json

Accepted

message
string
Exigée
exempleCarriers accepted for processing

Exemple Réponse

{
   "message": "Carriers accepted for processing"
}

Add Test Devices to Agent

Add test devices to an existing RCS Agent.

posthttps://api.nexmo.com/v1/channel-manager/rcs/agents/:agent_id/test-devices

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

agent_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The agent_id of the RCS Agent to which to add test devices.

Corps de la demande
Type de contenu
application/json

phone
string
Exigée
exemple+14155552671

The phone number to add to the RCS Agent in E.164 format.

Exemple Demande

{
   "phone": "+14155552671"
}

Réponses
Type de contenu
application/json

Accepted

id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The unique ID of the created test device.

phone
string
Exigée
exemple+14155552671

The phone number to add to the RCS Agent in E.164 format.

created_at
string(date-time)
Exigée
exemple2023-01-01T12:00:00Z

The date and time when the test device was created.

status
string
Exigée
exempleACCEPTED

The current status of the test device.

Exemple Réponse

{
   "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
   "phone": "+14155552671",
   "created_at": "2023-01-01T12:00:00Z",
   "status": "ACCEPTED"
}

Remove Test Device from Agent

Remove a test device from an existing RCS Agent.

deletehttps://api.nexmo.com/v1/channel-manager/rcs/agents/:agent_id/test-devices/:test_device_id

Authentification

CléDescriptionExemple
Authorization

Clé et secret de l'API encodés en Base64 et reliés par deux points.
En savoir plus

Headers

Basic <base64>

Trajectoire Paramètres

agent_id
string
Exigée
exemple78d335fa-323d-0114-9c3d-d6f0d48968cf

The id of the RCS Agent from which to remove the test device.

test_device_id
string
Exigée
exemple019809ba-a274-7bd2-aea0-f1f70f2210dc

The id of the test device to remove.

Réponses

No Content