Method Security Environments API

The environments API from Method Security — 2 operation(s) for environments.

Operations 5

POST /method-api-gateway/api/v1/environments/ Create Environment #
POST /method-api-gateway/api/v1/environments/{environmentId}/intel Upload Environment Intel #
GET /method-api-gateway/api/v1/environments/{environmentId} Get Environment #
GET /method-api-gateway/api/v1/environments/{environmentId}/tag-hierarchy Get Environment Tag Hierarchy #
POST /method-api-gateway/api/v1/environments/search Search Environments #

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/method-security:method-security-environments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

method-security-environments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Method Security Environments API
  version: 1.0.0
  description: 'Operations tagged environments across 2 of this provider''s published API definitions: method-security-openapi-original.yml, method-security-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Environments
paths:
  /method-api-gateway/api/v1/environments/:
    post:
      operationId: createEnvironment
      summary: Create Environment
      description: Create a new Method environment.
      tags:
      - Environments
      parameters:
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_v1_environments_CreateEnvironmentResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/type_v1_environments_CreateEnvironmentRequest'
  /method-api-gateway/api/v1/environments/{environmentId}/intel:
    post:
      operationId: uploadEnvironmentIntel
      summary: Upload Environment Intel
      description: Upload an intelligence attachment and associate it with an environment.
      tags:
      - Environments
      parameters:
      - name: environmentId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/type_common_EnvironmentId'
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_v1_environments_UploadEnvironmentIntelResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/type_v1_environments_UploadEnvironmentIntelRequest'
  /method-api-gateway/api/v1/environments/{environmentId}:
    get:
      operationId: environments_getEnvironment
      summary: Get Environment
      description: Retrieve an environment from Method using its ID.
      tags:
      - Environments
      parameters:
      - name: environmentId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/common_EnvironmentId'
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1_environments_Environment'
      security:
      - client-credentials: []
  /method-api-gateway/api/v1/environments/{environmentId}/tag-hierarchy:
    get:
      operationId: environments_getEnvironmentTagHierarchy
      summary: Get Environment Tag Hierarchy
      description: Retrieve the ordered environment tag hierarchy paths containing an environment.
      tags:
      - Environments
      parameters:
      - name: environmentId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/common_EnvironmentId'
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                type: array
                items:
                  type: array
                  items:
                    $ref: '#/components/schemas/v1_tags_Tag'
      security:
      - client-credentials: []
  /method-api-gateway/api/v1/environments/search:
    post:
      operationId: environments_searchEnvironments
      summary: Search Environments
      description: 'Search environments. Omit filter to return all.

        tags matches environments that have any of the given tag ids.'
      tags:
      - Environments
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1_environments_SearchEnvironmentsResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1_environments_SearchEnvironmentsRequest'
      security:
      - client-credentials: []
