Skip to main content

Endpoint

GET https://api.graine.cloud/v1/Accounts/{AccountSid}/Calls/{CallSid} Reference: REST Call Control — Get Call

Path parameters

ParameterTypeRequiredDescription
AccountSidstringYesAccount SID
CallSidstringYesCall SID

Headers

HeaderRequiredDescription
AuthorizationYesBearer token

Response

200 — Call found
PropertyTypeDescription
account_sidstring (uuid)Account SID
application_sidstring (uuid)Application SID
call_idstringCall ID
call_sidstring (uuid)Call SID
call_statusstringOne of: trying, ringing, alerting, in-progress, completed, busy, no-answer, failed, queued
caller_namestringCaller name
directionstringinbound or outbound
durationintegerCall duration
fromstringCalling party
originating_sip_trunk_namestringTrunk that received/originated the call
parent_call_sidstring (uuid)Parent call SID if applicable
service_urlstringService URL
sip_statusintegerSIP status
tostringCalled party
404 — Call not found
500 — System error (response may include msg in body)

Example

import requests

url = "https://api.graine.cloud/v1/Accounts/AccountSid/Calls/CallSid"
headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)
print(response.json())
const url = 'https://api.graine.cloud/v1/Accounts/AccountSid/Calls/CallSid';
const options = { method: 'GET', headers: { Authorization: 'Bearer <token>' } };

const response = await fetch(url, options);
const data = await response.json();
console.log(data);