API Documentation
Built-in Tools
Custom Tools
Calls
Post-call Analysis
Phone Numbers
- GETRetrieve a paginated list of all phone numbers configured in your PIA Platform account
- POSTCreate a new phone number
- GETRetrieve detailed information about a specific phone number configuration
- DELRemove a phone number configuration from the PIA Platform
- PATCHUpdate the configuration of an existing phone number
Knowledge Bases
Public Sharing
Create custom tool
Create a new custom tool with the provided configuration.
Path Parameters
Body
API configuration and other custom tool specific details needed for implementation
Complete API configuration including endpoint, method, headers, and parameters
The complete URL endpoint where the API requests will be sent (e.g., https://api.example.com/v1/resource)
HTTP headers required for the API request, such as authentication tokens or content type specifications
The HTTP method to be used for the API request (e.g., GET, POST, PUT, DELETE)
Configuration for both fixed and runtime parameters that will be used in API requests
Dictionary of parameters that remain constant across all API calls. Each parameter has a description and fixed value
Identifier specifying this is a custom tool implementation. Will always be set to 'custom'
custom
OpenAI function definition specifying the tool's interface for AI interaction
string
, number
, integer
, boolean
, object
, array
, null
object
Response
Complete configuration for the custom tool including API details
Complete API configuration including endpoint, method, headers, and parameters
The complete URL endpoint where the API requests will be sent (e.g., https://api.example.com/v1/resource)
HTTP headers required for the API request, such as authentication tokens or content type specifications
The HTTP method to be used for the API request (e.g., GET, POST, PUT, DELETE)
Configuration for both fixed and runtime parameters that will be used in API requests
Dictionary of parameters that remain constant across all API calls. Each parameter has a description and fixed value
Identifier specifying this is a custom tool implementation. Will always be set to 'custom'
custom
Timestamp indicating when this custom tool was created
OpenAI function definition containing the tool's interface specification
string
, number
, integer
, boolean
, object
, array
, null
object
Timestamp indicating when this custom tool was last modified
Unique identifier for the custom tool