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

# Get Plans

> Get available subscription plans

# Get Plans

Get all available subscription plans.

## Endpoint

```
GET /api/v1/plans/index
```

<Note>This endpoint requires authentication</Note>

## Headers

<ParamField header="X-API-Token" type="string" required>
  Your API access token. You can also set this globally in the API playground.
</ParamField>

<ParamField header="platform" type="string" required>
  The platform making the request: `WEB`, `IOS`, or `ANDROID`.
</ParamField>

## Request Body

None

## Response

<ResponseField name="status" type="string">
  Success status
</ResponseField>

<ResponseField name="data" type="array">
  Array of subscription plans
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET http://localhost/fss/public/api/v1/plans/index \
    -H "X-API-Token: YOUR_API_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('http://localhost/fss/public/api/v1/plans/index', {
    method: 'GET',
    headers: {
      'X-API-Token': 'YOUR_API_TOKEN'
    }
  });

  const data = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "status": "success",
    "data": [
      {
        "id": 1,
        "name": "Basic",
        "price": 29.99,
        "interval": "monthly",
        "features": ["Feature 1", "Feature 2"]
      },
      {
        "id": 2,
        "name": "Pro",
        "price": 49.99,
        "interval": "monthly",
        "features": ["Feature 1", "Feature 2", "Feature 3"]
      }
    ]
  }
  ```

  ```json Error Response theme={null}
  {
    "status": "error",
    "message": "Unauthorized"
  }
  ```
</ResponseExample>
