Definition

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

Syntax

Mintlify.Core.Models.MdxAuthConfig

Summary

Represents the authentication configuration for MDX-based API documentation.

Remarks

Specifies how API requests should be authenticated when using the interactive playground in MDX-generated API documentation pages.

Constructors

.ctor

Syntax

public MdxAuthConfig()

Properties

Method

Gets or sets the authentication method.

Syntax

public string Method { get; set; }

Property Value

Type: string?

Examples

"auth": {
  "method": "bearer"
}

Remarks

Valid values are: “bearer”, “basic”, “key”, “cobo”.
  • bearer: Bearer token authentication (Authorization: Bearer TOKEN)
  • basic: Basic authentication (Authorization: Basic BASE64)
  • key: API key authentication (custom header)
  • cobo: Cobo-specific authentication

Name

Gets or sets the name of the authentication header or parameter.

Syntax

public string Name { get; set; }

Property Value

Type: string?

Examples

"auth": {
  "method": "key",
  "name": "x-api-key"
}

Remarks

For “key” authentication method, this specifies the header name (e.g., “x-api-key”). For other methods, this may specify additional configuration parameters.