# REST API

> Learn what the WinWinKit REST API is and how to use it.

export const components = {
  pre: CodeSnippet,
};

Call the WinWinKit REST API directly when no SDK fits your runtime.

## Base URL

All requests should be made to the following base URL:

```
https://api.winwinkit.com/
```

## Format

Requests and responses are JSON. Send `Content-Type: application/json` on requests with a body.

## Authentication

Every request must include an [API Key](/developers/get-started/api-keys/) in the `x-api-key` header. See [Authentication](/developers/api/authentication/) for details.

## Errors

All non-2xx responses follow a consistent shape and include machine-readable error codes you can branch on. See [Errors](/developers/api/errors/) for the full reference.
