Weld Custom Reports API

The Custom Reports API from Weld — 1 operation(s) for custom reports.

Operations 1

POST /custom_reports Create custom reports #

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/weld-custom-reports-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

weld-custom-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Weld REST Connection Bridge Custom Reports API
  description: With the Weld REST API you can programmatically control your syncs
  version: '0.1'
  contact: {}
servers:
- url: https://connect.weld.app
security:
- api_key: []
tags:
- name: Custom Reports
paths:
  /custom_reports:
    post:
      description: 'Create one or more custom reports (GAQL for Google Ads, ShopifyQL for Shopify) and attach them to the given ELT Syncs. Batchable: pass multiple items to create the same or different reports across many ELT Syncs in a single call. Each item is processed independently, so one failing item does not affect the others.'
      operationId: CustomReportsOpenApiController_createCustomReports
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCustomReportsRequestDto'
      responses:
        '201':
          description: The result of each requested custom report creation, in the same order as the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateCustomReportsResponseDto'
      summary: Create custom reports
      tags:
      - Custom Reports
components:
  schemas:
    CustomReportCreateItemDto:
      type: object
      properties:
        elt_sync_id:
          type: string
          description: The ID of the ELT Sync to attach the custom report to.
          example: X4ughggABSd3UY
        name:
          type: string
          description: The name of the custom report. Used to derive the resulting source stream name.
          example: Weekly Spend by Campaign
        query:
          type: string
          description: The query defining the report. GAQL for Google Ads connections, ShopifyQL for Shopify connections.
          example: SELECT campaign.id, campaign.name, metrics.cost_micros FROM campaign
      required:
      - elt_sync_id
      - name
      - query
    CustomReportCreateErrorDto:
      type: object
      properties:
        error_code:
          enum:
          - connection_error
          - connection_lost_access
          - invalid_query
          - not_found
          - unknown
          - unsupported_integration
          type: string
          description: A machine-readable category for the error. "connection_lost_access" means the connection needs to be reauthorized before retrying.
        message:
          type: string
          description: A human-readable message describing the error.
      required:
      - error_code
      - message
    CreateCustomReportsResponseDto:
      type: object
      properties:
        results:
          description: One result per requested custom report.
          type: array
          items:
            $ref: '#/components/schemas/CustomReportCreateResultDto'
      required:
      - results
    CreateCustomReportsRequestDto:
      type: object
      properties:
        reports:
          description: The custom reports to create. To duplicate the same report across many ELT Syncs, repeat the same name/query with a different elt_sync_id for each entry.
          type: array
          items:
            $ref: '#/components/schemas/CustomReportCreateItemDto'
        add_as_source_stream:
          type: boolean
          description: Whether to also register each created report as an active source stream on its ELT Sync so it starts syncing on the next run. Defaults to true.
          default: true
      required:
      - reports
    CustomReportCreateResultDto:
      type: object
      properties:
        elt_sync_id:
          type: string
          description: The ID of the ELT Sync the report was requested for.
        name:
          type: string
          description: The name of the custom report, as requested.
        source_stream_name:
          type: string
          description: The resulting source stream name. Present when the report was created successfully.
        error:
          description: Present when creation failed. Absence of this field means the report was created successfully.
          allOf:
          - $ref: '#/components/schemas/CustomReportCreateErrorDto'
      required:
      - elt_sync_id
      - name
  securitySchemes:
    api_key:
      type: apiKey
      name: x-api-key
      in: header
      description: The API key from Settings -> API Keys