Red Hat 3scale Services API

Manage API services and their settings

GitHub OpenAPI

Operations 19

GET /admin/api/services.xml Service List #
POST /admin/api/services.xml Service Create #
GET /admin/api/services/{id}.xml Service Read #
PUT /admin/api/services/{id}.xml Service Update #
DELETE /admin/api/services/{id}.xml Service Delete #
GET /admin/api/services/{service_id}/metrics.xml Service Metric List #
POST /admin/api/services/{service_id}/metrics.xml Service Metric Create #
GET /admin/api/services/{service_id}/metrics/{id}.xml Service Metric Read #
PUT /admin/api/services/{service_id}/metrics/{id}.xml Service Metric Update #
DELETE /admin/api/services/{service_id}/metrics/{id}.xml Service Metric Delete #
GET /admin/api/services/{service_id}/metrics/{metric_id}/methods.xml Service Method List #
POST /admin/api/services/{service_id}/metrics/{metric_id}/methods.xml Service Method Create #
GET /admin/api/services/{service_id}/metrics/{metric_id}/methods/{id}.xml Service Method Read #
PUT /admin/api/services/{service_id}/metrics/{metric_id}/methods/{id}.xml Service Method Update #
DELETE /admin/api/services/{service_id}/metrics/{metric_id}/methods/{id}.xml Service Method Delete #
GET /services.json List Services #
GET /services/{id}.json Get Service #
GET /services/{service_id}/usage.json Get Service Usage #
GET /services/{service_id}/top_applications.json Get Top Applications by Usage #

Documentation

Specifications

Schemas & Data

Other Resources

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/red-hat-3scale:red-hat-3scale-services-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

red-hat-3scale-services-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Account Management Services API
  description: API for managing 3scale Admin Portal objects, such as Accounts, Applications, Users, API products, gateway configurations etc.
  version: '1.0'
servers:
- url: /
tags:
- name: Services
  description: Manage API services and their settings
