phonic
Version:
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [ • 1.31 kB
TypeScript
/**
* @example
* {
* project: "main",
* phone_number: "+15551234567",
* configuration_endpoint: {
* url: "https://api.example.com/config",
* headers: {
* "Authorization": "Bearer token123"
* },
* timeout_ms: 7000
* }
* }
*/
export interface AgentsUpdatePhoneNumberRequest {
/** The name of the project containing the agent. Only used when `nameOrId` is a name. */
project?: string;
/** The E.164 formatted phone number to add (e.g., "+15551234567"). */
phone_number: string;
/** When not `null`, the agent will call this endpoint to get configuration options for calls on this phone number. */
configuration_endpoint?: AgentsUpdatePhoneNumberRequest.ConfigurationEndpoint | null;
}
export declare namespace AgentsUpdatePhoneNumberRequest {
/**
* When not `null`, the agent will call this endpoint to get configuration options for calls on this phone number.
*/
interface ConfigurationEndpoint {
/** URL to call */
url: string;
/** Object of key-value pairs. */
headers?: Record<string, string> | undefined;
/** Timeout in milliseconds for the endpoint call. */
timeout_ms?: number | undefined;
}
}