Path parameters
-
The SID of the parent Service of the resource to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^KS[0-9a-fA-F]{32}$
. -
The Twilio-provided string that uniquely identifies the Session resource to fetch.
GET
/v1/Services/{ServiceSid}/Sessions/{Sid}
curl \
--request GET 'https://proxy.twilio.com/v1/Services/{ServiceSid}/Sessions/{Sid}' \
--user "username:password"
Response examples (200)
{
"sid": "KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"ttl": 3600,
"url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sessions/KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"mode": "voice-and-message",
"links": {
"interactions": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sessions/KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Interactions",
"participants": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Sessions/KCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants"
},
"status": "open",
"date_ended": "2015-07-30T20:00:00Z",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_expiry": "2015-07-30T20:00:00Z",
"service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"unique_name": "Order #1234",
"date_created": "2015-07-30T20:00:00Z",
"date_started": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"closed_reason": "",
"date_last_interaction": "2015-07-30T20:00:00Z"
}