Skip to main content

autessa.phoneNumbers

Buy, route, and manage company phone numbers, and handle their calls and texts.

Texting from a script​

Scripts can find numbers to buy, send texts, and read a number's text history. Sending is checked exactly like the Send SMS tool: your company needs a finished Text Messaging registration (or the number comes from your own connected Twilio account), and the recipient needs an approved consent record or a text to you within the last year. Opted-out numbers are never texted.

Send a text
const { ok, data } = autessa.phoneNumbers.smsSend({
configId: 'pH9nR3vC6b',
to: '+14155550100',
body: 'Hi Sam, your order has shipped. Reply STOP to opt out.'
});
if (data.success) console.log('sent', data.messageId, data.status, data.segments);
else console.log('not sent', data.errorCode, data.errorMessage);

A refused text isn't an exception: success is false, errorCode says why, and errorMessage explains it in plain language.

Read a number's text history
let cursor;
do {
const { ok, data } = autessa.phoneNumbers.smsMessagesList({ configId: 'pH9nR3vC6b', pageSize: 25, cursor });
if (!ok) break;
data.messages.forEach(m => console.log(m.direction, m.counterparty, m.status, m.body));
cursor = data.nextCursor;
} while (cursor);

Messages come newest first, with the other party's number masked. Blocked sends are included with their reason.

Find numbers to buy
const { ok, data } = autessa.phoneNumbers.searchNumbers({ areaCode: '206', limit: 10 });
data.numbers.forEach(n => console.log(n.phoneNumber, n.locality, n.region));

sendSms, listSmsMessages, and searchNumbers ship with the Text Messaging release. The reference below is generated from the platform and lists them once the release is live.

Calls from a script​

Scripts can set who answers a number, change its recording and call-limit settings, read its call history, and turn its quick automations on or off. What each setting does is explained in the Phone Numbers guide.

Ring people, with voicemail as the fallback
const { ok, data } = autessa.phoneNumbers.updateCallFlow({
configId: 'pH9nR3vC6b',
callFlow: {
greeting: 'Thanks for calling Acme Dental.',
destination: {
type: 'RING',
ring: {
targets: [
{ to: '+14155550100', label: 'Front desk' },
{ to: '+14155550101', label: 'Office manager', ringSeconds: 30 }
],
strategy: 'SEQUENTIAL',
ringSeconds: 20,
maxTotalSeconds: 45,
requireKeyPress: true,
whisper: 'Call from the Acme Dental line.',
noAnswer: { type: 'VOICEMAIL', voicemail: { maxSeconds: 120, finishOnKey: '#', transcribe: true } }
}
}
}
});
if (ok) console.log(data.routingType); // "FLOW"

Pass callFlow: null to go back to sending every call straight to the number's agent or multi-agent. An invalid flow (an unknown agent, a bad time, a phone number not in E.164 format) comes back with ok false and a plain-language message. Every flow field, including holiday closedDates, menu timing and messages, and ring options like callerId and waitAudio, is described in the call flow object reference.

Upload a recorded greeting
// 1. get an upload link
const link = autessa.phoneNumbers.audioUploadLink({ configId: 'pH9nR3vC6b', fileType: 'mp3' }).data;
console.log(link.uploadUrl, link.contentType, link.audioUri);
// 2. PUT the file to link.uploadUrl with the header "Content-Type: <link.contentType>",
// from curl or any HTTP client that can send a file's raw bytes
// 3. once it's uploaded, save link.audioUri into an audio field
autessa.phoneNumbers.updateCallFlow({
configId: 'pH9nR3vC6b',
callFlow: {
greeting: 'Thanks for calling Acme Dental.',
greetingAudio: link.audioUri,
destination: { type: 'AI_AGENT', resourceId: 'V1StGXR8Z5' }
}
});

The upload must use exactly the contentType the link came with, and must happen before expiresInSeconds runs out. The api helper sends text bodies, so upload the audio file itself from outside the script. Audio fields (greetingAudio, messageAudio, promptAudio, a voicemail's greetingAudio, a ring's waitAudio) also accept an https:// link to a file you host. When one is set, it plays instead of the matching text.

Record calls and remove card numbers
const { ok, data } = autessa.phoneNumbers.updateCallSettings({
configId: 'pH9nR3vC6b',
callSettings: {
recording: { save: true, announcement: 'This call may be recorded.' },
redaction: { enabled: true, redact: ['CARD_NUMBER', 'CARD_EXPIRY', 'CARD_CVV'], audioRedaction: 'TONE' },
limits: { maxDurationMinutes: 30, silenceTimeoutSeconds: 20 }
}
});

Settings sections are speech (voice and language), transcript and recording (each with an optional retentionDays), redaction, limits, callerInfo, screening (blocked callers), ai (interruptions, end-of-turn speed, hang-up phrases, key presses), and answeringMachine (detection on outgoing calls). Call Redaction costs $0.15 per audio hour, or $0.20 with health and national ID types. Every field and range is in the call settings object reference.

Answer in Spanish, block a number, and keep recordings for 90 days
const { data: options } = autessa.phoneNumbers.voiceOptions({});
options.languages.forEach(l => console.log(l.code, l.label));

autessa.phoneNumbers.updateCallSettings({
configId: 'pH9nR3vC6b',
callSettings: {
speech: { language: 'es-US' },
recording: { save: true, announcement: 'Esta llamada puede ser grabada.', retentionDays: 90 },
screening: { blockedNumbers: ['+15555550123'], rejectAnonymous: true },
ai: { endOfTurn: 'PATIENT', hangUpPhrases: ['Que tenga un buen día'] }
}
});

voiceOptions lists the languages and voices you can use in speech.

Read call history
let after;
do {
const { ok, data } = autessa.phoneNumbers.callsList({ configId: 'pH9nR3vC6b', limit: 50, after });
if (!ok) break;
data.calls.forEach(c => console.log(c.startedAt, c.direction, c.otherNumber, c.status, c.durationSeconds));
after = data.next;
} while (after);

Calls come newest first from your company's Phone calls table. Each call includes its caller info, status, who handled it, the transcript, and links to the recording and voicemail that stay valid for 10 minutes. data.tableId is the Phone calls table, so you can also query it directly with autessa.autessadb.

Email new voicemails to the front desk
autessa.phoneNumbers.setAutomation({
configId: 'pH9nR3vC6b',
automation: 'EMAIL_VOICEMAILS',
enabled: true,
emails: ['frontdesk@example.com']
});

automation is TEXT_BACK_MISSED_CALLS (with smsMessage; the number must be able to text) or EMAIL_VOICEMAILS (with up to 5 emails). enabled: false turns it off without deleting the trigger behind it.

updateCallFlow, updateCallSettings, getCalls, setAutomation, audioUploadLink, and voiceOptions ship with the phone call controls release. The reference below lists them once the release is live.

Texts without AI from a script​

Scripts can decide who answers a number's texts, read and reply to its shared inbox, and forward texts to your team. What each setting does is explained in Texts.

Team answers texts by day, an AI agent after hours
const { ok, data } = autessa.phoneNumbers.updateTextFlow({
configId: 'pH9nR3vC6b',
textFlow: {
keywordReplies: [{ keyword: 'HOURS', reply: 'We are open Monday to Friday, 9 to 5.' }],
useCallFlowHours: true,
open: {
type: 'NO_AI',
autoReply: { message: 'Thanks for your message. We will text you back shortly.', onceEveryHours: 24 }
},
closed: { type: 'AI_AGENT', resourceId: 'V1StGXR8Z5' }
}
});
if (ok) console.log(data.config.textFlow);

Pass textFlow: null to go back to the default: the agent the number sends calls to directly answers texts, or, without one, texts get no reply and wait in the inbox. STOP, START, and HELP are always handled first. Every field is in the text flow object reference.

