AlloAllo AI?

AlloAllo AI? · GPT Actions

Vibrato GPT API

API for GPT-automated actions such as making calls, creating tasks, and retrieving contacts.

  • POST /callsCreate a new call
  • POST /tasksCreate a new task template
  • POST /calls/{callId}/hangupEnd a specific call
  • GET /contacts/{contactId}Retrieve a specific contact
原始 API 定义
{
  "openapi": "3.1.0",
  "info": {
    "title": "Vibrato GPT API",
    "version": "1.0.0",
    "description": "API for GPT-automated actions such as making calls, creating tasks, and retrieving contacts."
  },
  "servers": [
    {
      "url": "https://api.getvibrato.com"
    }
  ],
  "paths": {
    "/calls": {
      "post": {
        "summary": "Create a new call",
        "operationId": "createCall",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCallRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Call created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tasks": {
      "post": {
        "summary": "Create a new task template",
        "operationId": "createTask",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTaskRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Task template created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskResponse"
                }
              }
            }
          }
        }
      }
    },
    "/calls/{callId}/hangup": {
      "post": {
        "summary": "End a specific call",
        "operationId": "hangupCall",
        "parameters": [
          {
            "name": "callId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Call ended successfully"
          }
        }
      }
    },
    "/contacts/{contactId}": {
      "get": {
        "summary": "Retrieve a specific contact",
        "operationId": "getContact",
        "parameters": [
          {
            "name": "contactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Contact retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CreateCallRequest": {
        "type": "object",
        "properties": {
          "recipientId": {
            "type": "string"
          },
          "callType": {
            "type": "string"
          },
          "duration": {
            "type": "integer"
          }
        }
      },
      "CallResponse": {
        "type": "object",
        "properties": {
          "callId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "CreateTaskRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "dueDate": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "TaskResponse": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        }
      },
      "ContactResponse": {
        "type": "object",
        "properties": {
          "contactId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          }
        }
      }
    }
  }
}