# `info`

Set the title, version, and description of a gRPC API.
A `.proto` file has no place for this information: comments describe services, methods, messages, and fields, but not the API.

Without `info`, the overview page and the sidebar show the proto `package` (for example `cafe.v1`) as the title, and the overview page has no description.

## Usage

Add the `info` object to the `grpc` configuration of an API:

```yaml
apis:
  cafe:
    root: ./apis/cafe/cafe.proto
    grpc:
      info:
        title: Cafe API
        version: v1
        description: |
          Browse the menu and place orders.

          ## Authentication
          Send an API key in the `x-api-key` metadata of each call.
        contact:
          name: Cafe API team
          email: cafe-api@example.com
        license:
          name: Apache 2.0
          url: https://www.apache.org/licenses/LICENSE-2.0
```

Each `.proto` API usually has its own title, so set `info` in `apis.<name>.grpc`.
Set shared values, for example `contact`, in the root `grpc.info`: the per-API values override them.

The values appear in these places:

- **Overview page:** the heading is `title (version)`, and the description is under it.
  The overview panel shows `contact`, `license`, and `termsOfService`.
- **Sidebar:** the first item is `title`.
- **Catalog:** the card of the API shows `title` and `description`, and catalog filters can use `version`.
  Values in `apis.<name>.metadata` take precedence.

## Options

| Option | Type | Description |
| --- | --- | --- |
| title | string | The name of the gRPC API. Appears in the page heading, the sidebar, and the catalog. Default: the proto `package` of the entry file. |
| version | string | The version of the API. Appears next to the title as `title (version)`. |
| description | string | Markdown description of the API, shown on the overview page. Supports headings, lists, code blocks, and links. |
| termsOfService | string | URL to the terms of service of the API. Appears as a link in the overview panel. |
| contact | [Contact object](#contact-object) | Contact information for API support. |
| license | [License object](#license-object) | License information for the API. |

### Contact object

| Option | Type | Description |
| --- | --- | --- |
| name | string | Name of the contact person or team. |
| url | string | URL to a contact page or support site. |
| email | string | Contact email address for API support. |

### License object

| Option | Type | Description |
| --- | --- | --- |
| name | string | License name, for example `MIT` or `Apache 2.0`. Used as link text when `identifier` is not set. |
| url | string | URL to the full license text. |
| identifier | string | SPDX license identifier. When set, appears instead of the license name. |

## Resources

- **[GraphQL `info`](/docs/platform/config/graphql/info)** - Set the same information for a GraphQL API, which also has no `info` block in its schema file
- **[API configuration](/docs/platform/config/apis)** - Configure each API in a project separately, including its `metadata`