Read the inbox and reply
const threads = autessa.phoneNumbers.smsThreadsList({ configId: 'pH9nR3vC6b', limit: 20 }).data.threads;
threads.forEach(t => console.log(t.otherNumber, t.lastDirection, t.lastBody, t.messageCount));

const first = threads[0];
const { data } = autessa.phoneNumbers.smsThreadGet({ configId: 'pH9nR3vC6b', otherNumber: first.otherNumber, limit: 50 });
data.messages.forEach(m => console.log(m.sentAt, m.direction, m.handledBy, m.body));

if (first.lastDirection === 'INBOUND') {
autessa.phoneNumbers.smsSend({ configId: 'pH9nR3vC6b', to: first.otherNumber, body: 'Thanks, we got your message.' });
}

Pass next as after for more threads, or as before for older messages in a thread. Replies go out as the business number and are checked like any other text.

Forward incoming texts to the front desk
autessa.phoneNumbers.setAutomation({
configId: 'pH9nR3vC6b',
automation: 'FORWARD_TEXTS_SMS',
enabled: true,
phones: ['+14155550100']
});

FORWARD_TEXTS_SMS takes up to 5 phones, and FORWARD_TEXTS_EMAIL up to 5 emails. Forwarded texts are sent from the business number, so each phone must be allowed to receive texts from it (texting the number once from each phone is enough). Every text is also a row in your company's Text messages table; textLogTableId from getConfig is its id, so you can query it with autessa.autessadb.

updateTextFlow, listSmsThreads, getSmsThread, and the forwarding automations ship with the texting-without-AI release. The reference below lists them once the release is live.

autessa.phoneNumbers.audioUploadLinkMUTATE

autessa.phoneNumbers.audioUploadLink({ configId, fileType })

Get a link to upload a recording (mp3 or wav) for a phone number's greetings, menus or hold audio.

Returns a short-lived upload URL for one mp3 or wav file and the s3:// audioUri it will have. PUT the file's bytes to uploadUrl with the given contentType before it expires, then use audioUri in any audio field of the number's call flow (greetingAudio, messageAudio, promptAudio, a voicemail greetingAudio or a ring's waitAudio) or a PHONE_TAKE_VOICEMAIL tool's greetingAudio. getConfig returns playable links for uploaded audio in audioPreviewUrls. Requires WRITE (or ADMIN) access to the configuration.

Request fields

  • Name
    configId
    Type
    string
    Description
  • Name
    fileType
    Type
    "mp3" | "wav"
    Description

Response fields

  • Name
    uploadUrl
    Type
    string
    Description
  • Name
    audioUri
    Type
    string
    Description
  • Name
    contentType
    Type
    string
    Description
  • Name
    expiresInSeconds
    Type
    number
    Description

autessa.phoneNumbers.callsListREAD

autessa.phoneNumbers.callsList({ configId, limit, after })

List recent calls on a company phone number, with status, transcript and recording.

Returns a newest-first page of calls on the phone number for configId, read from the company's Phone calls table: direction, the other party, who handled it, timing, status, transcript, and short-lived links to the recording and any voicemail. limit defaults to 10, at most 50; pass the previous page's next as after to continue. tableId is the Phone calls table (null before the first logged call); query it with the AutessaDB methods for anything this summary leaves out. Requires access to the configuration.

Request fields

  • Name
    configId
    Type
    string
    Description
  • Name
    limit
    Type
    number
    Description
  • Name
    after
    Type
    string
    Description

Response fields

  • Name
    tableId
    Type
    string
    Description
  • Name
    calls
    Type
    PhoneCallSummary[]
    Description
  • Name
    next
    Type
    string
    Description

autessa.phoneNumbers.configGetREAD

autessa.phoneNumbers.configGet({ configId })

Fetch one Twilio phone configuration and your access level on it.

