Getting agent details
This resource returns details related to the specified agent, most commonly used to get the GUID of the current or previous call.
Request Scheme
HTTPS
Request URI
GET v{v#}/{accountKey}/agents/{agentId}
This header requires an OAuth bearer token. For information on the bearer token, see How to use your bearer access token. application/json Indicates that the media type required from the server is JavaScript Object Notation (JSON)Request Headers
Authorization (required)
Accept (required)
Examples
Most URLs in the example code use the following values:Region URL subdomain Base URL EMEA emea https://emea.cc.vonage.com USA nam https://nam.cc.vonage.com APAC apac https://apac.cc.vonage.com
Determine the call GUID for agent 462's previous call
curl -X GET "https://***.newvoicemedia.com/v0/a1b2c3d4e5/agents/462" -H "Authorization: Bearer <ACCESS_TOKEN>" -H "Accept: application/json"
Determine the call GUID for agent 462's current call
curl -X GET "https://***.newvoicemedia.com/v0/a1b2c3d4e5/agents/462" -H "Authorization: Bearer <ACCESS_TOKEN>" -H "Accept: application/json"
Example: Successful response
Most URLs in the example code use the following values:Region URL subdomain Base URL EMEA emea https://emea.cc.vonage.com USA nam https://nam.cc.vonage.com APAC apac https://apac.cc.vonage.com
Returns HTTP Status Code 200 OK.
{
id: "462"
links: [
{
href: https://***.newvoicemedia.com/V0/a1b2c3d4e5/Agents/462
rel: "_self"
}
{
href: https://***.newvoicemedia.com/V0/a1b2c3d4e5/Calls/01461e37-deb9-b2bf-240d-032be5fe917e
rel: "currentCall"
}
]
currentCallGuid: "01461e37-deb9-b2bf-240d-032be5fe917e"
}