APIContext Conditions API

Project-default post-test conditions.

Operations 2

GET /api/2/conditions/ Get-Project-Conditions #
POST /api/2/conditions/ Set-Project-Conditions #

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/apicontext-conditions-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

apicontext-conditions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: APImetrics Conditions 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: Conditions
  description: Project-default post-test conditions.
paths:
  /api/2/conditions/:
    get:
      tags:
      - Conditions
      summary: Get-Project-Conditions
      description: 'Get the project-default post-test conditions.


        An untouched project returns the built-in default conditionals rather than an

        empty list.'
      operationId: get-project-conditions
      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:
                $ref: '#/components/schemas/ProjectConditionsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Conditions
      summary: Set-Project-Conditions
      description: Replace the project-default post-test conditions.
      operationId: set-project-conditions
      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/PostProjectConditionsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectConditionsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ProjectConditionsMeta:
      properties:
        project_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Project Id
          description: The project the conditions belong to.
      type: object
      title: ProjectConditionsMeta
    PostProjectConditionsRequest:
      properties:
        conditions:
          items:
            $ref: '#/components/schemas/ConditionalModel'
          type: array
          title: Conditions
          description: The full set of conditionals; replaces any existing set.
      type: object
      required:
      - conditions
      title: PostProjectConditionsRequest
    ProjectConditionsResponse:
      properties:
        conditions:
          items:
            $ref: '#/components/schemas/ConditionalModel'
          type: array
          title: Conditions
        meta:
          $ref: '#/components/schemas/ProjectConditionsMeta'
      type: object
      required:
      - conditions
      title: ProjectConditionsResponse
    ConditionalModel:
      properties:
        source:
          type: string
          title: Source
        source_index:
          anyOf:
          - type: integer
          - type: 'null'
          title: Source Index
        variable_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Variable Name
        variable_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Variable Path
        condition:
          type: string
          title: Condition
        val:
          anyOf:
          - type: string
          - type: 'null'
          title: Val
        test_result_on_true:
          title: Test Result On True
        test_result_on_false:
          title: Test Result On False
      type: object
      required:
      - source
      - condition
      title: ConditionalModel
    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