# Getting started (/docs/getting-started)

Check that the API is reachable and make your first authenticated request.

> **Not available yet**
>
> The API is not live. The requests below do not work until it launches.

The API is served from `https://api.tintage.com`, and every endpoint is under `/v1`. Responses are JSON.

### Check that the API is up

The health endpoint needs no key:

```bash
curl https://api.tintage.com/v1/health
```

```json
{ "status": "ok" }
```

### Store a secret key

Keep the key as a secret on your server, in `TINTAGE_SECRET_KEY`. The dashboard screen for creating keys is not built yet. See [Authentication](/docs/authentication) for the key types.

### Make an authenticated request

Send the key in the `Authorization` header. This request returns the workspace, project and key the secret belongs to:

```bash
curl https://api.tintage.com/v1/workspace \
  -H "Authorization: Bearer $TINTAGE_SECRET_KEY"
```

```json
{ "workspaceId": "org_123", "projectId": "8c6f1c1e-0b1a-4b8e-9a43-5f0d3c1b2a10", "keyId": "key_456", "kind": "secret" }
```

## Errors

Every error has the same shape. Quote the `requestId` when you contact support.

```json
{
  "error": { "code": "unauthorized", "message": "Send Authorization: Bearer <api key>." },
  "requestId": "5b0f7c3e-1c2d-4c1e-9a53-0f6d2f1d8c11"
}
```

## Next

- [Authentication](/docs/authentication): Which key to use where.

- [Delivery API](/docs/content-api): Reading posts.