Returns the phone configuration for configId — its number, routing, sharing, and active state — along with your own permission level on it. Fails if you lack access.

Request fields

  • Name
    configId
    Type
    string
    Description

Response fields

  • Name
    config
    Type
    PhoneConfigDto
    Description
  • Name
    permission
    Type
    "READ" | "WRITE" | "PUBLISH" | "ADMIN"
    Description

autessa.phoneNumbers.configsListREAD

autessa.phoneNumbers.configsList({ pageSize, pageToken })

List the company's Twilio phone configurations you can access.

Returns every phone configuration in the current company that you have access to, each with its number, routing, sharing, and active state. Takes no arguments.

Request fields

  • Name
    pageSize
    Type
    number
    Description
  • Name
    pageToken
    Type
    string
    Description

Response fields

  • Name
    configs
    Type
    PhoneConfigDto[]
    Description
  • Name
    nextPageToken
    Type
    string
    Description

autessa.phoneNumbers.configureRoutingMUTATE

autessa.phoneNumbers.configureRouting({ configId, routingType, directResourceType, directResourceId, routingConfig, locallyHostedStt })

Route inbound calls for a company phone number to an agent, tool, or manager.

Sets how inbound voice calls to the phone number for configId are handled. With routingType=DIRECT, every call goes to one Autessa resource — set directResourceType (AGENT/TOOL/MANAGER) and directResourceId. With routingType=PRESS_DIGIT, callers hear a menu and are routed by the digit they press — supply routingConfig.digitToResourceMap. To ring people, use business hours or voicemail, set a call flow with updateCallFlow instead. You must have access to every resource you route to. Optional fields tune the call: initialMessage / initialMessagePrompt for the greeting, promptTemplateVariables and environmentVariables for the target resource, conferenceParticipants for conference dial-out, and clientDisplayMessage for the browser client. Requires WRITE (or ADMIN) access to the configuration.

Request fields

  • Name
    configId
    Type
    string
    Description
  • Name
    routingType
    Type
    "DIRECT" | "PRESS_DIGIT"
    Description
  • Name
    directResourceType
    Type
    string
    Description
  • Name
    directResourceId
    Type
    string
    Description
  • Name
    routingConfig
    Type
    object
    Description
  • Name
    locallyHostedStt
    Type
    boolean
    Description

Response fields

  • Name
    success
    Type
    boolean
    Description
  • Name
    message
    Type
    string
    Description

autessa.phoneNumbers.purchaseNumberMUTATE

autessa.phoneNumbers.purchaseNumber({ areaCode, phoneNumber, idempotencyKey, attachToSms })

Purchase a US phone number from Twilio for the company.

Purchases a US phone number from Twilio, creating an unconfigured phone configuration in the current company. The number itself is free and no payment method is needed; texting on it is turned on separately (or with attachToSms) and is billed monthly once on. The purchase is rejected if the company has reached its phone-number limit. Pass phoneNumber (from searchNumbers) to buy a specific number, or areaCode to take the first available number there; with neither, any available US number is bought. Pass the same idempotencyKey when retrying so a number is never bought twice. After purchase, use configureRouting to point inbound calls at an agent, tool, or manager.

Request fields

  • Name
    areaCode
    Type
    string
    Description
  • Name
    phoneNumber
    Type
    string
    Description
  • Name
    idempotencyKey
    Type
    string
    Description
  • Name
    attachToSms
    Type
    boolean
    Description

Response fields

  • Name
    success
    Type
    boolean
    Description
  • Name
    configId
    Type
    string
    Description
  • Name
    phoneNumber
    Type
    string
    Description
  • Name
    twilioPhoneSid
    Type
    string
    Description
  • Name
    message
    Type
    string
    Description
  • Name
    errorCode
    Type
    string
    Description

autessa.phoneNumbers.releaseMUTATENot scriptable

Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.

Release a company phone number back to Twilio and delete its configuration.

