Gravitee 🧪 V4 - API Plans API

The 🧪 V4 - API Plans API from Gravitee — 6 operation(s) for 🧪 v4 - api plans.

Operations 9

GET /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans 🧪 List plans for an API #
POST /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans 🧪 Create a plan #
GET /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan} 🧪 Get a plan #
PUT /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan} 🧪 Update a plan #
DELETE /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan} 🧪 Delete a plan #
POST /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan}/_close 🧪 Close a plan #
POST /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan}/_deprecate 🧪 Deprecate a plan #
POST /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan}/_depreciate 🧪 Deprecated, use '_deprecate' instead. Deprecate a plan #
POST /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan}/_publish 🧪 Publicly publish plan #

Documentation

Specifications

SDKs

Schemas & Data

Other Resources

🔗
ChangeLog
https://documentation.gravitee.io/apim/release-information/changelog
🔗
License
https://github.com/gravitee-io/gravitee-api-management/blob/master/LICENSE.txt
🔗
SDKs
https://github.com/gravitee-io/gravitee-clients-sdk
🔗
SDKs
https://github.com/gravitee-io/terraform-provider-apim
🔗
CLI
https://github.com/gravitee-io/graviteeio-cli
🔗
KubernetesOperator
https://github.com/gravitee-io/gravitee-kubernetes-operator
🔗
HelmChart
https://github.com/gravitee-io/helm-charts
🔗
DockerImage
https://hub.docker.com/r/graviteeio/apim-gateway
🔗
JSONLDContext
https://artifacts.apis.io/gravitee/json-ld/gravitee-context.jsonld
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_apidefinitions.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_apiv4definitions.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_apiresources.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_applications.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_subscriptions.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_managementcontexts.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_sharedpolicygroups.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_groups.yaml
🔗
KubernetesCRD
https://artifacts.apis.io/gravitee/crd/gravitee.io_notifications.yaml
🔗
Plans
https://artifacts.apis.io/gravitee/plans/gravitee-plans-pricing.yml
🔗
FinOps
https://artifacts.apis.io/gravitee/finops/gravitee-finops.yml
🔗
Reference
https://documentation.gravitee.io/am/reference/am-api-reference
🔗
ChangeLog
https://documentation.gravitee.io/am/releases-and-changelog/release-notes
🔗
License
https://github.com/gravitee-io/gravitee-access-management/blob/master/LICENSE
🔗
SDKs
https://github.com/gravitee-io/gravitee-access-management/tree/master/gravitee-am-management-api-sdk-java
🔗
HelmChart
https://github.com/gravitee-io/helm-charts/tree/master/helm/gravitee-am
🔗
DockerImage
https://hub.docker.com/r/graviteeio/am-gateway

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/gravitee:gravitee-v4-api-plans-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

gravitee-v4-api-plans-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Gravitee.io - Management 🧪 V4 - API Plans API
  description: Some news resources are in alpha version. This implies that they are likely to be modified or even removed in future versions. They are marked with the 🧪 symbol
  version: 3.20.0
