Aveco Admin Email API

The admin-email API from Aveco — 6 operation(s) for admin-email.

Operations 7

POST /api/admin/newsletter/send Send Newsletter #
POST /api/admin/newsletter/preview Preview Newsletter #
POST /api/admin/winback/trigger Trigger Winback Campaign #
GET /api/admin/discounts List Discount Codes #
POST /api/admin/discounts Create Discount Code #
POST /api/admin/discounts/{discount_id}/toggle Toggle Discount Code #
GET /api/admin/email-stats Get Email Statistics #

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/aveco-app:aveco-app-admin-email-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

aveco-app-admin-email-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Aveco Admin Email API
  version: 0.1.0
tags:
- name: admin-email
paths:
  /api/admin/newsletter/send:
    post:
      tags:
      - admin-email
      summary: Send Newsletter
      description: 'Send newsletter to all active users


        Требуется роль: owner/admin'
      operationId: send_newsletter_api_admin_newsletter_send_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_send_newsletter_api_admin_newsletter_send_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/newsletter/preview:
    post:
      tags:
      - admin-email
      summary: Preview Newsletter
      description: 'Preview newsletter before sending

        Returns HTML preview of newsletter'
      operationId: preview_newsletter_api_admin_newsletter_preview_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_preview_newsletter_api_admin_newsletter_preview_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/winback/trigger:
    post:
      tags:
      - admin-email
      summary: Trigger Winback Campaign
      description: 'Manually trigger winback campaign for inactive users


        Parameters:

        - days_inactive: Find users inactive for this many days (default 30)

        - discount_percent: Discount percentage (default 20)

        - discount_valid_days: How many days the discount code is valid (default 3)'
      operationId: trigger_winback_campaign_api_admin_winback_trigger_post
      parameters:
      - name: days_inactive
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days Inactive
      - name: discount_percent
        in: query
        required: false
        schema:
          type: integer
          default: 20
          title: Discount Percent
      - name: discount_valid_days
        in: query
        required: false
        schema:
          type: integer
          default: 3
          title: Discount Valid Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/discounts:
    get:
      tags:
      - admin-email
      summary: List Discount Codes
      description: List all discount codes (owner only)
      operationId: list_discount_codes_api_admin_discounts_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    post:
      tags:
      - admin-email
      summary: Create Discount Code
      description: 'Manually create a discount code (owner only).


        Every code is one-time-use per account by construction — enforced

        unconditionally at redemption (legacy, no redeemer left), not as a per-code option. A code''s

        max_uses (optional) caps how many *different* accounts can redeem it.'
      operationId: create_discount_code_api_admin_discounts_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_create_discount_code_api_admin_discounts_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/discounts/{discount_id}/toggle:
    post:
      tags:
      - admin-email
      summary: Toggle Discount Code
      description: Enable or disable a discount code (owner only).
      operationId: toggle_discount_code_api_admin_discounts__discount_id__toggle_post
      parameters:
      - name: discount_id
        in: path
        required: true
        schema:
          type: integer
          title: Discount Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/admin/email-stats:
    get:
      tags:
      - admin-email
      summary: Get Email Statistics
      description: Get email campaign statistics
      operationId: get_email_statistics_api_admin_email_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    Body_preview_newsletter_api_admin_newsletter_preview_post:
      properties:
        title:
          type: string
          title: Title
        items_json:
          type: string
          title: Items Json
        tip_content:
          type: string
          title: Tip Content
      type: object
      required:
      - title
      - items_json
      title: Body_preview_newsletter_api_admin_newsletter_preview_post
    Body_create_discount_code_api_admin_discounts_post:
      properties:
        code:
          type: string
          title: Code
        discount_type:
          type: string
          title: Discount Type
        discount_value:
          type: number
          title: Discount Value
        reason:
          type: string
          title: Reason
        max_uses:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Uses
        expires_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Expires At
      type: object
      required:
      - code
      - discount_type
      - discount_value
      - reason
      title: Body_create_discount_code_api_admin_discounts_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Body_send_newsletter_api_admin_newsletter_send_post:
      properties:
        title:
          type: string
          title: Title
        items_json:
          type: string
          title: Items Json
        tip_content:
          type: string
          title: Tip Content
      type: object
      required:
      - title
      - items_json
      title: Body_send_newsletter_api_admin_newsletter_send_post
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError