# All endpoints

Every request the API takes, with its method and path, and where it is described.

Every path below is on one address: `https://api.eu.vatis.tech` for REST, `wss://api.eu.vatis.tech` for the WebSocket path. Every request carries your API key, `Authorization: Bearer $VATIS_KEY`, except `/ping` ([Authentication and API keys](https://platform.vatis.tech/docs/authentication)).

**Admin key** marks what only an Admin key may do: a Member key gets `403` `admin_only`. Unknown paths answer `404` `not_found`, and a wrong method `405` `invalid_request` ([Errors](https://platform.vatis.tech/docs/errors)).

## Batch and transcripts

| Method | Path | Does | Read |
|---|---|---|---|
| POST | [`/v1/speech-to-text`](https://platform.vatis.tech/docs/endpoints/create-a-transcript) | Transcribe a file, or the file at an address: answered at once, the transcript read when done. | [Batch transcription](https://platform.vatis.tech/docs/batch) |
| GET | [`/v1/transcripts`](https://platform.vatis.tech/docs/endpoints/list-transcripts) | List transcripts, newest first, without their words (a Member key: its own). | [Manage transcripts](https://platform.vatis.tech/docs/batch/manage-transcripts) |
| GET | [`/v1/transcripts/{id}`](https://platform.vatis.tech/docs/endpoints/get-a-transcript) | A transcript, in any status. | [The transcript object](https://platform.vatis.tech/docs/transcript-object) |
| DELETE | [`/v1/transcripts/{id}`](https://platform.vatis.tech/docs/endpoints/delete-a-transcript) | Delete a transcript and its audio. A job still running is stopped. | [Manage transcripts](https://platform.vatis.tech/docs/batch/manage-transcripts) |
| GET | [`/v1/transcripts/{id}/export`](https://platform.vatis.tech/docs/endpoints/export-a-transcript) | A completed transcript as a file: plain text, SRT or WebVTT subtitles. | [Exports](https://platform.vatis.tech/docs/batch/exports) |

## Real-time

| Method | Path | Does | Read |
|---|---|---|---|
| WS | [`/v1/speech-to-text/realtime`](https://platform.vatis.tech/docs/endpoints/start-a-live-session) | A live session: audio in, partial and final text out. | [Real-time transcription](https://platform.vatis.tech/docs/realtime) |

## Webhooks

| Method | Path | Does | Read |
|---|---|---|---|
| GET | [`/v1/webhooks`](https://platform.vatis.tech/docs/endpoints/list-webhooks) | Admin key. The workspace's webhooks, without their secrets. | [Webhooks](https://platform.vatis.tech/docs/batch/webhooks) |
| POST | [`/v1/webhooks`](https://platform.vatis.tech/docs/endpoints/create-a-webhook) | Admin key. Create a webhook. Its secret is shown only in this answer. | [Webhooks](https://platform.vatis.tech/docs/batch/webhooks) |
| PATCH | [`/v1/webhooks/{id}`](https://platform.vatis.tech/docs/endpoints/update-a-webhook) | Admin key. Change its `url`, `name`, `enabled`, `retry` or `headers`. | [Webhooks](https://platform.vatis.tech/docs/batch/webhooks) |
| DELETE | [`/v1/webhooks/{id}`](https://platform.vatis.tech/docs/endpoints/delete-a-webhook) | Admin key. Delete a webhook. | [Webhooks](https://platform.vatis.tech/docs/batch/webhooks) |

## Tokens and keys

| Method | Path | Does | Read |
|---|---|---|---|
| POST | [`/v1/tokens`](https://platform.vatis.tech/docs/endpoints/create-a-token) | A single-use token for a web page: one live session, or one file, within 15 minutes. | [Tokens for web pages](https://platform.vatis.tech/docs/authentication#tokens-for-web-pages) |
| GET | [`/v1/me`](https://platform.vatis.tech/docs/endpoints/get-this-key) | The key this request carries: its id, name and role. | [Authentication and API keys](https://platform.vatis.tech/docs/authentication) |
| GET | [`/v1/keys`](https://platform.vatis.tech/docs/endpoints/list-keys) | Admin key. The workspace's API keys, without the keys themselves. | [Authentication and API keys](https://platform.vatis.tech/docs/authentication) |
| POST | [`/v1/keys`](https://platform.vatis.tech/docs/endpoints/create-a-key) | Admin key. Create a key. The key is shown only in this answer. | [Authentication and API keys](https://platform.vatis.tech/docs/authentication) |
| PATCH | [`/v1/keys/{id}`](https://platform.vatis.tech/docs/endpoints/change-a-keys-role) | Admin key. Change a key's role. | [Authentication and API keys](https://platform.vatis.tech/docs/authentication) |
| DELETE | [`/v1/keys/{id}`](https://platform.vatis.tech/docs/endpoints/revoke-a-key) | Admin key. Revoke a key, and its open tokens. | [Authentication and API keys](https://platform.vatis.tech/docs/authentication) |

## Vocabularies

| Method | Path | Does | Read |
|---|---|---|---|
| GET | [`/v1/vocabularies`](https://platform.vatis.tech/docs/endpoints/list-vocabularies) | The workspace's saved vocabularies, without their entries. | [Vocabularies](https://platform.vatis.tech/docs/realtime/vocabularies) |
| POST | [`/v1/vocabularies`](https://platform.vatis.tech/docs/endpoints/create-a-vocabulary) | Admin key. Save a list of names and terms for live sessions and files. | [Vocabularies](https://platform.vatis.tech/docs/realtime/vocabularies) |
| GET | [`/v1/vocabularies/{id}`](https://platform.vatis.tech/docs/endpoints/get-a-vocabulary) | A saved vocabulary, with its entries. | [Vocabularies](https://platform.vatis.tech/docs/realtime/vocabularies) |
| PATCH | [`/v1/vocabularies/{id}`](https://platform.vatis.tech/docs/endpoints/update-a-vocabulary) | Admin key. Add entries, remove some, replace them all, or change its `name`. | [Vocabularies](https://platform.vatis.tech/docs/realtime/vocabularies) |
| DELETE | [`/v1/vocabularies/{id}`](https://platform.vatis.tech/docs/endpoints/delete-a-vocabulary) | Admin key. Delete a saved vocabulary. Open sessions keep its entries. | [Vocabularies](https://platform.vatis.tech/docs/realtime/vocabularies) |

## Usage and activity

| Method | Path | Does | Read |
|---|---|---|---|
| GET | [`/v1/usage`](https://platform.vatis.tech/docs/endpoints/get-usage) | The audio transcribed, by day or month and by key (a Member key: its own). | [Usage](https://platform.vatis.tech/docs/usage) |
| GET | [`/v1/activity`](https://platform.vatis.tech/docs/endpoints/list-activity) | Every batch job and live session, open ones first, with a summary (a Member key: its own). | [Usage](https://platform.vatis.tech/docs/usage) |

## Models and status

| Method | Path | Does | Read |
|---|---|---|---|
| GET | [`/v1/models`](https://platform.vatis.tech/docs/endpoints/list-models) | The models your workspace can use. | [Introduction](https://platform.vatis.tech/docs) |
| GET | [`/ping`](https://platform.vatis.tech/docs/endpoints/ping) | Whether the service runs, for your monitoring. No key needed. | [Health checks](https://platform.vatis.tech/docs/endpoints#health-checks) |

### Health checks

`GET /ping` answers `200` `{"status": "ok"}` while the service runs, with no key: point your monitoring at it. It shows no address, no secret and nothing about your workspace.

```bash
curl -sS https://api.eu.vatis.tech/ping
```

## On-premise only

The on-premise Speech Gateway, the same API on a customer's own server, also has a license (`/v1/license` and its request, preview and install) and a usage report for Vatis Tech (`/v1/usage/report`). The cloud has neither: those paths are `404` `not_found`, as any unknown path. `GET /v1/usage` and the console's Usage page have your usage.

In `GET /v1/models`, `licensed` is always `null` for the same reason. What your workspace may do is set by its credit and its limits instead ([Limits and free credit](https://platform.vatis.tech/docs/limits)).
