SharksAPI.AI Marketing - Email API

The Marketing - Email API from SharksAPI.AI — 2 operation(s) for marketing - email.

GitHub OpenAPI

Operations 2

GET /ai/api/v1/marketing/emails Get Marketing Emails #
POST /ai/api/v1/marketing/emails/send Send Marketing Email #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sharksapi-ai:sharksapi-ai-marketing-email-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sharksapi-ai-marketing-email-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SharksAPI.AI Complete Marketing - Email API
  description: 'Complete API for SharksAPI.AI — the marketing platform: analytics, search, SEO, ads, social, e-mail and WordPress tools for AI agents. All data is fetched LIVE from platform APIs with OAuth2 Bearer authentication.'
  version: 3.0.0
servers:
- url: https://sharksapi.ai
security:
- BearerAuth: []
tags:
- name: Marketing - Email
paths:
  /ai/api/v1/marketing/emails:
    get:
      summary: Get Marketing Emails
      description: Retrieve emails from inbox with optional filters. Returns email list with full content and metadata.
      operationId: getMarketingEmails
      tags:
      - Marketing - Email
      parameters:
      - name: folder
        in: query
        description: 'Email folder to search (default: INBOX)'
        schema:
          type: string
          default: INBOX
      - name: unread_only
        in: query
        description: Show only unread emails
        schema:
          type: boolean
          default: false
      - name: from
        in: query
        description: Filter by sender email address
        schema:
          type: string
          format: email
      - name: subject_contains
        in: query
        description: Filter by subject text
        schema:
          type: string
      - name: limit
        in: query
        description: 'Maximum number of emails to return (max: 50)'
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 20
      responses:
        '200':
          description: List of emails with full content
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                    description: Number of emails returned
                  emails:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        from:
                          type: string
                        to:
                          type: string
                        subject:
                          type: string
                        date:
                          type: string
                        seen:
                          type: boolean
                        body:
                          type: string
                        size:
                          type: integer
        '400':
          description: Bad request - No active email connection found
        '500':
          description: Server error - Failed to retrieve emails
  /ai/api/v1/marketing/emails/send:
    post:
      summary: Send Marketing Email
      description: Send an email immediately to a recipient using the configured SMTP connection
      operationId: sendMarketingEmail
      tags:
      - Marketing - Email
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - to
              - subject
              - body
              properties:
                to:
                  type: string
                  format: email
                  description: Recipient email address
                subject:
                  type: string
                  description: Email subject line
                  maxLength: 255
                body:
                  type: string
                  description: Email body content (plain text or HTML)
                  maxLength: 10000
      responses:
        '200':
          description: Email sent successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Email sent successfully
        '400':
          description: Bad request - No active email connection found
        '422':
          description: Validation error - Invalid email format or missing required fields
        '500':
          description: Server error - Failed to send email
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer