# Request Analytics Page Access

Ask the owner of a page you cannot open to share it. They get an email; a request already waiting is not sent twice. The page id comes from a link or from someone who can open it.

`POST https://connect.mindcloud.co/v2/analytics/pages/:pageId/access-requests`

Permissions: `analytics:page:view`.

## Parameters

### Path

- `pageId` (string, required): The page id, from a link to it or from someone who can open it.

### Headers

- `X-Company-Id` (string): Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. Here a key acts in another organization only as one of its members: with "Use this key across all of your organizations" on, in an organization its creator belongs to with a role. Child organizations and MindCloud staff access do not reach this endpoint. Every response's X-Company-Id header names the organization it acted in. See [Organizations](https://mindcloud.co/docs/api/rest/introduction/organizations).

## Example request

```bash
curl --request POST \
  --url 'https://connect.mindcloud.co/v2/analytics/pages/Pq7Lm2Xc9RtA/access-requests' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

## Response fields

- `pageId` (string): The page asked for, from List Analytics Pages.
- `requestedOn` (date): When the request was made. A request still waiting is not sent again.
- `emailed` (boolean): Whether this call emailed the owner; false when a request was already waiting.
