Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models Inheritance: System.Object

Syntax

Mintlify.Core.Models.ApiPlaygroundConfig

Summary

Represents the API playground settings for interactive documentation.

Remarks

Controls how the API playground is displayed and whether API requests are proxied through Mintlify’s servers for CORS handling.

Constructors

.ctor

Syntax

public ApiPlaygroundConfig()

Properties

Display

Gets or sets the display mode of the API playground.

Syntax

public string Display { get; set; }

Property Value

Type: string?

Examples

"playground": {
  "display": "interactive"
}

Remarks

Valid values are:
  • “interactive”: Full interactive playground with request/response testing
  • “simple”: Copyable endpoint with no interactive features
  • “none”: Hide the playground completely Defaults to “interactive” when not specified.

Proxy

Gets or sets whether to pass API requests through a proxy server.

Syntax

public System.Nullable<bool> Proxy { get; set; }

Property Value

Type: System.Nullable<bool>?

Examples

"playground": {
  "proxy": false
}

Remarks

When true, API requests from the playground are routed through Mintlify’s proxy servers to handle CORS restrictions. This allows the playground to make requests to APIs that don’t have CORS configured. Defaults to true when not specified.