# Hermoso: attach_voice_agent_number · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/attach_voice_agent_number/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / attach_voice_agent_number

# `attach_voice_agent_number`

Put an agent on a phone number

Area: AI VOICE AGENTS · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Have a voice agent answer (and place) the calls of a number. number is one of the brand's Twilio or Telnyx numbers (from list_phone_numbers) or a number already on the platform. mode import: the platform takes the number itself (Vapi and ElevenLabs import a Twilio number with the Twilio connection's credentials; a Telnyx number needs credentialId on Vapi; Retell imports over a SIP trunk given terminationUri, sipUsername, sipPassword). mode forward: the number stays on Hermoso's call handling and each call is handed to the agent's SIP address (incoming calls only). Telnyx AI Assistants answer a Telnyx number on the same account. The default is the one the platform supports for that number. If the number's calls go elsewhere, the answer names it and replaceExisting:true takes them over. Free. Needs Vapi, Retell AI or ElevenLabs connected (Connectors, or connect_connector with the API key), or Telnyx for its AI Assistants.

## Parameters

Parameter Type Description

`agentId` required `string`

`number` required `string`

`mode` `"import" | "forward"`

`direction` `"inbound" | "outbound" | "both"`

`name` `string`

`credentialId` `string` Vapi: a Telnyx credential made in the Vapi dashboard

`terminationUri` `string` SIP trunk termination URI (Retell import; ElevenLabs Telnyx outbound)

`sipUsername` `string`

`sipPassword` `string`

`replaceExisting` `boolean`

`provider` `"vapi" | "retell" | "elevenlabs" | "telnyx"` only when more than one voice platform is connected

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/attach_voice_agent_number`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"attach_voice_agent_number","arguments":{"agentId":"<string>","number":"<string>"}}}`
**CLI**

`hermoso call attach_voice_agent_number --json '{"agentId":"<string>","number":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [list_phone_numbers](https://hermoso.ai/docs/reference/publish/list_phone_numbers/) List phone numbers
- [connect_connector](https://hermoso.ai/docs/reference/workspace/connect_connector/) Connect a paste-a-key account
- [list_voice_agent_numbers](https://hermoso.ai/docs/reference/publish/list_voice_agent_numbers/) List voice-agent numbers
- [detach_voice_agent_number](https://hermoso.ai/docs/reference/publish/detach_voice_agent_number/) Take an agent off a number
- [list_voice_agent_voices](https://hermoso.ai/docs/reference/publish/list_voice_agent_voices/) List voice-agent voices
- [place_voice_agent_call](https://hermoso.ai/docs/reference/publish/place_voice_agent_call/) Place an AI voice call
- [delete_voice_agent](https://hermoso.ai/docs/reference/publish/delete_voice_agent/) Delete a voice agent
- [batch_voice_agent_calls](https://hermoso.ai/docs/reference/publish/batch_voice_agent_calls/) Batch AI voice calls
- [update_voice_agent](https://hermoso.ai/docs/reference/publish/update_voice_agent/) Update a voice agent
- [list_voice_agent_batches](https://hermoso.ai/docs/reference/publish/list_voice_agent_batches/) List voice-agent batches

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
