TrendsAGI Export API

The Export API from TrendsAGI — 6 operation(s) for export.

GitHub OpenAPI

Operations 8

GET /api/user/export/settings Retrieve configured cloud export destinations #
POST /api/user/export/settings Create or update a cloud destination for on-demand export delivery #
GET /api/user/export/configurations/{config_id} Retrieve one owned destination using the same redacted write-only credential… #
PUT /api/user/export/configurations/{config_id} Update an owned destination #
POST /api/user/export/configurations/{config_id}/run-now Authorize, reserve, and queue one export from an active owned configuration #
GET /api/user/export/usage Retrieve today's in-flight and successful manual-export usage using the same… #
GET /api/user/export/history List the authenticated user's export execution records for completion polling… #
DELETE /api/user/export/settings/{config_id} Delete an owned export destination #

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/trendsagi-com:trendsagi-com-export-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

trendsagi-com-export-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TrendsAGI Export API
  version: 1.0.0
  description: 'REST API for measured trending-topic volume, velocity and growth, AI-generated trend insights, recommendations, alerts, exports and integrations. A free Developer plan includes 100 API calls per day; paid plans raise the limits. Documentation: https://trendsagi.com/api-docs'
  termsOfService: https://trendsagi.com/terms
  contact:
    name: TrendsAGI
    url: https://trendsagi.com
