---
schema_version: "1"
id: 6902a69ba1edcd81c27e8b5daae94c4a7736b6b526c28229569c5102a30c968b
title: Publishing Your gRPC API to Exchange
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/anypoint-code-builder/des-publish-grpc-api-to-exchange.md
canonical_url: https://docs.mulesoft.com/anypoint-code-builder/des-publish-grpc-api-to-exchange
source_site: docs.mulesoft.com
content_type: documentation
content_hash: f48fcbdf365a750559316d9b0800350b36cb7e2375f6cdf9fe6581fb16207a13
description: MuleSoft Documentation Site
latest: true
---
---
product: Anypoint Code Builder
version: master
---

# Publishing Your gRPC API to Exchange

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Publish your gRPC API specification or Protobuf library (fragment) to Anypoint Exchange so that
other team members can discover, reuse, and implement it.

In Exchange, published gRPC API projects appear as assets of type **gRPC API**. Published Protobuf
libraries (reusable fragments) appear as assets of type **API Fragment**.

## Before You Begin

- [Design a gRPC API specification](https://docs.mulesoft.com/anypoint-code-builder/des-design-grpc-api-spec) in Anypoint Code Builder, or create a
  Protobuf library project for reusable types and services.

- [Set up and access Anypoint Code Builder](https://docs.mulesoft.com/anypoint-code-builder/start-acb).

- Have some familiarity with [business groups](https://docs.mulesoft.com/access-management/business-groups).

  When you publish your API spec to Exchange, Anypoint Code Builder requests the name of the
  business group.

## Publish a gRPC API Project to Exchange

To publish your gRPC API project (or Protobuf library project) to Exchange:

1.  Log in to your Anypoint Platform account.

2.  In **Explorer**, open your gRPC API project and click the **Publish API Project to Exchange**
    icon.

    ![Publish API Project to Exchange icon](/mulesoft/current/en-us/anypoint-code-builder/_images/icon-publish-to-exchange.png)

    You can also right-click the API project in Explorer and select **API** > **Publish API Project
    to Exchange**.

    Alternatively, open the [Command Palette](https://docs.mulesoft.com/anypoint-code-builder/start-use-command-palette) and run:

    ```command
    MuleSoft: Publish API Project to Exchange
    ```

3.  If prompted, click **Allow** and follow the prompts to sign in to Anypoint Platform.

4.  Confirm or change each item in **Publish API Project to Exchange**:

    - **Asset Version** – For example, `1.0.0` for a first publish.

    - **API Version** – Optional for API fragments (Protobuf libraries).

    - **Business Group** – The business group where the asset is published.

5.  Optionally, expand **Project Metadata** and update asset name, tags, categories, or other
    metadata. Click **Apply** after making changes.

6.  Optionally, in the banner click **Sync centralized governance rulesets and run validation** to
    validate the project against applied rulesets. You must be logged in and have a business group
    defined in the project metadata.

    ![Publish API Project to Exchange form with banner to sync centralized rulesets](/mulesoft/current/en-us/anypoint-code-builder/_images/des-publish-api-project.png)

7.  Click **Publish**.

    Anypoint Code Builder builds the project and publishes the asset to Exchange. When publishing is
    complete, you see a message that the API specification (or fragment) successfully published to
    Exchange.

    If the project has validation or build errors, fix them before publishing. Check the
    **Problems** tab and the [output panel](https://docs.mulesoft.com/anypoint-code-builder/start-open-output-panel) for details.

8.  Click **View Asset** to open the published asset in Exchange.

9.  When prompted to implement the API, choose **Yes** to scaffold the gRPC specification into a new
    project, or **No** to skip. See
    [Implementing a gRPC API Specification with Anypoint Code Builder](https://docs.mulesoft.com/anypoint-code-builder/imp-implement-grpc-api-spec)
    for implementing a gRPC API spec.

## Locate Your gRPC API in Exchange

After publishing, find your gRPC API or Protobuf library in Anypoint Exchange:

1.  Log in to Anypoint Platform and open Anypoint Exchange (see
    [Locate Your API in Exchange](https://docs.mulesoft.com/anypoint-code-builder/des-publish-api-spec-to-exchange#locate-api) for links).

2.  Search or browse for the asset by name. gRPC API projects appear as assets of type **gRPC API**.
    Protobuf library projects appear under the appropriate fragment type.

Other developers can discover the asset, add it as a dependency for implementation, or import it as
a Protobuf library into their gRPC API design projects.

## See Also

- [Designing a gRPC API Specification with Anypoint Code Builder](https://docs.mulesoft.com/anypoint-code-builder/des-design-grpc-api-spec)

- [Publishing API Projects to Exchange](https://docs.mulesoft.com/anypoint-code-builder/des-publish-api-spec-to-exchange)

- [Implementing a gRPC API Specification with Anypoint Code Builder](https://docs.mulesoft.com/anypoint-code-builder/imp-implement-grpc-api-spec)

- [Validating API Specifications Against Governance Rulesets](https://docs.mulesoft.com/anypoint-code-builder/des-govern-api)

- [Anypoint Platform Business Groups](https://docs.mulesoft.com/access-management/business-groups)
