Beeceptor Endpoint Settings API

The Endpoint Settings API from Beeceptor — 5 operation(s) for endpoint settings.

Operations 9

GET /v2/endpoints/{endpoint}/settings Get endpoint settings #
PATCH /v2/endpoints/{endpoint}/settings Update endpoint settings #
GET /v2/endpoints/{endpoint}/specs Get specification details #
POST /v2/endpoints/{endpoint}/specs Upload API specification (Async) #
DELETE /v2/endpoints/{endpoint}/specs Delete API specification #
GET /v2/endpoints/{endpoint}/jobs/{jobId} Get job status #
GET /v2/endpoints/{endpoint}/mtls/certificates Get all mTLS certificates #
POST /v2/endpoints/{endpoint}/mtls/certificates Add mTLS certificate #
DELETE /v2/endpoints/{endpoint}/mtls/certificates/{certId} Delete mTLS certificate #

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/beeceptor-endpoint-settings-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

beeceptor-endpoint-settings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Beeceptor Endpoint Settings API
  description: This documentation describes the **Beeceptor Mock Server Management APIs**.
  version: 2.0.0
  x-release-status: testing
  x-internal: true
servers:
- url: https://api.beeceptor.com/api
  description: Production API Server
tags:
- name: Endpoint Settings
paths:
  /v2/endpoints/{endpoint}/settings:
    get:
      summary: Get endpoint settings
      description: Retrieve the current settings for the endpoint.
      tags:
      - Endpoint Settings
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/EndpointName'
      responses:
        '200':
          description: Endpoint settings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointSettings'
              example:
                security:
                  enabled: true
                  headerKey: some-key
                  headerValue: some-value
                cors:
                  origins:
                  - https://one.example.com
                  - https://two.example.com
                locale: en
                rateLimit:
                  enabled: true
                  rate: 5
                  period: Second
                crud:
                  autoDelete: true
                customDomain:
                  enabled: true
                  domain: whitelabel.example.com
                mtls:
                  enabled: false
                localTunnel: false
                proxy:
                  targetUrl: https://target.example.com
                  ignoreSSLErrors: false
                rules:
                  enabled: true
        '401':
          $ref: '#/components/responses/Unauthorized'
      operationId: getV2EndpointsByEndpointSettings
      x-operation-id-source: derived
    patch:
      summary: Update endpoint settings
      description: Update specific settings for the endpoint.
      tags:
      - Endpoint Settings
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/EndpointName'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointSettings'
      responses:
        '200':
          description: Settings updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointSettings'
              example:
                security:
                  enabled: true
                  headerKey: some-key
                  headerValue: some-value
                cors:
                  origins:
                  - https://one.example.com
                  - https://two.example.com
                locale: en
                rateLimit:
                  enabled: true
                  rate: 5
                  period: Second
                crud:
                  autoDelete: true
                customDomain:
                  enabled: true
                  domain: whitelabel.example.com
                mtls:
                  enabled: false
                localTunnel: false
                proxy:
                  targetUrl: https://target.example.com
                  ignoreSSLErrors: false
                rules:
                  enabled: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
      operationId: patchV2EndpointsByEndpointSettings
      x-operation-id-source: derived
  /v2/endpoints/{endpoint}/specs:
    get:
      summary: Get specification details
      description: Returns the metadata and current configuration of the uploaded API specification (OAS, WSDL, gRPC, or GraphQL).
      tags:
      - Endpoint Settings
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/EndpointName'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - openapi
                        - grpc
                        - graphql
                        - wsdl
                      intelligenceMock:
                        type: boolean
              example:
                data:
                  type: openapi
                  intelligenceMock: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getV2EndpointsByEndpointSpecs
      x-operation-id-source: derived
    post:
      summary: Upload API specification (Async)
      description: 'Uploads an OpenAPI (YAML/JSON), WSDL, GraphQL, or Proto file to automate mock

        response generation. This is an asynchronous operation that returns a Job ID.'
      tags:
      - Endpoint Settings
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/EndpointName'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: The specification file to upload (Max 2.5MB).
                intelligenceMock:
                  type: boolean
                  description: Enable AI-driven mock response generation.
      responses:
        '202':
          description: Upload accepted and processing initiated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
              example:
                jobId: job-9a7f3b2c1d
                status: QUEUED
                type: oas
                message: Job queued for oas processing
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
      operationId: postV2EndpointsByEndpointSpecs
      x-operation-id-source: derived
    delete:
      summary: Delete API specification
      description: 'Removes the uploaded API specification and stops any automated mock

        behaviors tied to it.'
      tags:
      - Endpoint Settings
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/EndpointName'
      responses:
        '200':
          description: Specification deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      deleted:
                        type: boolean
              example:
                data:
                  deleted: true
        '401':
          $ref: '#/components/responses/Unauthorized'
      operationId: deleteV2EndpointsByEndpointSpecs
      x-operation-id-source: derived
  /v2/endpoints/{endpoint}/jobs/{jobId}:
    get:
      summary: Get job status
      description: Polls the status of an asynchronous background job using the Job ID returned during a specification upload.
      tags:
      - Endpoint Settings
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/EndpointName'
      - in: path
        name: jobId
        required: true
        schema:
          type: string
        example: job-6a1ed3b07798
      responses:
        '200':
          description: Job status retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
              example:
                jobId: job-6a1ed3b07798
                status: COMPLETED
                message: Job completed successfully
                result:
                  channelId: endpoint-name
                  dashboardUrl: https://app.beeceptor.com/console/endpoint-name
                completedAt: '2026-01-28T09:31:02.729Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getV2EndpointsByEndpointJobsByJobId
      x-operation-id-source: derived
  /v2/endpoints/{endpoint}/mtls/certificates:
    get:
      summary: Get all mTLS certificates
      description: Lists all client certificates associated with this endpoint for Mutual TLS.
      tags:
      - Endpoint Settings
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/EndpointName'
      responses:
        '200':
          description: A list of certificates.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Certificate'
              example:
                data:
                - id: 6979d6d456c8ed5324860496
                  name: cert-1
                  cert: '-----BEGIN CERTIFICATE-----

                    MIIEoDCCAogCAQ... (truncated)

                    -----END CERTIFICATE-----

                    '
                  key: 'REDACTED_PRIVATE_KEY_EXAMPLE

                    '
                  expiry: '2027-01-28T09:28:50.960Z'
                  createdAt: '2026-01-28T09:28:52.938Z'
                - id: 6979d6d856c8ed53248604a6
                  name: cert-2
                  cert: '-----BEGIN CERTIFICATE-----

                    MIIEnjCCAoYCAQ... (truncated)

                    -----END CERTIFICATE-----

                    '
                  key: 'REDACTED_PRIVATE_KEY_EXAMPLE

                    '
                  expiry: '2027-01-28T09:28:55.827Z'
                  createdAt: '2026-01-28T09:28:56.747Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
      operationId: getV2EndpointsByEndpointMtlsCertificates
      x-operation-id-source: derived
    post:
      summary: Add mTLS certificate
      description: Generates a new client certificate and private key for Mutual TLS authentication.
      tags:
      - Endpoint Settings
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/EndpointName'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: A friendly name for the certificate.
              required:
              - name
      responses:
        '201':
          description: Certificate added.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Certificate'
              example:
                id: 6979d6d456c8ed5324860496
                name: cert-1
                cert: '-----BEGIN CERTIFICATE-----

                  MIIEoDCCAogCAQ... (truncated)

                  -----END CERTIFICATE-----

                  '
                key: 'REDACTED_PRIVATE_KEY_EXAMPLE

                  '
                expiry: '2027-01-28T09:28:50.960Z'
                createdAt: '2026-01-28T09:28:52.938Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
      operationId: postV2EndpointsByEndpointMtlsCertificates
      x-operation-id-source: derived
  /v2/endpoints/{endpoint}/mtls/certificates/{certId}:
    delete:
      summary: Delete mTLS certificate
      description: Remove a specific client certificate.
      tags:
      - Endpoint Settings
      security:
      - ApiKeyAuth: []
      parameters:
      - $ref: '#/components/parameters/EndpointName'
      - in: path
        name: certId
        required: true
        schema:
          type: string
        example: 6979d6d456c8ed5324860496
      responses:
        '200':
          description: Certificate deleted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  deleted:
                    type: boolean
                example:
                  id: 6979d6d456c8ed5324860496
                  deleted: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: deleteV2EndpointsByEndpointMtlsCertificatesByCertId
      x-operation-id-source: derived
