> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetAccessStatus

# Package: onlinePrograms

# Namespace: ParticipantsService

# Method link: https://dev.wix.com/docs/api-reference/business-management/online-programs/participants/get-access-status.md

## Permission Scopes:
Manage Online Programs: SCOPE.CHALLENGES.MANAGE

## Introduction

Retrieves the access status for the current site, indicating whether participants can access
online programs or if access is blocked due to plan limitations or other restrictions.

---

## REST API

### Schema

```
 Method: getAccessStatus
 Description: Retrieves the access status for the current site, indicating whether participants can access online programs or if access is blocked due to plan limitations or other restrictions.
 URL: https://www.wixapis.com/online-programs/v3/participants/access
 Method: GET
 Return type: GetAccessStatusResponse
  - name: accessBlocked | type: boolean | description: Whether participants are blocked from accessing online programs because of site limitations.  


```

### Examples

### Get participant access status
Retrieves whether participants can access online programs on the site.

```curl
curl -X GET \
'https://www.wixapis.com/online-programs/participants/v3/participants/access' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.onlinePrograms.participants.getAccessStatus()
 Description: Retrieves the access status for the current site, indicating whether participants can access online programs or if access is blocked due to plan limitations or other restrictions.
 Return type: PROMISE<GetAccessStatusResponse>
  - name: accessBlocked | type: boolean | description: Whether participants are blocked from accessing online programs because of site limitations.  


```

### Examples

### Get participant access status
Checks whether participants can access Online Programs on the current site.

```javascript
import { participants } from "@wix/online-programs";

async function getAccessStatus() {
  const response = await participants.getAccessStatus();

  return response;
}

/* Promise resolves to:
 * {
 *   "accessBlocked": false
 * }
 */

```

### getAccessStatus (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { participants } from '@wix/online-programs';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { participants },
  // Include the auth strategy and host as relevant
});


async function getAccessStatus() {
  const response = await myWixClient.participants.getAccessStatus();
};
```

---