API Publication

Get a Publication

Changed on

Retrieve an API's publication in a portal. If the API is not published to the portal, a 404 response is returned.

get/v3/apis/{apiId}/publications/{portalId}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

apiId, string uuid required
Example:9f5061ce-78f6-4452-9108-ad7c02821fd5

The UUID API identifier

portalId, string uuid required
Example:f32d905a-ed33-46a3-a093-d8f536af9a8a

The Portal identifier

Response

An API publication in a portal

object required

An API publication in a portal

environment, ApiEnvironmentRef nullable

The environment this record is scoped to.

auto_approve_registrations, boolean

Whether the application registration auto approval on this portal for the api is enabled. If set to false, fallbacks on portal's auto_approve_applications value.

auth_strategy_ids, string[] nullable required

The auth strategy the API enforces for applications in the portal. Omitting this property means the portal's default application auth strategy will be used. Setting to null means the API will not require application authentication. DCR support for application registration is currently in development.

visibility, 'public' | 'private' required

The visibility of the API in the portal. Public API publications do not require authentication to view and retrieve information about them. Private API publications require authentication to retrieve information about them. If omitted, this defaults to the target portal's configured default API visibility.

spec_renderer, object nullable required

Customization settings for the API spec renderer in the portal.

form_id, string uuid nullable required

UUID of portal form associated with API publication, must be linked to given portal and have type of 'api_registration'

warnings, string[]

Informational warnings (e.g. incompatible fields stripped for ACE). Empty if none.

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "environment": {
    "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
    "name": "production"
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    25 more changes in this revision