Skip to content

Commit

Permalink
split tools and other tweaks
Browse files Browse the repository at this point in the history
split tools into two pages to keep the api page focused on the REST API endpoint. added a note at the top of API pages clarifying API key is required. detailed the format of API key on the auth page. added aliases for assets and components to clean up imports.
  • Loading branch information
benlower committed Sep 24, 2024
1 parent 0800a56 commit 6cdccbd
Show file tree
Hide file tree
Showing 13 changed files with 385 additions and 334 deletions.
4 changes: 4 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export default defineConfig({
label: 'Quickstart',
link: 'guides/quickstart'
},
{
label: 'Tools in Ultravox',
link: '/tools'
},
{
label: 'API',
autogenerate: {
Expand Down
7 changes: 7 additions & 0 deletions docs/src/components/APIKeyRequired.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
---

<div class="border-1 border p-4 shadow">
<div class="text-large font-bold">API Key Required</div>
<div class="">The Ultravox API requires an API key. See <a href="../auth">Authentication</a> for details.</div>
</div>
12 changes: 6 additions & 6 deletions docs/src/components/SDKCards.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
import { CardGrid, Card, Icon } from "@astrojs/starlight/components";
import { CardGrid, Card } from "@astrojs/starlight/components";
import { Image } from "astro:assets";
import flutterLogo from "../assets/logos/flutter.svg";
import jsLogo from "../assets/logos/js.svg";
import kotlinLogo from "../assets/logos/kotlin.svg";
import pythonLogo from "../assets/logos/python.svg";
import ghLogo from "../assets/logos/github-mark.svg";
import flutterLogo from "@assets/logos/flutter.svg";
import jsLogo from "@assets/logos/js.svg";
import kotlinLogo from "@assets/logos/kotlin.svg";
import pythonLogo from "@assets/logos/python.svg";
import ghLogo from "@assets/logos/github-mark.svg";
const wordForNum: { [key: number]: string } = {
3: "three",
Expand Down
5 changes: 4 additions & 1 deletion docs/src/content/docs/api/accounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ title: "Accounts"
sidebar:
order: 1
---
import { Badge, Tabs, TabItem } from '@astrojs/starlight/components';
import { Badge, Tabs, TabItem, Card } from '@astrojs/starlight/components';
import APIKeyRequired from '@components/APIKeyRequired.astro';

<APIKeyRequired />
<br />
Return information about your accounts. Primarily for getting a unique link for subscription management.

## List Accounts
Expand Down
9 changes: 8 additions & 1 deletion docs/src/content/docs/api/auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ sidebar:

import { Tabs, TabItem } from '@astrojs/starlight/components';

:::note
:::note[Apply for an API Key]
Using the Ultravox API requires an API key. You can apply for a key [here](https://forms.gle/BNmUBrqymzH3vkxj8).
:::

## Base URL
The Ultravox API is available at `https://api.ultravox.ai/api/`.

## API Keys
Ultravox API keys are 41 characters long and are made up of two alphanumeric parts separated by a period. The first part is 8 characters long and the second is 32 characters.

For example: `Zk9Ht7Lm.wX7pN9fM3kLj6tRq2bGhA8yE5cZvD4sT`

Throughout the docs we use `aBCDef.123456` for brevity.

## X-API-Key Header
When making API calls, pass your key in using the `X-API-Key` header.

Expand Down
4 changes: 4 additions & 0 deletions docs/src/content/docs/api/calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ sidebar:
order: 10
---
import { Badge, Tabs, TabItem } from '@astrojs/starlight/components';
import APIKeyRequired from '@components/APIKeyRequired.astro';

<APIKeyRequired />
<br />

Calls are what drive all speech-to-speech interactions between your end users and AI. At their most basic level, calls consist of a set of instructions to instruct the LLM how to behave (i.e. the `systemPrompt`) and the selection of the voice the AI should use when speaking.

Expand Down
Loading

0 comments on commit 6cdccbd

Please sign in to comment.