API ReferenceFunctions
Create custom function
Create a new custom function for an organization.
Authorization
sessionAuth AuthorizationBearer <token>
NextAuth session token
In: header
Path Parameters
orgId*string
Format
uuidRequest Body
application/json
name*string
Length
1 <= lengthdescription?string
type*string
Value in
"prebuilt" | "rest_api" | "mcp"category?string
icon?string
config*object
Function-specific configuration
Response Body
application/json
curl -X POST "https://platform.autophone.org/api/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/functions" \ -H "Content-Type: application/json" \ -d '{ "name": "Send Email", "description": "Send email to contacts", "type": "rest_api", "category": "communication", "config": { "endpoint": "https://api.example.com/send-email", "method": "POST" } }'{
"function": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
"name": "string",
"description": "string",
"type": "prebuilt",
"category": "string",
"icon": "string",
"config": {},
"isEnabled": true,
"isSystem": false,
"createdAt": "2019-08-24T14:15:22Z"
}
}Empty
Empty
Empty