> ## Documentation Index
> Fetch the complete documentation index at: https://www.tella.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Make your first API call in minutes

# Quickstart

Get up and running with the Tella API in just a few minutes.

## Step 1: Get your API key

1. Go to your [Tella account settings](https://www.tella.tv/settings/api-keys)
2. Click **Create key**
3. Copy your new API key (it starts with `tella_pk_`)

<Warning>
  Keep your API key secure. Never share it publicly or commit it to version
  control.
</Warning>

## Step 2: Make your first request

To list all videos in your workspace, make the following request:

<CodeGroup>
  ```bash cURL theme={null}
  curl -H "Authorization: Bearer tella_pk_your_api_key" \
    https://api.tella.com/v1/videos
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.tella.com/v1/videos", {
    headers: {
      Authorization: "Bearer tella_pk_your_api_key",
    },
  });

  const data = await response.json();
  console.log(data);
  ```

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

  response = requests.get(
      'https://api.tella.com/v1/videos',
      headers={'Authorization': 'Bearer tella_pk_your_api_key'}
  )

  print(response.json())
  ```
</CodeGroup>

## Step 3: Explore the response

A successful response looks like this:

```json theme={null}
{
  "videos": [
    {
      "id": "abc123xyz",
      "name": "Product Demo",
      "description": "A walkthrough of our new feature",
      "views": 1234,
      "durationSeconds": 125.5,
      "aspectRatio": "16:9",
      "createdAt": "2024-01-15T10:30:00Z",
      "updatedAt": "2024-01-15T10:30:00Z",
      "links": {
        "viewPage": "https://www.tella.tv/video/abc123xyz/view",
        "embedPage": "https://www.tella.tv/video/abc123xyz/embed"
      }
    }
  ],
  "pagination": {
    "nextCursor": null,
    "hasMore": false
  }
}
```

## Step 4: Get video details

To get full details including the transcript:

<CodeGroup>
  ```bash cURL theme={null}
  curl -H "Authorization: Bearer tella_pk_your_api_key" \
    https://api.tella.com/v1/videos/abc123xyz
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.tella.com/v1/videos/abc123xyz", {
    headers: {
      Authorization: "Bearer tella_pk_your_api_key",
    },
  });

  const video = await response.json();
  console.log(video.transcript);
  ```
</CodeGroup>

## Next steps

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/authentication">
    Learn about API key management and security best practices.
  </Card>

  <Card title="Rate Limiting" icon="gauge" href="/rate-limiting">
    Understand rate limits and how to handle them.
  </Card>

  <Card title="Webhooks" icon="webhook" href="/webhooks">
    Set up webhooks to receive real-time event notifications.
  </Card>
</CardGroup>
