Search

Create Service

Last Updated: Nov 4, 2020

Articles

Use this function to create a chat service in the twilio application.

Syntax

Create Service (token, account_sid, friendly_name)

Parameters

Input Parameter Name Description
token Used for authentication
account_sid Used for authentication
friendly_name Contact name of the verified caller

Returns

Return Value Description
Output
  • On Success: 1, Service ID
  • On Failure: 0, Error Message

Sample

Create Service (ABCDCEF, NC-45, New Service)

  • Uses the token ‘ABCDCEF’ and the account_sid ‘NC-45’ to authenticate the connection to the Twilio application, creates a service with name ‘New Service’.
    Returns the ‘Service ID’ of the created service.

To view all the Twilio functions, click here.

Did you find what you were looking for?