> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onsi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Learn how to interact with the Onsi API

# Introduction to the Onsi API

The Onsi API provides a comprehensive set of endpoints for seamless interaction with the Onsi platform. With this API, you can easily search for members, send invitations, and update member details.

* Production Base URL: <code>[https://api.onsi.com](https://api.onsi.com)</code>
* Sandbox Base URL: <code>[https://api.onsi.dev](https://api.onsi.dev)</code>

## Authentication

To protect the privacy and security of our data, the Onsi API requires authentication for all requests. Include your API key in the <code>x-api-key</code> header to authenticate your requests.

<Info>To request an API key, please reach out to us.</Info>

Example:

```json theme={null}
{
  "x-api-key": "your_api_key_here"
}
```

## Response Codes

The Onsi API uses standard HTTP response codes to indicate the success or failure of an API request, see below to go to our Guide on Error handling.

<Card title="Error Handling Guide" href="/api-reference/error-handling" icon="circle-exclamation" iconType="duotone">
  Read our in-depth guide on the errors returned by the Onsi API and how to handle them.
</Card>

## Data Format

All request and response bodies in the Onsi API are in JSON format. Make sure to include a <code>Content-Type: application/json</code> header in your requests and ensure that your JSON bodies are properly formatted.

With this information, you're
ready to start exploring the full potential of the Onsi API. Enjoy building your integration!
