Address
Address
Defines source/destination address. This structure is used throughout VoIPBIN wherever communication endpoints are specified, including calls (POST /calls), messages (POST /messages), flows (connect/call actions), and number configurations.
{
"type": "<string>",
"target": "<string>",
"target_name": "<string>",
"name": "<string>",
"detail": "<string>"
}
type(enum string): Address type. Determines howtargetis interpreted. See Type.target(String): The address endpoint. Format depends ontype: E.164 phone number fortel(e.g.,+15551234567), extension number forextension(e.g.,2001), agent UUID foragent(obtained fromGET /agents), or SIP URI forsip(e.g.,user@domain.com).target_name(String): Display name associated with the address. Forteltype, this is the caller ID name. Optional.name(String): A human-readable label for this address. Optional.detail(String): Additional description or metadata for this address. Optional.
Note
AI Implementation Hint
When constructing an Address, only type and target are required. For tel type, the target must be in E.164 format with a leading + and no spaces or special characters. For agent type, the target must be a valid agent UUID obtained from GET /agents.
Example
The
teltype address. The target is a phone number in E.164 format.
{
"type": "tel",
"target": "+821100000001"
}
The
extensiontype address. The target is an extension number.
{
"type": "extension",
"target": "2001"
}
The
agenttype address. The target is the agent’s UUID, obtained fromGET /agents.
{
"type": "agent",
"target": "eed6a98a-f18d-11ee-96d3-133e13eafff9"
}
The
siptype address. The target is a SIP URI.
{
"type": "sip",
"target": "[email protected]"
}
Type
Defines types of address.
Type |
Description |
|---|---|
agent |
Address for calling an agent. |
extension |
Address for calling an extension number. |
sip |
SIP protocol address. |
tel |
Telephone number address. |
line |
Line type address. Used for LINE messaging integrations. |