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

# Quick Start Guide

> Set up LatePoint API Extension in minutes

## Installation

<Steps>
  <Step title="Get Plugin License">
    To obtain your **License code**, once you have made your payment and your order is complete, go to [https://wplimit.com/account/licenses/](https://wplimit.com/account/licenses/) and your active license will be appear there.
  </Step>

  <Step title="Download the Plugin">
    Download the LatePoint API Extension plugin ZIP file from your **WPLimit Account** on **Downloads**.
  </Step>

  <Step title="Install in WordPress">
    1. Go to **Plugins > Add New** in your WordPress dashboard
    2. Click **Upload Plugin**
    3. Select the downloaded ZIP file
    4. Click **Install Now**
    5. **Activate** the plugin once installed
  </Step>

  <Step title="Verify Requirements">
    Make sure you have:

    * LatePoint main plugin installed and activated
    * WordPress 5.0 or higher
    * PHP 7.4 or higher
    * Administrator permissions in WordPress
  </Step>
</Steps>

## Initial Configuration

### 1. Access Configuration

Once the plugin is activated, you'll find the new **API Settings** section in the LatePoint menu:

```
LatePoint > API Settings
```

### 2. Generate your API Key

<Warning>
  Save your API Key in a secure place. You won't be able to see it again once generated.
</Warning>

1. On the API configuration page, click **"Generate New API Key"**
2. Copy the generated API Key
3. Save it in your password manager or secure configuration file

## Your First API Call

### Base Endpoint

All API calls use the following base URL:

```
https://your-site.com/wp-json/latepoint-api/v1/
```

### Authentication

Include your API Key in the header of each request:

```bash theme={null}
X-API-Key: your_api_key_here
```

### Example: Get Services List

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://your-site.com/wp-json/latepoint-api/v1/services" \
    -H "X-API-Key: your_api_key_here" \
    -H "Content-Type: application/json"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://your-site.com/wp-json/latepoint-api/v1/services', {
    method: 'GET',
    headers: {
      'X-API-Key': 'your_api_key_here',
      'Content-Type': 'application/json'
    }
  });

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

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

  url = "https://your-site.com/wp-json/latepoint-api/v1/services"
  headers = {
      "X-API-Key": "your_api_key_here",
      "Content-Type": "application/json"
  }

  response = requests.get(url, headers=headers)
  services = response.json()
  print(services)
  ```

  ```php PHP theme={null}
  <?php
  $url = 'https://your-site.com/wp-json/latepoint-api/v1/services';
  $headers = [
      'X-API-Key: your_api_key_here',
      'Content-Type: application/json'
  ];

  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

  $response = curl_exec($ch);
  $services = json_decode($response, true);
  curl_close($ch);

  print_r($services);
  ?>
  ```
</CodeGroup>

### Expected Response

```json theme={null}
{
  "status": "success",
  "data": [
    {
      "id": 1,
      "name": "General Consultation",
      "duration": 30,
      "price": 50.00,
      "description": "General medical consultation",
      "category_id": 1
    },
    {
      "id": 2,
      "name": "Specialized Consultation",
      "duration": 60,
      "price": 100.00,
      "description": "Consultation with specialist",
      "category_id": 2
    }
  ],
  "total": 2
}
```

## Verify Configuration

### Connectivity Test

You can verify that everything works correctly with this test endpoint:

```bash theme={null}
curl -X GET "https://your-site.com/wp-json/latepoint-api/v1/status" \
  -H "X-API-Key: your_api_key_here"
```

**Successful response:**

```json theme={null}
{
  "status": "success",
  "message": "API is working correctly",
  "version": "1.0.0",
  "timestamp": "2024-01-15T10:30:00Z"
}
```

## Next Steps

<CardGroup cols={2}>
  <Card title="Advanced Authentication" icon="shield" href="/authentication">
    Learn about security and best practices
  </Card>

  <Card title="Complete Reference" icon="book" href="/api-reference/introduction">
    Explore all available endpoints
  </Card>

  <Card title="Booking Management" icon="calendar" href="/api-reference/bookings/list">
    Start working with bookings
  </Card>

  <Card title="Error Handling" icon="exclamation-triangle" href="/api-reference/errors">
    Learn to handle errors correctly
  </Card>
</CardGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Error 401: Unauthorized">
    * Verify that your API Key is correct
    * Make sure to include the `X-API-Key` header
    * Confirm that the API Key hasn't expired
  </Accordion>

  <Accordion title="Error 404: Not Found">
    * Verify that the base URL is correct
    * Confirm that the plugin is activated
    * Check that permalinks are configured correctly
  </Accordion>

  <Accordion title="Error 500: Internal Server Error">
    * Check WordPress logs
    * Verify that LatePoint main plugin is installed
    * Confirm that system requirements are met
  </Accordion>
</AccordionGroup>

Need help? Check our [complete documentation](/api-reference/introduction) or contact technical support.
