---
name: "mongoc_server_api_t"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_server_api_t"
---

# mongoc\_server\_api\_t(3)

A versioned API to use for connections.

## SYNOPSIS

Used to specify which version of the MongoDB server's API to use for driver connections.

The server API type takes a *mongoc\_server\_api\_version\_t*. It can optionally be strict about the list of allowed commands in that API version, and can also optionally provide errors for deprecated commands in that API version.

A *mongoc\_server\_api\_t* can be set on a client, and will then be sent to MongoDB for most commands run using that client.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