components:
  schemas:
    Job:
      type: object
      description: Represents an asynchronous background task, such as processing a large API specification file.
      properties:
        jobId:
          type: string
          description: Unique identifier for tracking the job status.
          example: job_9876543210
        type:
          type: string
          enum:
          - oas
          - wsdl
          - grpc
          - graphql
          description: The type of specification being processed.
          example: oas
        status:
          type: string
          enum:
          - QUEUED
          - PROCESSING
          - COMPLETED
          - FAILED
          description: Current lifecycle state of the job.
          example: PROCESSING
        message:
          type: string
          description: Detail or error message related to the job's progress.
          example: Validating OpenAPI specification file.
        progress:
          type: integer
          minimum: 0
          maximum: 100
          description: Progress completion percentage.
          example: 45
        currentStage:
          type: string
          description: The current processing stage (e.g., 'Validating', 'Mapping', 'Generating Rules').
          example: Mapping
        result:
          type: object
          description: The result data of the job, available upon completion.
        completedAt:
          type: string
          format: date-time
          description: Timestamp when the job was completed.
          example: '2026-01-28T10:00:00Z'
        failedAt:
          type: string
          format: date-time
          description: Timestamp when the job failed.
    EndpointSettings:
      type: object
      description: Configuration settings for the mock endpoint, including security, CORS, and rate limits.
      properties:
        security:
          type: object
          description: "Secure your endpoint using mandatory header-based authentication. \nRequests missing the secret header will be rejected without affecting your quota.\n"
          properties:
            enabled:
              type: boolean
              example: false
            headerKey:
              type: string
              description: The name of the header (e.g., 'Authorization' or 'x-api-key').
              example: Authorization
            headerValue:
              type: string
              description: The secret value required for access.
              example: Bearer secret-token
        cors:
          type: object
          description: Configure Cross-Origin Resource Sharing (CORS) whitelists.
          properties:
            origins:
              type: array
              items:
                type: string
                example: test.example.com
        locale:
          type: string
          enum:
          - en
          - en_GB
          - en_IN
          - en_US
          - fr
          - id_ID
          - ja
          - pt_BR
          - es
          - es_MX
          - zh_CN
          description: The locale used by the template engine for generating random (faker) data.
          example: en
        rateLimit:
          type: object
          description: Restrict the volume of incoming traffic to prevent abuse or simulate throttling.
          properties:
            enabled:
              type: boolean
              example: true
            rate:
              type: integer
              example: 10
            period:
              type: string
              enum:
              - Second
              - Minute
              - Hour
              example: Second
        crud:
          type: object
          description: Settings for stateful CRUD routes.
          properties:
            autoDelete:
              type: boolean
              description: "When enabled, Beeceptor automatically purges older records when the \nstorage limit is reached to accommodate new data.\n"
              example: true
        customDomain:
          type: object
          properties:
            enabled:
              type: boolean
              example: false
            domain:
              type: string
              example: api.example.com
        mtls:
          type: object
          description: Mutual TLS settings for certificate-based client authentication.
          properties:
            enabled:
              type: boolean
              example: false
        localTunnel:
          type: boolean
          description: 'If enabled, this endpoint routes all traffic to your localhost via the Beeceptor CLI.

            Documentation: https://beeceptor.com/docs/local-tunneling-by-exposing-service-port/

            '
          example: false
        proxy:
          type: object
          properties:
            targetUrl:
              type: string
              description: Global destination for forwarding requests that don't match any rules.
              example: https://echo.beeceptor.com
            ignoreSSLErrors:
              type: boolean
              example: true
        rules:
          type: object
          properties:
            enabled:
              type: boolean
              description: Master toggle for the mock rules engine.
              example: true
    Certificate:
      type: object
      description: Details of an mTLS client certificate managed within Beeceptor.
      properties:
        id:
          type: string
          description: internal certificate identifier.
          example: cert_abc123
        name:
          type: string
          description: User-defined label for the certificate.
          example: My Client Cert
        cert:
          type: string
          description: Public certificate in PEM format.
          example: '-----BEGIN CERTIFICATE-----

            MIIDDTCCAfWgAwIBAgIJAJ...

            -----END CERTIFICATE-----'
        key:
          type: string
          description: Private key in PEM format (Redacted in list views).
          example: 'REDACTED_PRIVATE_KEY_EXAMPLE'
        expiry:
          type: string
          format: date-time
          description: Certificate expiration timestamp.
          example: '2027-01-28T10:00:00Z'
        createdAt:
          type: string
          format: date-time
          example: '2026-01-28T10:00:00Z'
    Error:
      type: object
      description: Standard error response structure.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - validation_error
              - not_found
              - unauthorized_api_key
              - missing_authentication
              - internal_error
              example: validation_error
            message:
              type: string
              example: Request validation failed
            details:
              type: array
              items:
                type: object
                properties:
                  path:
                    type: string
                    example: /rules[0]/action/status
                  message:
                    type: string
                    example: must be greater than or equal to 100
                  received:
                    type: string
                    example: '50'
  responses:
    InternalError:
      description: Internal Server Error - An unexpected error occurred.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthenticated - API key is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Unauthorized - You don't have access to this endpoint.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not Found - The requested resource does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Bad Request - Payload validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    EndpointName:
      name: endpoint
      description: The name of Beeceptor endpoint. E.g., you should pick `my-endpoint` from your mock server base URL `https://my-endpoint.proxy.beeceptor.com`)
      in: path
      required: true
      schema:
        type: string
        default: '{{endpoint}}'
      example: order-service
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization