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

# Portal API

> Buyer authentication, profiles, favorites, reservations, and customer-dashboard reporting.

Portal accounts belong to buyers inside a project or group Viewer. They are separate from the customer accounts used to sign in to the Planpoint dashboard.

## Base URL and credentials

Use `https://app.planpoint.io/api`. Send JSON with `Content-Type: application/json`, except for file uploads. Project, group, unit, reservation, and user IDs are 24-character hexadecimal strings.

| Access label | Credential |
| - | - |
| Public | No Planpoint login token required. Entity configuration and validation still apply. |
| Portal buyer | `Authorization: Bearer <PORTAL_TOKEN>` from Portal signup, login, or password reset. |
| Customer dashboard | `Authorization: Bearer <DASHBOARD_TOKEN>` from [customer login](https://viewerdocs.planpoint.io/api-documentation/endpoint/user/login.md). Resource permissions still apply. |

Portal and dashboard tokens are **not interchangeable**. Do not put session tokens in query strings, logs, or shared links. Portal endpoints also accept a `token` cookie; bearer headers are recommended for integrations.

For signup and login, send either `projectId` or `groupId`, not both. Portal must be enabled on that entity. A project-scoped account is not automatically an account in a different project or group.

Portal tokens expire after seven days and require a live server-side session. Logout revokes that session. Use check-session with the same project or group used to log in.

## Endpoint reference

### Authentication

| Method | Path | Access |
| - | - | - |
| POST | [/portal/signup](https://viewerdocs.planpoint.io/api-documentation/portal/authentication.md#sign-up) | Public |
| POST | [/portal/login](https://viewerdocs.planpoint.io/api-documentation/portal/authentication.md#log-in) | Public |
| GET | [/portal/check-session](https://viewerdocs.planpoint.io/api-documentation/portal/authentication.md#check-session) | Portal buyer |
| POST | [/portal/logout](https://viewerdocs.planpoint.io/api-documentation/portal/authentication.md#log-out) | Portal token |
| POST | [/portal/forgot-password](https://viewerdocs.planpoint.io/api-documentation/portal/authentication.md#request-a-password-reset) | Public |
| POST | [/portal/reset-password](https://viewerdocs.planpoint.io/api-documentation/portal/authentication.md#reset-password) | Reset token |

### Buyer data

| Method | Path | Access |
| - | - | - |
| GET | [/portal/user](https://viewerdocs.planpoint.io/api-documentation/portal/buyer-data.md#get-current-buyer) | Portal buyer |
| DELETE | [/portal/user](https://viewerdocs.planpoint.io/api-documentation/portal/buyer-data.md#delete-current-buyer) | Portal buyer |
| PUT | [/portal/profile](https://viewerdocs.planpoint.io/api-documentation/portal/buyer-data.md#update-profile) | Portal buyer |
| GET | [/portal/favorite-unit](https://viewerdocs.planpoint.io/api-documentation/portal/buyer-data.md#list-favorites) | Portal buyer |
| POST | [/portal/favorite-unit](https://viewerdocs.planpoint.io/api-documentation/portal/buyer-data.md#update-favorites) | Portal buyer |
| GET | [/portal/reservations](https://viewerdocs.planpoint.io/api-documentation/portal/buyer-data.md#list-reservations) | Portal buyer |
| POST | [/portal/reservations](https://viewerdocs.planpoint.io/api-documentation/portal/buyer-data.md#update-reservation-links) | Portal buyer |

### Reporting and uploads

| Method | Path | Access |
| - | - | - |
| GET | [/portal/users](https://viewerdocs.planpoint.io/api-documentation/portal/management.md#list-portal-users) | Customer dashboard |
| GET | [/portal/events](https://viewerdocs.planpoint.io/api-documentation/portal/management.md#list-portal-events) | Customer dashboard |
| POST | [/portal/events](https://viewerdocs.planpoint.io/api-documentation/portal/management.md#record-a-portal-event) | Portal buyer |
| POST | [/portal/upload](https://viewerdocs.planpoint.io/api-documentation/portal/management.md#upload-a-file) | Customer dashboard |

## Errors and safe testing

Most Portal errors use `{ "message": "..." }`; uploads also use `error`. Check the HTTP status before reading the success payload. Common statuses are `400` for invalid input, `401` for authentication failure, `403` for denied access, `404` for a missing or inaccessible record, `405` for an unsupported method, and `500` for a server failure. Endpoint-specific exceptions are listed in the reference.

Rate-limited requests return `429`. When present, respect the `Retry-After` header in seconds. Do not assume a fixed global request allowance.

> [!WARNING]
>
> The examples use synthetic IDs and contact details, not a provisioned sandbox. Signup, profile updates, uploads, events, and password-reset requests have real side effects. Arrange a test project with support before running them.

A favorite or Portal event is not a payment. Adding a reservation link does not create a reservation, charge a buyer, or reserve inventory. See the [Payments API](https://viewerdocs.planpoint.io/api-documentation/payments/overview.md) for those workflows.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.