servers:
- url: http://localhost:8083/management
security:
- gravitee-auth: []
tags:
- name: 🧪 V4 - API Plans
paths:
  /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans:
    get:
      tags:
      - 🧪 V4 - API Plans
      summary: 🧪 List plans for an API
      description: '⚠️ This resource is in alpha version. This implies that it is likely to be modified or even removed in future versions. ⚠️.


        List all the plans accessible to the current user.'
      operationId: getApiPlans_1
      parameters:
      - name: status
        in: query
        explode: false
        schema:
          type: array
          items:
            type: string
            default: PUBLISHED
            enum:
            - STAGING
            - PUBLISHED
            - DEPRECATED
            - CLOSED
      - name: security
        in: query
        explode: false
        schema:
          type: array
          items:
            $ref: '#/components/schemas/PlanSecurityTypeV4'
      - name: api
        in: path
        description: The ID of the API
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: List accessible plans for current user
          content:
            application/json:
              schema:
                uniqueItems: true
                type: array
                items:
                  $ref: '#/components/schemas/PlanEntityV4'
        '500':
          description: Internal server error
    post:
      tags:
      - 🧪 V4 - API Plans
      summary: 🧪 Create a plan
      description: '⚠️ This resource is in alpha version. This implies that it is likely to be modified or even removed in future versions. ⚠️.


        User must have the MANAGE_PLANS permission to use this service'
      operationId: createApiPlan_1
      parameters:
      - name: api
        in: path
        description: The ID of the API
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NewPlanEntityV4'
        required: true
      responses:
        '201':
          description: Plan successfully created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanEntityV4'
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan}:
    get:
      tags:
      - 🧪 V4 - API Plans
      summary: 🧪 Get a plan
      description: '⚠️ This resource is in alpha version. This implies that it is likely to be modified or even removed in future versions. ⚠️.


        User must have the READ permission to use this service'
      operationId: getApiPlan_1
      parameters:
      - name: plan
        in: path
        required: true
        schema:
          type: string
      - name: api
        in: path
        description: The ID of the API
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: Plan information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanEntityV4'
        '500':
          description: Internal server error
    put:
      tags:
      - 🧪 V4 - API Plans
      summary: 🧪 Update a plan
      description: '⚠️ This resource is in alpha version. This implies that it is likely to be modified or even removed in future versions. ⚠️.


        User must have the MANAGE_PLANS permission to use this service'
      operationId: updateApiPlan_1
      parameters:
      - name: plan
        in: path
        required: true
        schema:
          type: string
      - name: api
        in: path
        description: The ID of the API
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePlanEntityV4'
        required: true
      responses:
        '200':
          description: Plan successfully updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanEntityV4'
        '400':
          description: Bad plan format
        '500':
          description: Internal server error
    delete:
      tags:
      - 🧪 V4 - API Plans
      summary: 🧪 Delete a plan
      description: '⚠️ This resource is in alpha version. This implies that it is likely to be modified or even removed in future versions. ⚠️.


        User must have the MANAGE_PLANS permission to use this service'
      operationId: deleteApiPlan_1
      parameters:
      - name: plan
        in: path
        required: true
        schema:
          type: string
      - name: api
        in: path
        description: The ID of the API
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '204':
          description: Plan successfully deleted
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan}/_close:
    post:
      tags:
      - 🧪 V4 - API Plans
      summary: 🧪 Close a plan
      description: '⚠️ This resource is in alpha version. This implies that it is likely to be modified or even removed in future versions. ⚠️.


        User must have the MANAGE_PLANS permission to use this service'
      operationId: closeApiPlan_1
      parameters:
      - name: plan
        in: path
        required: true
        schema:
          type: string
      - name: api
        in: path
        description: The ID of the API
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '200':
          description: Plan successfully closed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanEntityV4'
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan}/_deprecate:
    post:
      tags:
      - 🧪 V4 - API Plans
      summary: 🧪 Deprecate a plan
      description: '⚠️ This resource is in alpha version. This implies that it is likely to be modified or even removed in future versions. ⚠️.


        User must have the API_PLAN[UPDATE] permission to use this service'
      operationId: deprecateApiPlan_1
      parameters:
      - name: plan
        in: path
        required: true
        schema:
          type: string
      - name: api
        in: path
        description: The ID of the API
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '204':
          description: Plan successfully deprecated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanEntityV4'
        '500':
          description: Internal server error
  /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan}/_depreciate:
    post:
      tags:
      - 🧪 V4 - API Plans
      summary: 🧪 Deprecated, use '_deprecate' instead. Deprecate a plan
      description: '⚠️ This resource is in alpha version. This implies that it is likely to be modified or even removed in future versions. ⚠️.


        User must have the API_PLAN[UPDATE] permission to use this service'
      operationId: depreciateApiPlan_1
      parameters:
      - name: plan
        in: path
        required: true
        schema:
          type: string
      - name: api
        in: path
        description: The ID of the API
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '204':
          description: Plan successfully deprecated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanEntityV4'
        '500':
          description: Internal server error
      deprecated: true
  /organizations/{orgId}/environments/{envId}/v4/apis/{api}/plans/{plan}/_publish:
    post:
      tags:
      - 🧪 V4 - API Plans
      summary: 🧪 Publicly publish plan
      description: '⚠️ This resource is in alpha version. This implies that it is likely to be modified or even removed in future versions. ⚠️.


        User must have the MANAGE_PLANS permission to use this service'
      operationId: publishApiPlan_1
      parameters:
      - name: plan
        in: path
        required: true
        schema:
          type: string
      - name: api
        in: path
        description: The ID of the API
        required: true
        schema:
          type: string
      - name: envId
        in: path
        description: The ID of the environment
        required: true
        schema:
          type: string
          default: DEFAULT
      - name: orgId
        in: path
        description: The ID of the Organization
        required: true
        schema:
          type: string
          default: DEFAULT
      responses:
        '204':
          description: Plan successfully published
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanEntityV4'
        '500':
          description: Internal server error
