@@ -107,13 +107,13 @@ service GateService {
107107 */
108108 // Get Agent status - retrieves the current state of an agent
109109 rpc GetAgentStatus (GetAgentStatusRequest ) returns (GetAgentStatusResponse ) {
110- option (google.api.http ) = {get : "/tcnapi/exile/gate/v2/agent_status " };
110+ option (google.api.http ) = {get : "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/status " };
111111 }
112112
113113 // Update Agent status - modifies an agent's availability state
114114 rpc UpdateAgentStatus (UpdateAgentStatusRequest ) returns (UpdateAgentStatusResponse ) {
115115 option (google.api.http ) = {
116- post : "/tcnapi/exile/gate/v2/update_agent_status"
116+ post : "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/ update_agent_status"
117117 body : "*"
118118 };
119119 }
@@ -126,26 +126,26 @@ service GateService {
126126 // Agent management - creates or updates agent information
127127 rpc UpsertAgent (UpsertAgentRequest ) returns (UpsertAgentResponse ) {
128128 option (google.api.http ) = {
129- post : "/tcnapi/exile/gate/v2/upsert_agent"
129+ post : "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/ upsert_agent"
130130 body : "*"
131131 };
132132 }
133133
134134 // Get Agent by ID - retrieves agent details using internal ID
135135 rpc GetAgentById (GetAgentByIdRequest ) returns (GetAgentByIdResponse ) {
136- option (google.api.http ) = {get : "/tcnapi/exile/gate/v2/agent_by_id " };
136+ option (google.api.http ) = {get : "/tcnapi/exile/gate/v2/agents/users/{user_id} " };
137137 }
138138
139139 // Get Agent by Partner ID - retrieves agent details using partner's ID system
140140 rpc GetAgentByPartnerId (GetAgentByPartnerIdRequest ) returns (GetAgentByPartnerIdResponse ) {
141- option (google.api.http ) = {get : "/tcnapi/exile/gate/v2/agent_by_partner_id " };
141+ option (google.api.http ) = {get : "/tcnapi/exile/gate/v2/agents/{partner_agent_id} " };
142142 }
143143
144144 // Add Agent Call Response - adds a response to an agent call that will be sent back with the
145145 // telephony result,
146146 rpc AddAgentCallResponse (AddAgentCallResponseRequest ) returns (AddAgentCallResponseResponse ) {
147147 option (google.api.http ) = {
148- post : "/tcnapi/exile/gate/v2/add_agent_call_response"
148+ post : "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/ add_agent_call_response"
149149 body : "*"
150150 };
151151 }
@@ -158,14 +158,14 @@ service GateService {
158158 // Put Call On Simple Hold - puts a call on simple hold
159159 rpc PutCallOnSimpleHold (PutCallOnSimpleHoldRequest ) returns (PutCallOnSimpleHoldResponse ) {
160160 option (google.api.http ) = {
161- post : "/tcnapi/exile/gate/v2/put_call_on_simple_hold"
161+ post : "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/ put_call_on_simple_hold"
162162 body : "*"
163163 };
164164 }
165165
166166 rpc TakeCallOffSimpleHold (TakeCallOffSimpleHoldRequest ) returns (TakeCallOffSimpleHoldResponse ) {
167167 option (google.api.http ) = {
168- post : "/tcnapi/exile/gate/v2/take_call_off_simple_hold"
168+ post : "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/ take_call_off_simple_hold"
169169 body : "*"
170170 };
171171 }
@@ -176,29 +176,29 @@ service GateService {
176176 // Dial a phone number - initiates an outbound call
177177 rpc Dial (DialRequest ) returns (DialResponse ) {
178178 option (google.api.http ) = {
179- post : "/tcnapi/exile/gate/v2/dial"
179+ post : "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/ dial"
180180 body : "*"
181181 };
182182 }
183183 // Start recording a call
184184 rpc StartCallRecording (StartCallRecordingRequest ) returns (StartCallRecordingResponse ) {
185185 option (google.api.http ) = {
186- post : "/tcnapi/exile/gate/v2/start_call_recording"
186+ post : "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/ start_call_recording"
187187 body : "*"
188188 };
189189 }
190190
191191 // Stop recording a call
192192 rpc StopCallRecording (StopCallRecordingRequest ) returns (StopCallRecordingResponse ) {
193193 option (google.api.http ) = {
194- post : "/tcnapi/exile/gate/v2/stop_call_recording"
194+ post : "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/ stop_call_recording"
195195 body : "*"
196196 };
197197 }
198198
199199 // Get recording status - checks if a call is currently being recorded
200200 rpc GetRecordingStatus (GetRecordingStatusRequest ) returns (GetRecordingStatusResponse ) {
201- option (google.api.http ) = {get : "/tcnapi/exile/gate/v2/get_recording_status" };
201+ option (google.api.http ) = {get : "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/ get_recording_status" };
202202 }
203203
204204 /**
0 commit comments