Initiate a Call
POST /calls/initiate/
Use the POST /calls/initiate/
endpoint to start a new call session between a car owner and a mechanic. The mechanic_id
identifies the mechanic to connect with, while the room_id
uniquely defines the call session.
Request Body Parameters: The request body must include the following fields in JSON format:
Field
Type
Required
Description
mechanic_id
string
Yes
The unique ID of the mechanic.
room_id
string
Yes
The unique ID for the call session.
Example Request:
curl -X POST "https://requestnowmechanic.com/v1/calls/initiate/" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"mechanic_id": "12345",
"room_id": "room_abc123"
}'
Successful Response:
Status Code:
201 Created
Description: The call session was successfully initiated.
Response Body Example:
{ "mechanic_id": "12345", "room_id": "room_abc123" }
Last updated