Creates an app integration SMS
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.
YOUR_AUTH_KEY
Provides a data transfer object for the SMS integration which is used for command requests.
The app integration provider ID of the SMS.
The name of the SMS integration.
The username or identifier for the SMS integration. For Twilio, this is the Account SID (String Identifier).
The password or authentication token for the SMS integration. For Twilio, this is the Auth Token.
The phone number of the SMS integration. The phone number should be following the E.164 format.
The description of the SMS integration.
This enum is used to define the common status of an object in JFW.
Supported values:
Flag to indicate if the app integration SMS setting is default. By default, it is false.
The request was successful.
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
The user's access was denied.
API call exceeded rate limit due to too many requests.
POST /api/v1/app-integrations/sms HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 156
{
"appIntegrationId": "text",
"name": "text",
"username": "text",
"password": "text",
"phoneNumber": "text",
"description": "text",
"status": "Inactive",
"isDefault": true
}
{
"success": true,
"statusCode": 201,
"message": "The request was successful.",
"data": {
"appIntegration": {
"type": "PaymentGateway",
"name": "Stripe",
"domain": "https://stripe.com",
"description": "Stripe payment gateway",
"logoURL": null,
"status": "Active",
"id": "sApKpllz4sAplsmzha"
},
"name": "SMS Integration",
"username": "smsuser",
"password": "smspassword",
"phoneNumber": "+1234567890",
"description": "This is an example SMS integration",
"status": "Active",
"isDefault": true,
"id": "sApKpllz4sAplsmzha"
},
"errors": []
}
Last updated
Was this helpful?