Cold Email Personalizer by Autobound

Cold Email Personalizer by Autobound · GPT Actions

Swagger

  • GET /api/oauth-2/meget user id and org id
  • POST /api/content-generation/gpt/write-contentGenerate personalized email content
原始 API 定义
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Swagger",
    "license": {
      "name": "MIT"
    }
  },
  "servers": [
    {
      "url": "https://api.autobound.ai"
    }
  ],
  "paths": {
    "/api/oauth-2/me": {
      "get": {
        "summary": "get user id and org id",
        "security": [
          {
            "oauth2": [
              "read"
            ]
          }
        ],
        "operationId": "getUserOrgIds",
        "tags": [
          "me"
        ],
        "responses": {
          "200": {
            "description": "User id, org id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            }
          }
        }
      }
    },
    "/api/content-generation/gpt/write-content": {
      "post": {
        "summary": "Generate personalized email content",
        "security": [
          {
            "oauth2": [
              "read"
            ]
          }
        ],
        "operationId": "writeContent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "numberToGenerate": {
                    "type": "number"
                  },
                  "contactEmail": {
                    "type": "string"
                  },
                  "contactLinkedinUrl": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "email",
                      "sms",
                      "connectionRequest",
                      "callScript",
                      "opener"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "response": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "email"
                        },
                        "contentList": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "isMLGenerated": {
                                "type": "boolean"
                              },
                              "content": {
                                "type": "string"
                              },
                              "contentItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "insightsUsed": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "insightId": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string"
                                    },
                                    "subType": {
                                      "type": "string"
                                    },
                                    "variables": {
                                      "type": "object",
                                      "additionalProperties": true
                                    }
                                  }
                                }
                              },
                              "valuePropsUsed": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string"
                                    },
                                    "valuePropId": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "content": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "generatedDynamicPromptId": {
                                "type": "string",
                                "format": "uuid"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Me": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://app2.autobound.ai/chat-gpt-redirect",
            "tokenUrl": "https://api.autobound.ai/api/oauth-2/token",
            "scopes": {
              "read": "Read access",
              "write": "Write access"
            }
          }
        }
      }
    }
  }
}