paths:
  /admin/api/services.xml:
    get:
      summary: Service List
      description: Returns the list of all services.
      tags:
      - Services
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: page
        in: query
        description: Page in the paginated list. Defaults to 1.
        schema:
          type: integer
          default: 1
      - name: per_page
        in: query
        description: Number of results per page. Default and max is 500.
        schema:
          type: integer
          default: 500
      responses:
        default:
          description: success
          content: {}
      operationId: getAdminApiServicesXml
      x-operation-id-source: derived
    post:
      summary: Service Create
      description: Creates a new service.
      tags:
      - Services
      requestBody:
        required: true
        description: Custom fields can be specified in the request by adding `&custom-field=value` to the body parameters. See <a href="#model-ServiceCreateRequest">ServiceCreateRequest</a> schema for the request body definition.
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ServiceCreateRequest'
      responses:
        default:
          description: success
          content: {}
      operationId: postAdminApiServicesXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/services/{id}.xml:
    get:
      summary: Service Read
      description: Returns the service by id.
      tags:
      - Services
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: getAdminApiServices{id}Xml
      x-operation-id-source: derived
    put:
      summary: Service Update
      description: Update the service.
      tags:
      - Services
      parameters:
      - name: id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        description: Custom fields can be specified in the request by adding `&custom-field=value` to the body parameters. See <a href="#model-ServiceUpdateRequest">ServiceUpdateRequest</a> schema for the request body definition.
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ServiceUpdateRequest'
      responses:
        default:
          description: success
          content: {}
      operationId: putAdminApiServices{id}Xml
      x-operation-id-source: derived
    delete:
      summary: Service Delete
      description: Delete the service. Deleting a service removes all applications and service subscriptions.
      tags:
      - Services
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: deleteAdminApiServices{id}Xml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/services/{service_id}/metrics.xml:
    get:
      summary: Service Metric List
      description: Returns the list of metrics of a service.
      tags:
      - Services
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: service_id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: getAdminApiServicesByServiceIdMetricsXml
      x-operation-id-source: derived
    post:
      summary: Service Metric Create
      description: Creates a metric on a service.
      tags:
      - Services
      parameters:
      - name: service_id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
                friendly_name:
                  type: string
                  description: Descriptive Name of the metric.
                system_name:
                  type: string
                  description: System Name of the metric. This is the name used to report API requests with the Service Management API. If blank a system_name will be generated for you from the friendly_name parameter
                name:
                  type: string
                  description: 'DEPRECATED: Please use system_name parameter'
                unit:
                  type: string
                  description: Measure unit of the metric.
                description:
                  type: string
                  description: Description of the metric.
              required:
              - access_token
              - friendly_name
              - unit
      responses:
        default:
          description: success
          content: {}
      operationId: postAdminApiServicesByServiceIdMetricsXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/services/{service_id}/metrics/{id}.xml:
    get:
      summary: Service Metric Read
      description: Returns the metric of a service.
      tags:
      - Services
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: service_id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      - name: id
        in: path
        description: ID of the metric.
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: getAdminApiServicesByServiceIdMetrics{id}Xml
      x-operation-id-source: derived
    put:
      summary: Service Metric Update
      description: Updates the metric of a service.
      tags:
      - Services
      parameters:
      - name: id
        in: path
        description: ID of the metric.
        required: true
        schema:
          type: integer
      - name: service_id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
                friendly_name:
                  type: string
                  description: Descriptive Name of the metric.
                unit:
                  type: string
                  description: Measure unit of the metric.
                description:
                  type: string
                  description: Description of the metric.
              required:
              - access_token
      responses:
        default:
          description: success
          content: {}
      operationId: putAdminApiServicesByServiceIdMetrics{id}Xml
      x-operation-id-source: derived
    delete:
      summary: Service Metric Delete
      description: Deletes the metric of a service. When you delete a metric or a method, it will also remove all the associated limits across application plans.
      tags:
      - Services
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: service_id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      - name: id
        in: path
        description: ID of the metric.
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: deleteAdminApiServicesByServiceIdMetrics{id}Xml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/services/{service_id}/metrics/{metric_id}/methods.xml:
    get:
      summary: Service Method List
      description: List the methods of a metric that belongs to a service. Methods are metrics that are children of a parent metric.
      tags:
      - Services
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: service_id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      - name: metric_id
        in: path
        description: ID of the metric.
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: getAdminApiServicesByServiceIdMetricsByMetricIdMethodsXml
      x-operation-id-source: derived
    post:
      summary: Service Method Create
      description: Creates a method under a metric that belongs to a service.
      tags:
      - Services
      parameters:
      - name: metric_id
        in: path
        description: ID of the metric.
        required: true
        schema:
          type: integer
      - name: service_id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
                friendly_name:
                  type: string
                  description: Name of the method.
                system_name:
                  type: string
                  description: System Name of the method. This is the name used to report API requests with the Service Management API. If blank, a system_name will be generated for you from the friendly_name parameter
                description:
                  type: string
                  description: Description of the method.
              required:
              - access_token
              - friendly_name
      responses:
        default:
          description: success
          content: {}
      operationId: postAdminApiServicesByServiceIdMetricsByMetricIdMethodsXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/services/{service_id}/metrics/{metric_id}/methods/{id}.xml:
    get:
      summary: Service Method Read
      description: Returns the method of a metric that belongs to a service.
      tags:
      - Services
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: service_id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      - name: metric_id
        in: path
        description: ID of the metric.
        required: true
        schema:
          type: integer
      - name: id
        in: path
        description: ID of the method.
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: getAdminApiServicesByServiceIdMetricsByMetricIdMethods{id}Xml
      x-operation-id-source: derived
    put:
      summary: Service Method Update
      description: Updates a method of a metric that belongs to a service.
      tags:
      - Services
      parameters:
      - name: service_id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      - name: metric_id
        in: path
        description: ID of the metric.
        required: true
        schema:
          type: integer
      - name: id
        in: path
        description: ID of the method.
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
                friendly_name:
                  type: string
                  description: Name of the method.
                description:
                  type: string
                  description: Description of the method.
              required:
              - access_token
      responses:
        default:
          description: success
          content: {}
      operationId: putAdminApiServicesByServiceIdMetricsByMetricIdMethods{id}Xml
      x-operation-id-source: derived
    delete:
      summary: Service Method Delete
      description: Deletes the method of a metric that belongs to a service.
      tags:
      - Services
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: service_id
        in: path
        description: ID of the service.
        x-data-threescale-name: service_ids
        required: true
        schema:
          type: integer
      - name: metric_id
        in: path
        description: ID of the metric.
        required: true
        schema:
          type: integer
      - name: id
        in: path
        description: ID of the method.
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: deleteAdminApiServicesByServiceIdMetricsByMetricIdMethods{id}Xml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /services.json:
    get:
      operationId: listServices
      summary: List Services
      description: Returns a list of all API services configured in the 3scale admin portal.
      tags:
      - Services
      parameters:
      - $ref: '#/components/parameters/accessToken'
      - name: page
        in: query
        schema:
          type: integer
          default: 1
      - name: per_page
        in: query
        schema:
          type: integer
          default: 20
      responses:
        '200':
          description: List of services returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceList'
      security:
      - provider_key: []
    servers:
    - url: https://{domain}-admin.3scale.net/admin/api
      description: 3scale Account Management API
      variables:
        domain:
          default: your-domain
          description: Your 3scale tenant domain
  /services/{id}.json:
    get:
      operationId: getService
      summary: Get Service
      description: Returns the details of a specific API service.
      tags:
      - Services
      parameters:
      - $ref: '#/components/parameters/accessToken'
      - name: id
        in: path
        required: true
        description: The service ID
        schema:
          type: integer
      responses:
        '200':
          description: Service details returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Service'
        '404':
          description: Service not found
      security:
      - provider_key: []
    servers:
    - url: https://{domain}-admin.3scale.net/admin/api
      description: 3scale Account Management API
      variables:
        domain:
          default: your-domain
          description: Your 3scale tenant domain
  /services/{service_id}/usage.json:
    get:
      operationId: getServiceUsage
      summary: Get Service Usage
      description: Returns usage statistics for a specific API service. Supports filtering by metric, time period, granularity, and date range. Results include hit counts, response time, and other tracked metrics.
      tags:
      - Services
      parameters:
      - $ref: '#/components/parameters/accessToken'
      - name: service_id
        in: path
        required: true
        description: The ID of the API service
        schema:
          type: integer
      - name: metric_name
        in: query
        required: true
        description: The name of the metric to retrieve (e.g., hits)
        schema:
          type: string
      - name: period
        in: query
        required: true
        description: The time period for the statistics
        schema:
          type: string
          enum:
          - hour
          - day
          - week
          - month
          - year
          - eternity
      - name: since
        in: query
        description: Start date for custom date range (ISO 8601 format)
        schema:
          type: string
          format: date-time
      - name: until
        in: query
        description: End date for custom date range (ISO 8601 format)
        schema:
          type: string
          format: date-time
      - name: granularity
        in: query
        description: Granularity of data points within the period
        schema:
          type: string
          enum:
          - hour
          - day
          - month
      - name: skip_change
        in: query
        description: Skip change data in response
        schema:
          type: boolean
          default: false
      responses:
        '200':
          description: Usage statistics returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageStats'
        '404':
          description: Service or metric not found
  /services/{service_id}/top_applications.json:
    get:
      operationId: getTopApplications
      summary: Get Top Applications by Usage
      description: Returns the top applications for a service ranked by usage volume for a given metric and time period.
      tags:
      - Services
      parameters:
      - $ref: '#/components/parameters/accessToken'
      - name: service_id
        in: path
        required: true
        description: The ID of the API service
        schema:
          type: integer
      - name: metric_name
        in: query
        required: true
        description: The metric to rank by
        schema:
          type: string
      - name: period
        in: query
        required: true
        schema:
          type: string
          enum:
          - hour
          - day
          - week
          - month
          - year
      responses:
        '200':
          description: Top applications returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopApplicationsList'
