Skip to content
TriedDocs
Phone numbers

Refresh verified number

Read the number's Telnyx reputation and update the verified number status.

POSThttps://api.tried.com.au/refresh-verified-number/{id}

Needs keys Reads the number's reputation from Telnyx and saves the result. Real lookups need TELNYX_API_KEY. In mock mode the first refresh approves the record with spam_likely false.

Telnyx reputation status spam_likely
No spam risk reported yet pending null
Spam risk low approved false
Any other spam risk approved true

A refresh never sets rejected.

Request#

Path parameter Type Required Description
id string Yes The record ID, for example vnum_3b8d0f6a2c917e45d0b3a8f1.

This endpoint takes no query or body parameters.

Example request#

curl -X POST https://api.tried.com.au/refresh-verified-number/vnum_3b8d0f6a2c917e45d0b3a8f1 \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch(
  "https://api.tried.com.au/refresh-verified-number/vnum_3b8d0f6a2c917e45d0b3a8f1",
  { method: "POST", headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` } },
);
const verified = await res.json();
import os, requests

res = requests.post(
    "https://api.tried.com.au/refresh-verified-number/vnum_3b8d0f6a2c917e45d0b3a8f1",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
verified = res.json()

Response#

200 OK

The updated record. See Create verified number for the fields.

{
  "verified_number_id": "vnum_3b8d0f6a2c917e45d0b3a8f1",
  "phone_number": "+14155550123",
  "business_name": "Harbour Dental LLC",
  "contact_email": "ops@harbourdental.example",
  "use_case": "Appointment reminders",
  "status": "approved",
  "provider": "telnyx",
  "provider_reference": "9a0e4c71-2f5b-48d3-b6e1-7c3d5f9a2b08",
  "spam_likely": false,
  "created_timestamp": 1792396800000,
  "last_modification_timestamp": 1792483200000
}

Errors#

Status When
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the numbers scope. Members get The member role is read-only.
404 Verified number vnum_... not found in this workspace.
429 Rate limit exceeded. See Rate limits.
500 The Telnyx reputation lookup failed.

See Errors for the body format.