URL: https://api.stringee.com/v1/call2/adduser
HTTP method: POST
Custom HTTP POST header: Name: X-STRINGEE-AUTH Value: JSON web token (JWT), see REST API Authentication
POST data (body):
{
"callId": "YOUR_CALL_ID",
"from": {
"type": "external",
"number": "from_number",
"alias": "from_number"
},
"to": {
"type": "TO_TYPE",
"number": "TO_NUMBER",
"alias": "TO_NUMBER_ALIAS"
},
"spyCall": false,
}
Field | Type | Require | Description | Default |
---|---|---|---|---|
callId | String | Yes | The ID of the Call | |
from | JsonObject | Yes | JSON data which specify where's the call from | |
to | JsonObject | Yes | JSON data which specify where's the call to | |
spyCall | Boolean | No | If true, user can't speak. | False |
Response:
{
"r": response_code,
"message": "response_message"
}
Field | Type | Require | Description |
---|---|---|---|
r | Int | Yes | Response code |
message | String | No | Response message |
Sample request
POST /v1/call2/adduser HTTP/1.1
Host: https://api.stringee.com
X-STRINGEE-AUTH: json_web_token
Accept: application/json
{
"callId": "call-vn-1-KVN96USEG7-1537850722550",
"from": {
"type": "external",
"number": "STRINGEE_NUMBER",
"alias": "STRINGEE_NUMBER"
},
"to": {
"type": "internal",
"number": "userid1",
"alias": "userid1"
},
}
Sample response
{"r":0}