Releases the phone number for configId back to Twilio (stopping its texting charge) and deletes the phone configuration from Autessa. HIGH risk: the number is given up and any inbound routing to it stops immediately; re-acquiring it is not guaranteed. Requires ADMIN access to the configuration.

autessa.phoneNumbers.searchNumbersREAD

autessa.phoneNumbers.searchNumbers({ areaCode, contains, limit, pageSize, pageToken })

Search US phone numbers available to buy.

Lists US local numbers that can be bought right now, optionally in one area code and/or containing some digits, each with what it supports. Numbers are free; only numbers that can text are returned. Nothing is bought; pass a number's phoneNumber to purchaseNumber to buy it. Availability changes quickly, so buy soon after searching.

Request fields

  • Name
    areaCode
    Type
    string
    Description
  • Name
    contains
    Type
    string
    Description
  • Name
    limit
    Type
    number
    Description
  • Name
    pageSize
    Type
    number
    Description
  • Name
    pageToken
    Type
    string
    Description

Response fields

  • Name
    numbers
    Type
    AvailableNumberDto[]
    Description
  • Name
    nextPageToken
    Type
    string
    Description

autessa.phoneNumbers.setAutomationMUTATE

autessa.phoneNumbers.setAutomation({ configId, automation, enabled, smsMessage, emails, phones })

Turn on or off a number's quick automations: text back missed calls, email voicemails, forward texts.

Turns one of the number's after-call automations on or off. Each one is a visible trigger on the company's Phone calls table that runs a normal tool, so it can be inspected and edited like any other; turning it off disables the trigger without deleting it. TEXT_BACK_MISSED_CALLS texts smsMessage to inbound callers who were not answered or left a voicemail, from this number (needs texting turned on for the number). EMAIL_VOICEMAILS emails each new voicemail's transcript to emails (at most 5). FORWARD_TEXTS_SMS forwards each incoming text to phones (at most 5, US numbers) as "From <number>: <message>", from this number (needs texting turned on, and the phones must be allowed to receive texts from it); texts from those phones are never forwarded. FORWARD_TEXTS_EMAIL emails each incoming text to emails (at most 5). The texting automations are triggers on the company's Text messages table. Requires WRITE (or ADMIN) access to the configuration.

Request fields

  • Name
    configId
    Type
    string
    Description
  • Name
    automation
    Type
    "TEXT_BACK_MISSED_CALLS" | "EMAIL_VOICEMAILS" | "FORWARD_TEXTS_SMS" | "FORWARD_TEXTS_EMAIL"
    Description
  • Name
    enabled
    Type
    boolean
    Description
  • Name
    smsMessage
    Type
    string
    Description
  • Name
    emails
    Type
    string[]
    Description
  • Name
    phones
    Type
    string[]
    Description

Response fields

  • Name
    config
    Type
    PhoneConfigDto
    Description

autessa.phoneNumbers.smsMessagesListREAD

autessa.phoneNumbers.smsMessagesList({ configId, pageSize, cursor })

List text messages sent from or received by a company phone number.

Returns a newest-first page of text messages for configId — inbound texts, replies, and sends that were blocked (with the reason) — with bodies decrypted and the other party's number masked. Omit configId to list every company number (company owners only). pageSize defaults to 25, at most 100; pass the previous page's nextCursor as cursor to continue. Requires access to the configuration.

Request fields

  • Name
    configId
    Type
    string
    Description
  • Name
    pageSize
    Type
    number
    Description
  • Name
    cursor
    Type
    string
    Description

Response fields

  • Name
    messages
    Type
    SmsMessageDto[]
    Description
  • Name
    nextCursor
    Type
    string
    Description

autessa.phoneNumbers.smsSendMUTATE

autessa.phoneNumbers.smsSend({ configId, to, body })

Send a text message from a company phone number.

