createUserDefinedMessage
Create a new User Defined Message for the given Call SID.
Details
- Method:
POST - Path:
/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json - Operation ID:
CreateUserDefinedMessage
Parameters
{
"AccountSid": {
"description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message.",
"required": true,
"location": "path",
"type": "string"
},
"CallSid": {
"description": "The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with.",
"required": true,
"location": "path",
"type": "string"
}
}Response Schema
{
"type": "object",
"properties": {
"account_sid": {
"type": "string",
"minLength": 34,
"maxLength": 34,
"pattern": "^AC[0-9a-fA-F]{32}$",
"nullable": true,
"description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message."
},
"call_sid": {
"type": "string",
"minLength": 34,
"maxLength": 34,
"pattern": "^CA[0-9a-fA-F]{32}$",
"nullable": true,
"description": "The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with."
},
"sid": {
"type": "string",
"minLength": 34,
"maxLength": 34,
"pattern": "^KX[0-9a-fA-F]{32}$",
"nullable": true,
"description": "The SID that uniquely identifies this User Defined Message."
},
"date_created": {
"type": "string",
"format": "date-time-rfc-2822",
"nullable": true,
"description": "The date that this User Defined Message was created, given in RFC 2822 format."
}
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('twilio')
# Call this tool
result = await agent.call_tool('createUserDefinedMessage', {
# Add required parameters here
})