Server SDKs
Build AI agents, control calls, send messages, and more
Create a new LAML bin containing a cXML/LaML script.
format: "uuid"
>=1 character
format: "uri"
1{2 "sid": "5184b831-184f-4209-872d-ccdccc80f2f1",3 "date_created": "2019-11-26T20:00:00Z",4 "date_updated": "2019-11-26T20:00:00Z",5 "date_last_accessed": "2020-06-05T20:00:00Z",6 "account_sid": "b3877c40-da60-4998-90ad-b792e98472af",7 "name": "Death Star IVR",8 "contents": "<Response><Say>Hello!</Say></Response>",9 "request_url": "https://example.signalwire.com/laml-bins/5184b831-184f-4209-872d-ccdccc80f2f1",10 "num_requests": 42,11 "api_version": "2010-04-01",12 "uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/LamlBins/5184b831-184f-4209-872d-ccdccc80f2f1"13}
1import { RestClient } from "@signalwire/sdk";23const client = new RestClient({4 project: "your-project-id",5 token: "your-api-token",6 host: "your-space.signalwire.com",7});89const lamlBin = await client.compat.lamlBins.create({10 Name: "Greeting",11 Contents:12 '<?xml version="1.0" encoding="UTF-8"?>' +13 "<Response><Say>Hello!</Say></Response>",14});