Create External LAML Handler
POST/resources/external_laml_handlers
Creates an External LAML Handler
Request
- application/json
Body
required
Name of the External LAML Handler.
My External LAML Handler
Used for of the External LAML Handler.
Possible values: [calling
, messaging
]
calling
calling
Primary request url of the External LAML Handler.
https://primary.com
Primary request method of the External LAML Handler.
Possible values: [GET
, POST
]
POST
GET
Fallback request url of the External LAML Handler.
https://fallback.com
Fallback request method of the External LAML Handler.
Possible values: [GET
, POST
]
POST
GET
Status callback url of the External LAML Handler.
https://callback.com
Status callback method of the External LAML Handler.
Possible values: [GET
, POST
]
POST
POST
Responses
- 201
- 401
- 404
- 422
The request has succeeded and a new resource has been created as a result.
- application/json
- Schema
- Example (from schema)
Schema
Universal Unique Identifier.
Name of the External LAML Handler.
My External LAML Handler
Sets the handler to handle incomming calls
or messages
.
Possible values: [calling
, messaging
]
Primary request url of the External LAML Handler.
https://primary.com
The method type to use for the URL
Possible values: [GET
, POST
]
Fallback request url of the External LAML Handler.
https://fallback.com
The method type to use for the URL
Possible values: [GET
, POST
]
Status callback url of the External LAML Handler.
https://callback.com
The method type to use for the URL
Possible values: [GET
, POST
]
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "My External LAML Handler",
"used_for": "calling",
"primary_request_url": "https://primary.com",
"primary_request_method": "GET",
"fallback_request_url": "https://fallback.com",
"fallback_request_method": "GET",
"status_callback_url": "https://callback.com",
"status_callback_method": "GET"
}
Access is unauthorized.
- application/json
- Schema
Schema
string
Possible values: [Unauthorized
]
The server cannot find the requested resource.
- application/json
- Schema
Schema
string
Possible values: [Not Found
]
Client error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
required
Error type.
Error code.
Error details.
Request parameter associated with this error.
Link to developer resource for this error.
{
"errors": [
{
"type": "validation_error",
"code": "http_url_required",
"message": "This value must be an HTTP or HTTPS URL.",
"attribute": "status_callback_url",
"url": "https://developer.signalwire.com/rest/signalwire-rest/overview/error-codes/#http_url_required"
}
]
}