components:
  schemas:
    type_common_EnvironmentId:
      type: string
      description: The unique identifier for an environment in Method
      title: EnvironmentId
    type_v1_environments_CreateEnvironmentResponse:
      type: object
      properties:
        environmentId:
          $ref: '#/components/schemas/type_common_EnvironmentId'
      required:
      - environmentId
      title: CreateEnvironmentResponse
    type_v1_environments_UploadEnvironmentIntelRequest:
      type: object
      properties:
        filename:
          type: string
          description: Name to store for the uploaded file.
        mimeType:
          type: string
          description: MIME type of the uploaded file, if known.
        contentBase64:
          type: string
          description: Base64-encoded file content.
      required:
      - filename
      - contentBase64
      description: Request to upload environment intelligence content.
      title: UploadEnvironmentIntelRequest
    type_v1_environments_AttachmentId:
      type: string
      description: The unique identifier for an uploaded attachment in Method.
      title: AttachmentId
    type_v1_environments_UploadEnvironmentIntelResponse:
      type: object
      properties:
        attachmentId:
          $ref: '#/components/schemas/type_v1_environments_AttachmentId'
      required:
      - attachmentId
      title: UploadEnvironmentIntelResponse
    type_v1_environments_CreateEnvironmentRequest:
      type: object
      properties:
        title:
          type: string
          description: Human-readable environment title.
      required:
      - title
      description: Request to create an environment.
      title: CreateEnvironmentRequest
    v1_environments_EnvironmentNetworkType:
      type: string
      enum:
      - ON_PREM
      - CLOUD
      - HYBRID
      title: EnvironmentNetworkType
    v1_environments_CreateEnvironmentRequest:
      type: object
      properties:
        title:
          type: string
          description: Human-readable environment title.
      required:
      - title
      description: Request to create an environment.
      title: CreateEnvironmentRequest
    v1_environments_EnvironmentFilter:
      oneOf:
      - type: object
        properties:
          type:
            type: string
            enum:
            - andFilter
            description: 'Discriminator value: andFilter'
          filters:
            type: array
            items:
              $ref: '#/components/schemas/v1_environments_EnvironmentFilter'
        required:
        - type
        - filters
      - type: object
        properties:
          type:
            type: string
            enum:
            - orFilter
            description: 'Discriminator value: orFilter'
          filters:
            type: array
            items:
              $ref: '#/components/schemas/v1_environments_EnvironmentFilter'
        required:
        - type
        - filters
      - type: object
        properties:
          type:
            type: string
            enum:
            - notFilter
            description: 'Discriminator value: notFilter'
          filter:
            $ref: '#/components/schemas/v1_environments_EnvironmentFilter'
        required:
        - type
        - filter
      - type: object
        properties:
          type:
            type: string
            enum:
            - tags
            description: 'Discriminator value: tags'
          tagIds:
            type: array
            items:
              $ref: '#/components/schemas/common_TagId'
        required:
        - type
        - tagIds
      discriminator:
        propertyName: type
      title: EnvironmentFilter
    v1_environments_Environment:
      type: object
      properties:
        environmentId:
          $ref: '#/components/schemas/common_EnvironmentId'
        title:
          type: string
        networkType:
          $ref: '#/components/schemas/v1_environments_EnvironmentNetworkType'
      required:
      - environmentId
      - title
      title: Environment
    v1_environments_AttachmentId:
      type: string
      description: The unique identifier for an uploaded attachment in Method.
      title: AttachmentId
    v1_environments_CreateEnvironmentResponse:
      type: object
      properties:
        environmentId:
          $ref: '#/components/schemas/common_EnvironmentId'
      required:
      - environmentId
      title: CreateEnvironmentResponse
    v1_environments_UploadEnvironmentIntelResponse:
      type: object
      properties:
        attachmentId:
          $ref: '#/components/schemas/v1_environments_AttachmentId'
      required:
      - attachmentId
      title: UploadEnvironmentIntelResponse
    common_TagId:
      type: string
      description: The unique identifier for a tag in Method.
      title: TagId
    v1_tags_Tag:
      type: object
      properties:
        tagId:
          $ref: '#/components/schemas/common_TagId'
        value:
          type: string
        namespaces:
          type: array
          items:
            $ref: '#/components/schemas/v1_tags_TagNamespace'
      required:
      - tagId
      - value
      - namespaces
      title: Tag
    v1_environments_UploadEnvironmentIntelRequest:
      type: object
      properties:
        filename:
          type: string
          description: Name to store for the uploaded file.
        mimeType:
          type: string
          description: MIME type of the uploaded file, if known.
        contentBase64:
          type: string
          description: Base64-encoded file content.
      required:
      - filename
      - contentBase64
      description: Request to upload environment intelligence content.
      title: UploadEnvironmentIntelRequest
    v1_tags_TagNamespace:
      type: string
      enum:
      - ENVIRONMENT
      title: TagNamespace
    v1_environments_SearchEnvironmentsRequest:
      type: object
      properties:
        filter:
          $ref: '#/components/schemas/v1_environments_EnvironmentFilter'
        pagingToken:
          type: string
        pageSize:
          type: integer
          description: Maximum 100. If omitted, the service default is used.
      title: SearchEnvironmentsRequest
    common_EnvironmentId:
      type: string
      description: The unique identifier for an environment in Method
      title: EnvironmentId
    v1_environments_SearchEnvironmentsResponse:
      type: object
      properties:
        environments:
          type: array
          items:
            $ref: '#/components/schemas/v1_environments_Environment'
        pagingToken:
          type: string
      required:
      - environments
      title: SearchEnvironmentsResponse
  securitySchemes:
    client-credentials:
      type: http
      scheme: bearer
x-refined-from:
- method-security-openapi-original.yml
- method-security-openapi.yml