lines_create
Add a phone line from an offered provider. Adding never dials. The first line becomes the default for new calls and campaigns. Lines start in test mode: only the line's test numbers can be called. A gateway line (your own computer + phone) returns a one-time pairing.code (30 minutes) that the SAGOT gateway app exchanges for its own credential; the code is shown only once. A twilio line connects your own Twilio account: pass accountSid, apiKeySid, apiKeySecret (a Standard API key; write-only) and the numbers to attach (lines.twilioNumbers lists them). SAGOT creates an Elastic SIP Trunk, a credential list, an origination URL and attaches the numbers in your account, records every object it created and removes exactly those when the line is deleted. Twilio bills the calls to your account. A sagot line (SAGOT number, one per workspace) calls from SAGOT's shared numbers and is paid from the workspace's prepaid balance (billing.get shows rates); it can't receive calls. Add its test numbers with lines.verifyNumber and lines.confirmNumber.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge | No | ||
| name | No | ||
| numbers | No | ||
| callerId | No | ||
| provider | Yes | ||
| apiKeySid | No | ||
| isDefault | No | ||
| accountSid | No | ||
| workspaceId | Yes | ||
| apiKeySecret | No |