openapi: 3.0.3
info:
  title: Everflow Marketplace API - API Keys
  description: >
    API key endpoints for the Everflow marketplace partner API. Retrieve affiliate
    API keys associated with marketplace connections.
    For more detail, see [Managing Your Marketplace API Keys](https://helpdesk.everflow.io/collaborator/managing-your-marketplace-api-keys) in the Help Center.
  version: 1.0.0
servers:
  - description: Production Server
    url: https://api.eflow.team/v1
tags:
  - name: Marketplace API Keys
    description: Endpoints for retrieving affiliate API keys across marketplace connections.
paths:
  /partners/connections/apikeys/list:
    get:
      summary: Get All API Keys
      tags:
        - Marketplace API Keys
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                type: object
                properties:
                  keys:
                    type: array
                    description: Array of API key objects, one per marketplace connection.
                    items:
                      type: object
                      properties:
                        advertiser_id:
                          type: integer
                          description: The network/advertiser ID for this connection.
                        advertiser_name:
                          type: string
                          description: The name of the network/advertiser.
                        api_key:
                          type: string
                          description: >
                            The affiliate API key for this connection. Use this key
                            with the Affiliate API endpoints.
      security:
        - API Key: []
components:
  securitySchemes:
    API Key:
      description: >
        The marketplace partner's API key. Uses the X-Eflow-Api-Key header.
        The key belongs to the marketplace partner user.
      in: header
      name: X-Eflow-Api-Key
      type: apiKey