components:
  schemas:
    ServiceCreateRequest:
      type: object
      properties:
        access_token:
          type: string
          description: A personal Access Token.
        name:
          type: string
          description: Name of the service to be created.
        description:
          type: string
          description: Description of the service to be created.
        deployment_option:
          type: string
          description: 'Deployment option for the gateway: ''hosted'' for APIcast hosted, ''self_managed'' for APIcast Self-managed, ''service_mesh_istio'' for Istio service mesh option'
        backend_version:
          type: string
          description: 'Authentication mode: ''1'' for API key, ''2'' for App Id / App Key, ''oidc'' for OpenID Connect'
        system_name:
          type: string
          description: System Name of the object to be created. System names cannot be modified after creation, they are used as the key to identify the objects.
      additionalProperties:
        type: string
      required:
      - access_token
      - name
    ServiceUpdateRequest:
      type: object
      properties:
        access_token:
          type: string
          description: A personal Access Token.
        name:
          type: string
          description: Name of the service to be created.
        description:
          type: string
          description: Description of the service to be created.
        deployment_option:
          type: string
          description: 'Deployment option for the gateway: ''hosted'' for APIcast hosted, ''self_managed'' for APIcast Self-managed, ''service_mesh_istio'' for Istio service mesh option'
        backend_version:
          type: string
          description: 'Authentication mode: ''1'' for API key, ''2'' for App Id / App Key, ''oidc'' for OpenID Connect'
        system_name:
          type: string
          description: System Name of the object to be created. System names cannot be modified after creation, they are used as the key to identify the objects.
      additionalProperties:
        type: string
      required:
      - access_token
    Service:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        description:
          type: string
        system_name:
          type: string
        backend_version:
          type: string
          description: Authentication mode (1=API Key, 2=App ID/Key, oidc=OAuth/OIDC)
        deployment_option:
          type: string
    ServiceList:
      type: object
      properties:
        services:
          type: array
          items:
            $ref: '#/components/schemas/Service'
    TopApplication:
      type: object
      properties:
        application:
          type: object
          properties:
            id:
              type: integer
            name:
              type: string
            account:
              type: object
              properties:
                id:
                  type: integer
                org_name:
                  type: string
        total:
          type: integer
          description: Total usage for this application in the period
    UsageStats:
      type: object
      properties:
        metric:
          type: string
          description: The metric name
        period:
          type: string
          description: The time period
        period_start:
          type: string
          format: date-time
        period_end:
          type: string
          format: date-time
        total:
          type: integer
          description: Total value for the period
        values:
          type: array
          description: Time-series data points
          items:
            type: array
            items:
              oneOf:
              - type: string
                format: date-time
              - type: integer
    TopApplicationsList:
      type: object
      properties:
        applications:
          type: array
          items:
            $ref: '#/components/schemas/TopApplication'
  parameters:
    accessToken:
      name: access_token
      in: query
      required: true
      description: Admin API access token
      schema:
        type: string
  securitySchemes:
    provider_key:
      type: apiKey
      in: query
      name: access_token
    access_token:
      type: apiKey
      in: query
      name: access_token