components:
  schemas:
    FlowV4:
      type: object
      properties:
        enabled:
          type: boolean
        name:
          type: string
        publish:
          type: array
          items:
            $ref: '#/components/schemas/StepV4'
        request:
          type: array
          items:
            $ref: '#/components/schemas/StepV4'
        response:
          type: array
          items:
            $ref: '#/components/schemas/StepV4'
        selectors:
          type: array
          items:
            $ref: '#/components/schemas/Selector'
        subscribe:
          type: array
          items:
            $ref: '#/components/schemas/StepV4'
        tags:
          uniqueItems: true
          type: array
          items:
            type: string
      description: A list of flows containing the policies configuration.
    Selector:
      required:
      - type
      type: object
      properties:
        type:
          type: string
          enum:
          - HTTP
          - CHANNEL
          - CONDITION
      discriminator:
        propertyName: type
    PlanSecurityTypeV4:
      type: string
      enum:
      - key-less
      - api-key
      - oauth2
      - jwt
      - subscription
    PlanValidationTypeV4:
      type: string
      enum:
      - AUTO
      - MANUAL
    UpdatePlanEntityV4:
      required:
      - description
      - name
      - order
      - validation
      type: object
      properties:
        characteristics:
          type: array
          items:
            type: string
        commentMessage:
          type: string
        commentRequired:
          type: boolean
        crossId:
          type: string
        description:
          type: string
        excludedGroups:
          type: array
          items:
            type: string
        flows:
          type: array
          items:
            $ref: '#/components/schemas/FlowV4'
        generalConditions:
          type: string
        id:
          type: string
        name:
          type: string
        order:
          type: integer
          format: int32
        security:
          $ref: '#/components/schemas/PlanSecurityV4'
        selectionRule:
          type: string
        tags:
          uniqueItems: true
          type: array
          items:
            type: string
        validation:
          $ref: '#/components/schemas/PlanValidationTypeV4'
    StepV4:
      required:
      - description
      - name
      - policy
      type: object
      properties:
        condition:
          type: string
        configuration:
          type: object
        description:
          type: string
        enabled:
          type: boolean
        messageCondition:
          type: string
        name:
          type: string
        policy:
          type: string
    PlanEntityV4:
      type: object
      properties:
        apiId:
          type: string
        characteristics:
          type: array
          items:
            type: string
        closedAt:
          type: string
          format: date-time
        commentMessage:
          type: string
        commentRequired:
          type: boolean
        createdAt:
          type: string
          format: date-time
        crossId:
          type: string
        description:
          type: string
        excludedGroups:
          type: array
          items:
            type: string
        flows:
          type: array
          items:
            $ref: '#/components/schemas/FlowV4'
        generalConditions:
          type: string
        id:
          type: string
        name:
          type: string
        order:
          type: integer
          format: int32
        planSecurity:
          $ref: '#/components/schemas/PlanSecurityV4'
        planStatus:
          type: string
          enum:
          - STAGING
          - PUBLISHED
          - DEPRECATED
          - CLOSED
        planValidation:
          $ref: '#/components/schemas/PlanValidationTypeV4'
        publishedAt:
          type: string
          format: date-time
        security:
          $ref: '#/components/schemas/PlanSecurityV4'
        selectionRule:
          type: string
        status:
          type: string
          enum:
          - STAGING
          - PUBLISHED
          - DEPRECATED
          - CLOSED
        tags:
          uniqueItems: true
          type: array
          items:
            type: string
        type:
          $ref: '#/components/schemas/PlanTypeV4'
        updatedAt:
          type: string
          format: date-time
        validation:
          $ref: '#/components/schemas/PlanValidationTypeV4'
      description: A list of plans to apply on the API
    PlanTypeV4:
      type: string
      enum:
      - API
      - CATALOG
    NewPlanEntityV4:
      required:
      - description
      - flows
      - name
      - status
      - type
      - validation
      type: object
      properties:
        apiId:
          type: string
        characteristics:
          type: array
          items:
            type: string
        commentMessage:
          type: string
        commentRequired:
          type: boolean
        crossId:
          type: string
        description:
          type: string
        excludedGroups:
          type: array
          items:
            type: string
        flows:
          type: array
          items:
            $ref: '#/components/schemas/FlowV4'
        generalConditions:
          type: string
        id:
          type: string
        name:
          type: string
        order:
          type: integer
          format: int32
        security:
          $ref: '#/components/schemas/PlanSecurityV4'
        selectionRule:
          type: string
        status:
          type: string
          enum:
          - STAGING
          - PUBLISHED
          - DEPRECATED
          - CLOSED
        tags:
          uniqueItems: true
          type: array
          items:
            type: string
        type:
          $ref: '#/components/schemas/PlanTypeV4'
        validation:
          $ref: '#/components/schemas/PlanValidationTypeV4'
    PlanSecurityV4:
      required:
      - type
      type: object
      properties:
        configuration:
          type: object
        type:
          type: string
  securitySchemes:
    gravitee-auth:
      type: http
      scheme: basic