Texts the number in `to` (US only) from the phone number of configId. HIGH risk: the message reaches a real person. The send is refused unless the company has finished Text Messaging registration (or the number comes from its own connected Twilio account) and the recipient has consented — a consent record in SMS Consent, or a text they sent the company in the last year. People who replied STOP are never texted. On a refusal success is false, errorCode says why (e.g. CONSENT_REQUIRED, SMS_NOT_REGISTERED, OPTED_OUT, INVALID_NUMBER) and errorMessage explains it. Requires WRITE (or ADMIN) access to the configuration.

Request fields

  • Name
    configId
    Type
    string
    Description
  • Name
    to
    Type
    string
    Description
  • Name
    body
    Type
    string
    Description

Response fields

  • Name
    success
    Type
    boolean
    Description
  • Name
    messageId
    Type
    string
    Description
  • Name
    twilioMessageSid
    Type
    string
    Description
  • Name
    status
    Type
    string
    Description
  • Name
    from
    Type
    string
    Description
  • Name
    to
    Type
    string
    Description
  • Name
    segments
    Type
    number
    Description
  • Name
    errorCode
    Type
    "SMS_NOT_REGISTERED" | "REGISTRATION_PENDING" | "REGISTRATION_ACTION_REQUIRED" | "REGISTRATION_SUSPENDED" | "NUMBER_NOT_ATTACHED" | "CONSENT_REQUIRED" | "OPTED_OUT" | "INVALID_NUMBER" | "NUMBER_INACTIVE" | "BYO_CREDENTIALS_INVALID" | "BYO_ACCOUNT_SUSPENDED" | "BYO_ACCOUNT_DISCONNECTED" | "ACCESS_DENIED" | "SEND_FAILED"
    Description
  • Name
    errorMessage
    Type
    string
    Description

autessa.phoneNumbers.smsThreadGetREAD

autessa.phoneNumbers.smsThreadGet({ configId, otherNumber, limit, before })

Get the texts between a number and one person, newest first.

Returns the messages between the phone number for configId and otherNumber, newest first, with who sent each outbound one. limit defaults to 50, at most 200; pass the previous page's next as before for older messages. Requires access to the configuration.

Request fields

  • Name
    configId
    Type
    string
    Description
  • Name
    otherNumber
    Type
    string
    Description
  • Name
    limit
    Type
    number
    Description
  • Name
    before
    Type
    string
    Description

Response fields

  • Name
    messages
    Type
    object[]
    Description
  • Name
    next
    Type
    string
    Description

autessa.phoneNumbers.smsThreadsListREAD

autessa.phoneNumbers.smsThreadsList({ configId, limit, after })

List a number's text conversations, one per person, most recent first.

Returns the shared inbox of the phone number for configId: one thread per person who texted the number or was texted from it, with the latest message and a message count. limit defaults to 20, at most 50; pass the previous page's next as after to continue. Read a thread with getSmsThread and reply with sendSms. Requires access to the configuration.

Request fields

  • Name
    configId
    Type
    string
    Description
  • Name
    limit
    Type
    number
    Description
  • Name
    after
    Type
    string
    Description

Response fields

  • Name
    threads
    Type
    object[]
    Description
  • Name
    next
    Type
    string
    Description

autessa.phoneNumbers.updateCallFlowMUTATE

autessa.phoneNumbers.updateCallFlow({ configId, callFlow })

Set how a number answers calls: AI, ringing people, a keypad menu, business hours, voicemail.

Sets the call flow of the phone number for configId and switches its routingType to FLOW. A flow has an optional greeting, optional business hours with a destination for when the business is closed, and a destination: an AI agent or manager (AI_AGENT / AI_MULTI_AGENT with resourceId), ringing people (RING: phone numbers or client:<identity> browser phones, all at once or one by one, with a noAnswer fallback, an optional whisper and press-1-to-accept), a keypad menu (MENU: digit to destination), voicemail (VOICEMAIL), or hanging up (HANG_UP). Spoken text can be replaced by a recording (greetingAudio, messageAudio, promptAudio; upload one with audioUploadLink), and closedDates marks holidays. Destinations nest, so a menu option can ring people who fall back to voicemail. Pass callFlow null to remove the flow and go back to DIRECT routing (the direct agent is kept). The flow is checked before it is saved (numbers, keys, HH:mm times, time zone, and that you can use every agent or manager named); a problem fails with a plain-language message. Requires WRITE (or ADMIN) access to the configuration.

