> ## 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.

# Plugin Installation

> Step-by-step guide to install LatePoint API Extension

## Before You Begin

<Warning>
  Make sure you have a **complete backup** of your site before installing any plugin.
</Warning>

### Checklist

* ✅ [System requirements](/installation/requirements) verified
* ✅ LatePoint main plugin installed and activated
* ✅ Site backup completed
* ✅ WordPress administrator access

## Installation Methods

### Method 1: WordPress Dashboard Installation

<Steps>
  <Step title="Access Plugin Panel">
    1. Log in to your WordPress dashboard
    2. Go to **Plugins > Add New**
    3. Click **"Upload Plugin"** at the top
  </Step>

  <Step title="Upload File">
    1. Click **"Choose File"**
    2. Select the `latepoint-api-extension.zip` file
    3. Click **"Install Now"**
  </Step>

  <Step title="Activate Plugin">
    1. Once installed, click **"Activate Plugin"**
    2. You'll be redirected to the plugins page
    3. Verify "LatePoint API Extension" appears in the list
  </Step>
</Steps>

### Method 2: FTP Installation

<Steps>
  <Step title="Prepare Files">
    1. Extract the `latepoint-api-extension.zip` file
    2. You'll have a folder named `latepoint-api-extension`
    3. Connect to your server via FTP
  </Step>

  <Step title="Upload to Server">
    1. Navigate to `/wp-content/plugins/`
    2. Upload the complete `latepoint-api-extension` folder
    3. Ensure all files are uploaded correctly
  </Step>

  <Step title="Activate from WordPress">
    1. Go to **Plugins > Installed Plugins** in WordPress
    2. Find "LatePoint API Extension"
    3. Click **"Activate"**
  </Step>
</Steps>

## Installation Verification

### 1. Check Plugin Panel

In **Plugins > Installed Plugins**, you should see:

```
LatePoint API Extension
Version 1.0.0 | By WPLimit
Status: Active
```

### 2. Check LatePoint Menu

In the WordPress sidebar menu, under **LatePoint**, you should see a new option:

```
LatePoint
├── Dashboard
├── Bookings
├── Customers
├── ...
└── API Settings  ← New option
```

### 3. Verify API

Test that the API is available by visiting:

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

You should see a JSON response like:

```json theme={null}
{
  "namespace": "latepoint/v1",
  "routes": {
    "/latepoint/v1": {
      "namespace": "latepoint/v1",
      "methods": ["GET"],
      "endpoints": [...]
    }
  }
}
```

## Troubleshooting

### Error: "Plugin could not be activated"

**Possible causes:**

* LatePoint main plugin not installed
* Incompatible PHP version
* Incorrect file permissions

**Solution:**

1. Verify LatePoint is installed and activated
2. Check [system requirements](/installation/requirements)
3. Check WordPress error logs

### Error: "Database error during activation"

**Cause:** Insufficient database permissions

**Solution:**

1. Verify WordPress user has CREATE and ALTER permissions
2. Contact your hosting provider if necessary
3. Check MySQL/MariaDB logs

### Error: "API endpoints not found"

**Cause:** Permalinks not configured correctly

**Solution:**

1. Go to **Settings > Permalinks**
2. Select any option except "Plain"
3. Save changes
4. Test the API URL again

## Next Steps

<CardGroup cols={2}>
  <Card title="Configuration" icon="gear" href="/installation/configuration">
    Configure the plugin after installation
  </Card>

  <Card title="First API Key" icon="key" href="/authentication">
    Generate your first API Key
  </Card>

  <Card title="Quick Start" icon="rocket" href="/quickstart">
    Make your first API call
  </Card>

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

## Support

If you encounter issues during installation:

1. **Check logs**: WordPress > Tools > Site Health
2. **Consult documentation**: [wpdocs.latepoint.com](https://wpdocs.latepoint.com)
3. **Contact support**: Dicord Community
