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

# Make your first Cybreeze API call

> Mint an organization API key in the Cybreeze app, send it as x-api-key, and confirm the whole hop with one call to GET /v1/ping.

This page takes you from no key to a successful `GET /v1/ping`. You need to be an owner or admin of a Cybreeze organization: a key calls the API as the whole organization, with no session and no second factor, so minting one is an administrative act and members do not see the page.

**1. Create an API key**

In the Cybreeze app, open **Settings → API keys** and create a key. Label it after the place it will be used, such as `ci-pipeline` or `erp-sync`.

The secret is returned once, in the response that creates it, and is stored nowhere on our side. Cybreeze keeps only the key id, your label, the first eight characters and who created it, so a lost key is replaced, never recovered.

> [!WARNING]
>
> Treat the secret like a password. It carries everything your organization can do through the API, it cannot be scoped down, and it belongs in a secret manager, never in a browser or a committed file.

**2. Give the key about 45 seconds**

A new key takes roughly 45 seconds to reach the gateway. Call it sooner and you get `401 invalid_api_key`, which is the same answer a revoked key gets.

**3. Call the ping endpoint**

Send the key in the `x-api-key` header on every request.

```bash curl theme={null}
curl -sS https://public-api.cybreeze.io/v1/ping \
  -H "x-api-key: $CYBREEZE_API_KEY"
```

```javascript Node.js theme={null}
const response = await fetch('https://public-api.cybreeze.io/v1/ping', {
  headers: { 'x-api-key': process.env.CYBREEZE_API_KEY },
});

console.log(response.status, await response.json());
```

```python Python theme={null}
import os

import requests

response = requests.get(
    "https://public-api.cybreeze.io/v1/ping",
    headers={"x-api-key": os.environ["CYBREEZE_API_KEY"]},
    timeout=30,
)

print(response.status_code, response.json())
```

**4. Read the response**

```json theme={null}
{
  "ok": true,
  "organizationId": "68f1c0a5f4b2d31a9c7e0b44",
  "at": "2026-11-23T18:42:11.903Z"
}
```

`organizationId` is the organization the key belongs to. Every call made with this key is scoped to it, so this value is the one thing worth asserting in a smoke test.

> [!TIP]
>
> A `200` here proves the key is live, the gateway accepted it, and Cybreeze resolved it to your organization. If you get `401` instead, read [Errors](https://developer.cybreeze.io/concepts/errors.md): the body says which of those three failed.

## What to read next

> [card] [Authentication](https://developer.cybreeze.io/concepts/authentication.md)
>
> Key lifecycle, the twenty-key ceiling, disable against delete.

> [card] [Rate limits and quotas](https://developer.cybreeze.io/concepts/rate-limits.md)
>
> What your organization is allowed per second and per day.

> [card] [GET /v1/ping](https://developer.cybreeze.io/api-reference/ping.md)
>
> The endpoint reference, with a playground.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.