POST
/
generativeagent
/
v1
/
call-transfers
Create Call Transfer
curl --request POST \
  --url https://api.sandbox.asapp.com/generativeagent/v1/call-transfers \
  --header 'Content-Type: application/json' \
  --header 'asapp-api-id: <api-key>' \
  --header 'asapp-api-secret: <api-key>' \
  --data '{
  "id": "0867617078-0032318833-2221801472-0002236962",
  "externalConversationId": "0867617078-0032318833-2221801472-0002236962",
  "type": "PHONE_NUMBER",
  "phoneNumber": {
    "country": "US"
  },
  "inputContext": {
    "taskName": "Welcome",
    "inputVariables": {
      "email": "example@gmail.com",
      "name": "name"
    }
  }
}'
{
  "id": "0867617078-0032318833-2221801472-0002236962",
  "externalConversationId": "0867617078-0032318833-2221801472-0002236962",
  "type": "PHONE_NUMBER",
  "phoneNumber": {
    "transferNumber": "+19995550199",
    "country": "US",
    "expiresAt": "2024-06-01T12:34:56Z"
  },
  "inputContext": {
    "taskName": "Welcome",
    "inputVariables": {
      "email": "example@gmail.com",
      "name": "name"
    }
  }
}

Authorizations

asapp-api-id
string
header
required
asapp-api-secret
string
header
required

Body

application/json

Post Call Transfer Request with Phone Number

Response

200
application/json

Successful response

Post Call Transfer Response with Phone Number