create_account
Create new Apollo.io accounts with company details like name, domain, and contact information to establish organizational presence in the B2B sales platform.
Instructions
Create a new account/organization in Apollo with company details.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Company name | |
| domain | No | Company domain | |
| phone_number | No | Company phone | |
| website_url | No | Website URL |
Implementation Reference
- src/index.ts:1125-1137 (handler)The main handler function that implements the create_account tool logic. It sends a POST request to the Apollo API /accounts endpoint with the provided args, extracts the created account data, and returns a formatted text response with the account ID, name, and domain.private async createAccount(args: any) { const response = await this.axiosInstance.post("/accounts", args); const account = response.data.account; return { content: [ { type: "text", text: `Account created successfully!\nID: ${account.id}\nName: ${account.name}\nDomain: ${account.domain || "N/A"}`, }, ], }; }
- src/index.ts:516-542 (registration)The tool registration entry in the getTools() method, including the name, description, and input schema definition for the create_account tool.{ name: "create_account", description: "Create a new account/organization in Apollo with company details.", inputSchema: { type: "object", properties: { name: { type: "string", description: "Company name", }, domain: { type: "string", description: "Company domain", }, phone_number: { type: "string", description: "Company phone", }, website_url: { type: "string", description: "Website URL", }, }, required: ["name"], }, },
- src/index.ts:520-541 (schema)The input schema defining the parameters for the create_account tool: requires 'name', optional 'domain', 'phone_number', 'website_url'.inputSchema: { type: "object", properties: { name: { type: "string", description: "Company name", }, domain: { type: "string", description: "Company domain", }, phone_number: { type: "string", description: "Company phone", }, website_url: { type: "string", description: "Website URL", }, }, required: ["name"], },
- src/index.ts:92-93 (handler)The switch case in the tool request handler that dispatches to the createAccount method based on the tool name.case "create_account": return await this.createAccount(args);