Skip to main content

Create a Call

POST 

https://{Your_Space_Name}.signalwire.com/api/calling/calls

To create a new Call, you send a POST request to the Call resource with a payload including a dial command and additional nested params.

Request

Responses

The request has succeeded and a new resource has been created as a result.

Authorization: http

name: BasicAuthtype: httpscheme: basic
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://{Your_Space_Name}.signalwire.com/api/calling/calls");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"command\": \"dial\",\n \"params\": {\n \"from\": \"sip:from-sip@example-112233445566.sip.signalwire.com\",\n \"to\": \"sip:from-sip@example-112233445567.sip.signalwire.com\",\n \"caller_id\": \"+1234567890\",\n \"fallback_url\": \"https://example.com/fallback\",\n \"url\": \"https://example.com/swml\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://{Your_Space_Name}.signalwire.com/api/calling
Auth
Body required
{
  "command": "dial",
  "params": {
    "from": "sip:from-sip@example-112233445566.sip.signalwire.com",
    "to": "sip:from-sip@example-112233445567.sip.signalwire.com",
    "caller_id": "+1234567890",
    "fallback_url": "https://example.com/fallback",
    "url": "https://example.com/swml"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!