Loops · OpenAPI Overlay 1.0.0

API Evangelist enhancements — Loops Audience segments API

5 actions 5 updates update extends loops-audience-segments-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Loops's API. It is a proposal applied on top of the contract, not a document Loops publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-rate-limitx-rate-limit-headersx-error-envelopecontacttermsOfServicex-api-evangelistexternalDocs

Targets 5

$.info
$
$.paths['/audience-segments/{audienceSegmentId}'].get
$.paths['/audience-segments'].get
$.paths['/audience-segments'].post

OpenAPI Overlay

Raw ↑
overlay: 1.0.0
info:
  title: API Evangelist enhancements — Loops Audience segments API
  version: 1.0.0
  x-description: 'OpenAPI Overlay 1.0.0 capturing the enhancements API Evangelist derived for the Loops Audience segments API. It does NOT modify the provider contract on disk: openapi/loops-audience-segments-api-openapi.yml is saved verbatim from https://app.loops.so/openapi.json and this overlay is applied on top. Everything added here is sourced from Loops'' own published documentation — the rate-limit tiers and response headers from https://loops.so/docs/api-reference/intro, the error envelope from the spec''s own 4xx schemas, and the Idempotency-Key contract from the header parameter Loops declares on its two send operations. Nothing is invented.'
extends: loops-audience-segments-api-openapi.yml
x-generated: '2026-08-13'
x-method: generated
x-source: https://loops.so/docs/api-reference/intro + openapi/_original/loops-openapi.yaml (1.21.6)
actions:
- target: $.info
  description: Attach the public documentation and machine-readable contract locations, which the source document omits.
  update:
    contact:
      name: Loops Support
      url: https://app.loops.so/settings?page=support
      email: help@loops.so
    termsOfService: https://loops.so/terms
    x-api-evangelist:
      provider: loops
      artifact-set: https://github.com/api-evangelist/loops
- target: $
  description: Add externalDocs pointing at the Loops API reference and the canonical published spec.
  update:
    externalDocs:
      description: Loops API reference
      url: https://loops.so/docs/api-reference/intro
- target: $.paths['/audience-segments/{audienceSegmentId}'].get
  description: Annotate getAudienceSegment with the published runtime semantics (rate limit tier, rate-limit response headers, error envelope).
  update:
    x-rate-limit:
      limit: 10
      window: 1s
      scope: team
      tier: default
    x-rate-limit-headers:
    - x-ratelimit-limit
    - x-ratelimit-remaining
    x-error-envelope:
      format: proprietary-json
      fields:
      - success
      - message
      deprecated_fields:
      - error
      - path
      rfc9457: false
- target: $.paths['/audience-segments'].get
  description: Annotate listAudienceSegments with the published runtime semantics (rate limit tier, rate-limit response headers, error envelope).
  update:
    x-rate-limit:
      limit: 10
      window: 1s
      scope: team
      tier: default
    x-rate-limit-headers:
    - x-ratelimit-limit
    - x-ratelimit-remaining
    x-error-envelope:
      format: proprietary-json
      fields:
      - success
      - message
      deprecated_fields:
      - error
      - path
      rfc9457: false
- target: $.paths['/audience-segments'].post
  description: Annotate createAudienceSegment with the published runtime semantics (rate limit tier, rate-limit response headers, error envelope).
  update:
    x-rate-limit:
      limit: 10
      window: 1s
      scope: team
      tier: default
    x-rate-limit-headers:
    - x-ratelimit-limit
    - x-ratelimit-remaining
    x-error-envelope:
      format: proprietary-json
      fields:
      - success
      - message
      deprecated_fields:
      - error
      - path
      rfc9457: false