This documentation is for WSO2 API Manager 1.5.0 View documentation for the latest release.
Page Comparison - Publishing to API Stores (v.13 vs v.14) - API Manager 1.5.0 - WSO2 Documentation

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. Log in to the API Publisher (https://<HostName>:9443/store) as a user who has the publisher role assigned. 
  2. From the All APIs window that opens, click Click on the API you want to publish.
  3. The API's overview window opens. Click the Life Cycle tab, which displays the API's available states.


    The Life Cycle tab is only visible to users with publisher privileges.


  4. To publish the API, select the PUBLISHED state from the drop-down list. You get three check boxes to select as follows:

    Propagate Changes to API Gateway

    Used to define an API proxy in the API Gateway runtime component, allowing the API to be exposed to the consumers via the API Gateway. If this option is left unselected, the API metadata will not change and you will have to manually configure the API Gateway according to the information published in the API Store.

    Deprecate Old Versions

    If selected, any prior versions of the API will be set to the DEPRECATED state automatically.

    Require Re-Subscription

    Invalidates current user subscriptions, forcing users to subscribe again.

  5. Select the necessary options and click the Update button to publish the API to the API Store. Note the API life cycle history visible at the bottom of the page. 
    Image Removed

Similarly, you can deprecate, retire and block APIs. 


API publishers can share an API to application developers who are subscribed to multiple tenant-specific WSO2 API Stores, in order . This allows them to expose the API APIs to a wider community. 


After publishing an API to external stores, it will be advertised in those stores so that visible to the users of the external those stores can see it. However, to subscribe to the API, the users of the external stores must visit the original publisher's store.

 Follow the steps below to configure:

  1. Uncomment the existing the <ExternalAPIStores> element in <AM_Home>/repository/conf/api-manager.xml file of the API Publisher node, and configure an <ExternalAPIStores> element for each external WSO2 API Stores store that you need to publish APIs to. For example,

    Code Block
           <ExternalAPIStore id=”Store1” type="wso2">

    In above configuration,Note the following in the configuration above:

    idThe external store identifier, which is a unique value.
    typeType of the Store. APIM 1.5.0 release supports only WSO2-specific API Stores. Other types will be supported in future releases.
    <DisplayName>The name of the Store that is displayed in the publisher UI.


    URL of the API Store.
    <Username> & <Password>

    Credentials of a user who has permissions to create and publish APIs.

  2. To secure the user credentials given above, add a secure vault configuration as follows:

    1. For each external API Store, add a configuration similar to the one below in <AM_HOME>/repository/conf/security/ file. 

      Code Block
    2. Add the following configuration to <AM_HOME>/repository/conf/security/ file:

      Code Block
    3. Generate encrypted values for the passwords using the cipher tool.

    4. Use the encrypted password in the configuration in step 1.

  3. Start the API Manager server and create an API.

  4. Click on the newly created API and note to see a new tab called External API Stores added to the API Publisher console. 
    Note the following:

    • You can select multiple external API Stores stores and click Save to publish your API to them. 
    • If the API creator updates the API after publication to external stores, either the creator or a publisher can simply push those changes to the published stores by selecting the stores and clicking Save again. 
    • If the API creator deletes the API, each external store that it is published to will receive a request to delete the API from the store.


  5. Log in to an external user store that the API is published to see and note the API advertised in its storefront.  Clicks on it Select this API to see a link to the original publisher’s store, through which you can subscribe to the API.