openapi: 3.2.0 info: title: APImetrics Suppliers API description: API for the APImetrics platform termsOfService: http://apimetrics.io/tos/ contact: name: APIContext Support url: https://apicontext.io/ email: support@apicontext.com license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html version: v2026-09-02 tags: - name: Suppliers paths: /api/3/suppliers: get: tags: - Suppliers summary: List-Suppliers description: Return a categorised list of suppliers. operationId: list-suppliers responses: '200': description: Successful Response content: application/json: schema: additionalProperties: true type: object title: Response List-Suppliers /api/3/project/suppliers: get: tags: - Suppliers summary: Get-Project-Suppliers description: Return the list of enabled suppliers for the selected project. operationId: get-project-suppliers security: - OAuth2: [] - ApiKey: [] parameters: - name: apimetrics-project-id in: header required: false schema: anyOf: - type: string - type: 'null' title: Apimetrics-Project-Id responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Get-Project-Suppliers '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' put: tags: - Suppliers summary: Put-Project-Suppliers description: Set the list of enabled suppliers for the selected project operationId: put-project-suppliers security: - OAuth2: [] - ApiKey: [] parameters: - name: apimetrics-project-id in: header required: false schema: anyOf: - type: string - type: 'null' title: Apimetrics-Project-Id requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ProjectSuppliersRequestBody' responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Put-Project-Suppliers '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/3/project/suppliers/results: get: tags: - Suppliers summary: Get-Suppliers-Results description: Query the current supplier results for the selected project operationId: get-suppliers-results security: - OAuth2: [] - ApiKey: [] parameters: - name: apimetrics-project-id in: header required: false schema: anyOf: - type: string - type: 'null' title: Apimetrics-Project-Id responses: '200': description: Successful Response content: application/json: schema: type: object additionalProperties: true title: Response Get-Suppliers-Results '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' components: schemas: ProjectSuppliersRequestBody: properties: project_key_strs: items: type: string type: array title: Project Key Strs type: object required: - project_key_strs title: ProjectSuppliersRequestBody HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError 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 securitySchemes: OAuth2: type: oauth2 flows: authorizationCode: scopes: openid: OpenID Connect identity profile: User profile email: User email address authorizationUrl: https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io tokenUrl: https://auth.apimetrics.io/oauth/token ApiKey: type: apiKey in: header name: X-Api-Key