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

# Quickstart

> Make your first API request in 2 minutes

Get up and running with the Exec API in just a few steps.

## Prerequisites

<Check>
  You have an Exec workspace with admin access
</Check>

## Step 1: Create an API Key

<Steps>
  <Step title="Go to Settings > API">
    Navigate to your workspace settings and click **API** in the sidebar.
  </Step>

  <Step title="Create a new key">
    Click **Create API Key**, enter a name like "Quickstart Test", and click **Create**.
  </Step>

  <Step title="Copy your key">
    Copy the displayed key immediately. It looks like `exec_live_aB3dE5...`
  </Step>
</Steps>

## Step 2: Make Your First Request

Open a terminal and run this command, replacing `YOUR_API_KEY` with the key you copied:

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.exec.com/rest/v1/workspace" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

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

  response = requests.get(
      "https://api.exec.com/rest/v1/workspace",
      headers={"Authorization": "Bearer YOUR_API_KEY"}
  )
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  fetch("https://api.exec.com/rest/v1/workspace", {
    headers: {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  })
  .then(res => res.json())
  .then(data => console.log(data));
  ```
</CodeGroup>

## Step 3: Check the Response

You should receive a JSON response with your workspace information:

```json theme={null}
{
  "id": "a1b2c3d4e5f6",
  "name": "Your Workspace Name",
  "url_slug": "your-workspace",
  "created_at": "2024-01-15T10:30:00Z"
}
```

<Check>
  If you see your workspace data, you're all set!
</Check>

## Troubleshooting

<AccordionGroup>
  <Accordion title="401 Unauthorized">
    * Check that your API key is correct and complete
    * Ensure the key hasn't been deactivated
    * Verify the `Bearer ` prefix is included (with the space)
  </Accordion>

  <Accordion title="Connection errors">
    * Verify you're using the correct base URL: `https://api.exec.com/rest/v1/`
    * Check your network connection and firewall settings
  </Accordion>
</AccordionGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="Get Practice Data" icon="chart-line" href="/api-reference/endpoint/get-listsessions">
    Pull roleplay session scores, transcripts, and feedback
  </Card>

  <Card title="Track Skill Proficiency" icon="head-side-gear" href="/api-reference/endpoint/get-listskills">
    See how your team is progressing on key skills
  </Card>

  <Card title="Monitor Assignments" icon="clipboard-check" href="/api-reference/endpoint/get-listassignments">
    Check assignment completion status and scores
  </Card>

  <Card title="Scenario Analytics" icon="chart-bar" href="/api-reference/endpoint/get-getscenarioanalyticssummary">
    Get aggregate performance metrics for scenarios
  </Card>
</CardGroup>