servers:
- url: https://api.trendsagi.com
security:
- ApiKeyAuth: []
- BearerAuth: []
tags:
- name: Export
paths:
  /api/user/export/settings:
    get:
      tags:
      - Export
      operationId: getExportConfigs
      summary: Retrieve configured cloud export destinations
      description: Retrieve configured cloud export destinations. Exports are on demand and start only when an authorized Scale user selects Run Now.
      x-plan-tier: Scale
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items: {}
              example:
              - id: 1
                user_id: 7
                destination: aws
                config:
                  bucket: customer-signal-exports
                  region: eu-west-2
                  accessKeyId: '********'
                  secretAccessKey: '********'
                schedule: manual
                is_active: true
                selected_fields:
                - trend_name
                - snapshot_volume
                report_kind: sql_custom
                created_at: '2026-07-18T09:00:00Z'
                updated_at: '2026-07-18T09:00:00Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      tags:
      - Export
      operationId: createExportConfig
      summary: Create or update a cloud destination for on-demand export delivery
      description: 'Create or update a cloud destination for on-demand export delivery. Destination credentials are encrypted at rest and redacted from API responses.


        Scheduled tenant exports are not offered. Legacy daily settings are normalized to manual during migration 057.'
      x-plan-tier: Scale
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
              example:
                id: 2
                user_id: 7
                destination: aws
                config:
                  bucket: customer-signal-exports
                  region: eu-west-2
                  accessKeyId: '********'
                  secretAccessKey: '********'
                schedule: manual
                is_active: true
                selected_fields:
                - trend_name
                - snapshot_volume
                report_kind: sql_custom
                created_at: '2026-07-18T09:00:00Z'
                updated_at: '2026-07-18T09:00:00Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
      requestBody:
        description: Export configuration.
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                destination:
                  type: string
                  description: 'Required. Cloud provider: "aws", "azure", "gcp", "snowflake".'
                config:
                  type: object
                  description: Required. Provider-specific credentials and settings.
                schedule:
                  type: string
                  description: Optional compatibility field. Only "manual" or "none" is accepted; both require Run Now.
                selected_fields:
                  type: array
                  items:
                    type: string
                  description: Required. List of field IDs to export.
              required:
              - destination
              - config
              - selected_fields
  /api/user/export/configurations/{config_id}:
    get:
      tags:
      - Export
      operationId: getExportConfig
      summary: Retrieve one owned destination using the same redacted write-only credential…
      description: Retrieve one owned destination using the same redacted write-only credential contract as the settings list.
      x-plan-tier: Scale
      parameters:
      - name: config_id
        in: path
        required: true
        description: The owned export configuration ID.
        schema:
          type: integer
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
              example:
                id: 2
                user_id: 7
                destination: aws
                config:
                  bucket: customer-signal-exports
                  region: eu-west-2
                  accessKeyId: '********'
                  secretAccessKey: '********'
                schedule: manual
                is_active: true
                selected_fields:
                - trend_name
                - snapshot_volume
                report_kind: sql_custom
                created_at: '2026-07-18T09:00:00Z'
                updated_at: '2026-07-18T09:00:00Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
    put:
      tags:
      - Export
      operationId: updateExportConfig
      summary: Update an owned destination
      description: Update an owned destination. Omit masked or blank write-only credentials to keep the stored value; provide a new value to rotate it.
      x-plan-tier: Scale
      parameters:
      - name: config_id
        in: path
        required: true
        description: The owned export configuration ID.
        schema:
          type: integer
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
              example:
                id: 2
                destination: aws
                schedule: manual
                is_active: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
      requestBody:
        description: Full destination settings using the create contract.
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                destination:
                  type: string
                  description: Required supported destination.
                config:
                  type: object
                  description: Provider settings; unchanged write-only values may be omitted.
                schedule:
                  type: string
                  description: Use "manual".
                is_active:
                  type: boolean
                  description: Whether Run Now is enabled.
                selected_fields:
                  type: array
                  items:
                    type: string
                  description: Fields for a sql_custom export.
              required:
              - destination
  /api/user/export/configurations/{config_id}/run-now:
    post:
      tags:
      - Export
      operationId: runExportNow
      summary: Authorize, reserve, and queue one export from an active owned configuration
      description: 'Authorize, reserve, and queue one export from an active owned configuration. Success means the task broker acknowledged the work, not that cloud delivery has finished.


        Poll export history for execution_log_id until status is success, failed, or skipped.


        Daily exhaustion returns 429, X-Error-Code: EXPORT_LIMIT_REACHED, code EXPORT_LIMIT_REACHED, current_usage, and daily_limit.


        A queue outage returns an error and records a failed attempt without consuming the successful/in-flight daily quota.'
      x-plan-tier: Scale
      parameters:
      - name: config_id
        in: path
        required: true
        description: The active owned export configuration ID.
        schema:
          type: integer
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
              example:
                success: true
                message: Export triggered successfully
                execution_log_id: 91
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /api/user/export/usage:
    get:
      tags:
      - Export
      operationId: getExportUsage
      summary: Retrieve today's in-flight and successful manual-export usage using the same…
      description: Retrieve today's in-flight and successful manual-export usage using the same status set as Run Now enforcement.
      x-plan-tier: Scale
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
              example:
                current_usage: 1
                daily_limit: 25
                plan_name: Scale
                is_unlimited: false
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /api/user/export/history:
    get:
      tags:
      - Export
      operationId: getExportHistory
      summary: List the authenticated user's export execution records for completion polling…
      description: List the authenticated user's export execution records for completion polling and audit.
      x-plan-tier: Scale
      parameters:
      - name: limit
        in: query
        required: false
        description: Optional. 1-100, default 20.
        schema:
          type: integer
      - name: offset
        in: query
        required: false
        description: Optional non-negative offset.
        schema:
          type: integer
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
              example:
                history:
                - id: 91
                  export_configuration_id: 2
                  execution_time: '2026-07-18T09:15:00Z'
                  destination: aws
                  status: success
                  records_exported: 250
                meta:
                  total: 1
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /api/user/export/settings/{config_id}:
    delete:
      tags:
      - Export
      operationId: deleteExportConfig
      summary: Delete an owned export destination
      description: Delete an owned export destination.
      x-plan-tier: Scale
      parameters:
      - name: config_id
        in: path
        required: true
        description: The owned export configuration ID.
        schema:
          type: integer
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
              example:
                message: Export configuration deleted
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
    RateLimited:
      description: Daily or per-second plan limit reached
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key from your TrendsAGI account settings.
    BearerAuth:
      type: http
      scheme: bearer
      description: 'The same API key sent as `Authorization: Bearer <key>`.'
externalDocs:
  description: TrendsAGI API documentation
  url: https://trendsagi.com/api-docs