End a Call
POST /calls/end/
Use the POST /calls/end/
endpoint to terminate an active call session. Simply provide the unique room_id
to close the call between the car owner and the mechanic.
Parameters
Name
Type
Description
room_id*
string
Unique ID of the call room (Required)
Example Request:
curl -X POST "https://requestnowmechanic.com/v1/calls/end/" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"room_id": "room123"
}'
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer {access_token}
Response
Status Code: 201 Created
Description: The call session was successfully ended.
Response Fields:
Field
Type
Description
room_id
string
Confirms the ID of the room that was ended.
message
string
Provides a success message.
Example Response:
{
"message": "Call ended successfully",
"room_id": "room123"
}
Error Response
Status Code:
400 Bad Request
or401 Unauthorized
Last updated