Skip to main content
curl --location --request POST "https://api.trestleiq.com/1.0/phone_feedback" \
  --header "x-api-key: YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "response_id": "T_b5d031b8-e8a3-4eef-8fa8-d87d3b7e386f",
    "phone": "2069735100",
    "name": "Waidong Syrws",
    "phone_status": "Connected",
    "phone_right_party_contact": true
  }'
{
  "status": "success",
  "error": {
    "name": "InternalError",
    "message": "Could not retrieve entire response"
  }
}
POST
/
1.0
/
phone_feedback
curl --location --request POST "https://api.trestleiq.com/1.0/phone_feedback" \
  --header "x-api-key: YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "response_id": "T_b5d031b8-e8a3-4eef-8fa8-d87d3b7e386f",
    "phone": "2069735100",
    "name": "Waidong Syrws",
    "phone_status": "Connected",
    "phone_right_party_contact": true
  }'
{
  "status": "success",
  "error": {
    "name": "InternalError",
    "message": "Could not retrieve entire response"
  }
}

Phone Feedback 1.0

Phone Feedback API allows you to submit phone feedback, including phone status and whether the phone number belongs to the right party based on a live call.

Headers

x-api-key
string
required
Your API key for authentication. Example: {{ apiKey }}

Request Body

response_id
string
required
The response ID returned from a prior Trestle API call. Example: T_b5d031b8-e8a3-4eef-8fa8-d87d3b7e386f
phone
string
required
The phone number in E.164 or local format. The default country calling code is +1 (USA). Example: 2069735100
name
string
Person or business name associated with the phone number. Example: Waidong Syrws
phone_status
string
required
Live-call status for the phone number. Possible values: Connected or Disconnected. Example: Connected Enum: Connected Disconnected
phone_right_party_contact
boolean
required
Indicates if the call confirmed the number belongs to the right party. Example: true

Response

status
string
Indicates whether the feedback was received successfully. Example: success
error
object(PartialError)
Error details in case of an error.

Error Responses

400 Bad Request:

  • Indicates that the server cannot process the request due to client-side errors.

403

  • Invalid API Key: Indicates that the API key is either incorrect or has been deactivated.
  • API Key Missing: Indicates that your request did not include an API key.
  • API Key Expired: Indicates that the API key has expired.

429 Too Many Requests:

  • API Key has exceeded its rate limit.

500 Internal Server Error:

  • An unexpected error occurred on the server.