openapi: 3.2.0 info: title: SmartLead Smart Senders API version: 1.0.0 description: '# SmartLead API Documentation Welcome to the SmartLead API! SmartLead is a comprehensive cold email outreach platform that helps you manage email campaigns, leads, email accounts, and analytics. ## Base URL All API requests should be made to: ``` https://server.smartlead.ai/api ``` ## Authentication SmartLead uses API keys for authentication. Include your API key as a query parameter in all requests: ``` ?api_key=YOUR_API_KEY ``` You can generate your API key from your SmartLead dashboard under Settings > API Keys. ## Rate Limiting API requests are rate-limited to ensure fair usage. If you exceed the rate limit, you''ll receive a 429 error. ## Support For API support, contact support@smartlead.ai or visit https://smartlead.ai ' contact: name: SmartLead Support email: support@smartlead.ai url: https://smartlead.ai license: name: Proprietary url: https://smartlead.ai/terms servers: - url: https://server.smartlead.ai/api description: Production server - url: https://staging.smartlead.ai/api description: Staging server (for testing) security: - ApiKeyAuth: [] tags: - name: Smart Senders description: Automated email account provisioning marketplace paths: /v1/smart-senders/vendors: get: tags: - Smart Senders summary: Get Vendors description: 'Get list of mailbox vendors with pricing and service details. **Note:** Smart Senders is a marketplace feature. Contact support@smartlead.ai for access. ' operationId: getVendors parameters: - $ref: '#/components/parameters/ApiKeyParam' responses: '200': description: Vendors retrieved successfully content: application/json: schema: type: object properties: success: type: boolean data: type: array items: type: object '401': $ref: '#/components/responses/UnauthorizedError' '500': $ref: '#/components/responses/InternalServerError' /v1/smart-senders/domain/search: get: tags: - Smart Senders summary: Search Domain description: 'Search for available domains for mailbox purchase. ' operationId: searchDomain parameters: - $ref: '#/components/parameters/ApiKeyParam' - name: query in: query required: true schema: type: string responses: '200': description: Domain search results retrieved successfully content: application/json: schema: type: object properties: success: type: boolean data: type: array items: type: object '401': $ref: '#/components/responses/UnauthorizedError' '500': $ref: '#/components/responses/InternalServerError' /v1/smart-senders/domains: get: tags: - Smart Senders summary: Get Domain List description: 'Get list of purchased or available domains. ' operationId: getDomainList parameters: - $ref: '#/components/parameters/ApiKeyParam' responses: '200': description: Domain list retrieved successfully content: application/json: schema: type: object properties: success: type: boolean data: type: array items: type: object '401': $ref: '#/components/responses/UnauthorizedError' '500': $ref: '#/components/responses/InternalServerError' /v1/smart-senders/order: post: tags: - Smart Senders summary: Place Order description: 'Place an order for mailbox purchase from a vendor. ' operationId: placeOrder parameters: - $ref: '#/components/parameters/ApiKeyParam' requestBody: required: true content: application/json: schema: type: object required: - vendor_id - quantity properties: vendor_id: type: integer quantity: type: integer domain: type: string responses: '200': description: Order placed successfully content: application/json: schema: type: object properties: success: type: boolean order_id: type: integer '401': $ref: '#/components/responses/UnauthorizedError' '422': $ref: '#/components/responses/ValidationError' '500': $ref: '#/components/responses/InternalServerError' /v1/smart-senders/auto-generate: post: tags: - Smart Senders summary: Auto-Generate Mailboxes description: 'Automatically generate and configure mailboxes. ' operationId: autoGenerateMailboxes parameters: - $ref: '#/components/parameters/ApiKeyParam' requestBody: required: true content: application/json: schema: type: object required: - count properties: count: type: integer domain: type: string responses: '200': description: Mailboxes generated successfully content: application/json: schema: type: object properties: success: type: boolean mailboxes: type: array items: type: object '401': $ref: '#/components/responses/UnauthorizedError' '422': $ref: '#/components/responses/ValidationError' '500': $ref: '#/components/responses/InternalServerError' components: responses: ValidationError: description: Request validation failed content: application/json: schema: type: object properties: error: type: string example: Invalid parameters provided UnauthorizedError: description: Unauthorized - Invalid or missing API key content: application/json: schema: type: object properties: message: type: string example: Invalid API Key example: message: Invalid API Key InternalServerError: description: Internal server error content: application/json: schema: type: object properties: error: type: string example: Internal server error occurred parameters: ApiKeyParam: name: api_key in: query description: Your SmartLead API key for authentication required: true schema: type: string example: REDACTED_STRIPE_KEY securitySchemes: ApiKeyAuth: type: apiKey in: query name: api_key description: 'Your SmartLead API key. You can generate this from your dashboard under Settings > API Keys. Include this as a query parameter in all API requests: ``` ?api_key=YOUR_API_KEY ``` '