carrier and url. The name must not be a builtin carrier (bandwidth, onvoy, inteliquent, messagemedia, impact, brightlink, thinq, voipinno, and teli), twillio, nullResponseFields, or an existing custom carrier. Fields the carrier record does not have, and the read-only type, enabled, mms-capable, and group-mms-capable, are ignored, as is a masked auth copied from a read. So a row from GET /smscarriers can be sent back as it is.auth, or, for a carrier that takes it in the body, in custom-outbound-json-fields. Both read back masked. A masked value in custom-outbound-json-fields is refused with 400: send the real value.Authorization: Bearer ********************curl --location 'https://awqacore01.crexendocloud.com/ns-api/v2/smscarriers' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"carrier": "acme-sms",
"url": "https://sms.example.com/v1/messages",
"auth": "{{carrier_api_key}}",
"auth-type": "Bearer Token",
"inbound-to": "to",
"inbound-from": "from",
"inbound-text": "text",
"outbound-to": "to",
"outbound-from": "from",
"outbound-text": "text",
"json-encode": true,
"content-type": "application/json",
"outbound-include-auth-header": true,
"set-http-header": true
}'{
"code": 202,
"message": "Accepted"
}