POST
/
init
curl --request POST \
  --url https://api.tryvox.co/functions/v1/init \
  --header 'Content-Type: application/json' \
  --data '{
  "call_from": "<string>",
  "call_to": "<string>"
}'
{
  "result": {
    "name": "<string>",
    "bod": "2023-12-25",
    "email": "jsmith@example.com",
    "call_from": "<string>",
    "call_to": "<string>",
    "timestamp": "2023-11-07T05:31:56Z"
  }
}

발신 번호를 바탕으로 유저의 정보를 조회하는 엔드포인트입니다. 통화가 시작될 때 호출되며, 발신자의 기본 정보를 반환합니다.

이 엔드포인트는 테스트 목적으로 약 10%의 확률로 오류 응답을 반환합니다. 에이전트가 이러한 예외 상황을 원활하게 처리할 수 있도록 구현해주세요.

Body

application/json
발신 번호와 수신 번호를 포함하는 JSON 페이로드
call_from
string
required

발신 번호

call_to
string
required

수신 번호

Response

200
application/json
유저 정보 조회 성공
result
object