Request fields

  • Name
    configId
    Type
    string
    Description
  • Name
    callFlow
    Type
    CallFlow
    Description

Response fields

  • Name
    config
    Type
    PhoneConfigDto
    Description

autessa.phoneNumbers.updateCallSettingsMUTATE

autessa.phoneNumbers.updateCallSettings({ configId, callSettings })

Set a number's voice and language, recording, transcripts, Call Redaction, limits, screening and AI behavior.

Replaces the call settings of the phone number for configId. They apply to every call on the number, inbound and outbound, AI or not, and calls already in progress keep the settings they started with. Each section (speech, transcript, recording, redaction, limits, callerInfo, screening, ai, answeringMachine) replaces the stored section as a whole; leave a section out to clear it back to its defaults. Calls are logged to the company's Phone calls table. Call Redaction removes personal info from the stored recording and transcript and is billed per redacted call; caller-name lookup is a paid Twilio lookup. Requires WRITE (or ADMIN) access to the configuration.

Request fields

  • Name
    configId
    Type
    string
    Description
  • Name
    callSettings
    Type
    PhoneCallSettings
    Description

Response fields

  • Name
    config
    Type
    PhoneConfigDto
    Description

autessa.phoneNumbers.updateTextFlowMUTATE

autessa.phoneNumbers.updateTextFlow({ configId, textFlow })

Set how a number handles incoming texts: keyword replies, text hours, an AI agent or no AI.

Sets the text flow of the phone number for configId. Keyword replies are checked first (after STOP/START/HELP, which are always handled for compliance and can't be keywords). Then, by the text hours (businessHours, or the call flow's with useCallFlowHours), open or closed decides the handling: AI_AGENT (resourceId, or the agent the number is connected to) answers, or NO_AI saves the text to the inbox and optionally sends autoReply at most once every onceEveryHours hours per person (default 24, 0 = every text). Pass textFlow null for the default: the connected agent answers when the number has one, otherwise texts only land in the inbox. Problems fail with a plain-language message. Requires WRITE (or ADMIN) access.

Request fields

  • Name
    configId
    Type
    string
    Description
  • Name
    textFlow
    Type
    TextFlow
    Description

Response fields

  • Name
    config
    Type
    PhoneConfigDto
    Description
  • Name
    permission
    Type
    "READ" | "WRITE" | "PUBLISH" | "ADMIN"
    Description

autessa.phoneNumbers.voiceOptionsREAD

autessa.phoneNumbers.voiceOptions()

List the voices and languages a phone number's own speech can use.

Returns what callSettings.speech accepts: the languages the phone stack supports for speech and speech recognition, and the voices for each voice model (the same catalog agents use, including your company's custom voices). Takes no arguments.

Request fields

No fields.

Response fields

  • Name
    languages
    Type
    object[]
    Description
  • Name
    voices
    Type
    VoiceOptions[]
    Description

autessa.twilio.voiceClient.identityREADNot scriptable

Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.

Resolve the Twilio voice-client identity string for a company member.

Returns the deterministic, opaque voice-client identity string for the given userId in the current company (used to address that user in browser voice calls). The target user must be a member of your company. This does not issue a token — use voiceClient.token for that.

autessa.twilio.voiceClient.tokenMUTATENot scriptable

Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.

Issue a Twilio voice access token for browser-based calling.

Generates a short-lived Twilio access token (a JWT with a voice grant) that lets the browser voice client place and receive calls as the current user's derived identity. Takes no arguments — the identity is derived from your session. Return the token to a browser client to initialise the Twilio Voice SDK.