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

# Security & Compliance

> How Perform.AI authenticates portal users, Public API clients, outgoing webhooks and MCP sessions, and the limits and errors the API applies.

**Available to all Platform customers.** Users with the Administrator role manage users and roles.

## Summary

Security & Compliance covers how people and systems get into your Perform.AI account: portal sign-in with a password or your company’s single sign-on, role-based access for your users, OAuth 2.0 client credentials and Bearer tokens for the Public API, HMAC-signed outgoing webhooks, and OAuth 2.1 sign-in for the MCP server. Each surface authenticates separately and acts only on the account or organization it was issued for.

## Who it’s for

IT, security and compliance teams completing a supplier review, administrators deciding who gets which role, and developers who need to know how API authentication, tokens, rate limits and errors work before they integrate.

## Key benefits

* **Sign-in follows your identity provider.** Organizations can send portal sign-in to their own identity provider, which then applies its own credential rules, and can switch password sign-in off.
* **Roles limit what each user sees and does.** Five roles cover administration, shipment creation, analytics, tracking pages and customer service, and only Administrators manage users.
* **API access is credential-based and short-lived.** Each account has a Client ID and Client Secret, access tokens last one hour, and you can rotate tokens without downtime.
* **Webhooks prove where they came from.** Every outgoing webhook carries an HMAC-SHA256 signature you check with your own Authentication Key.
* **Your assistant sees what you see.** MCP sessions run as the signed-in user, scoped server-side to one organization and that user’s portal permissions, and every tool is read-only.

## How it works

### Portal sign-in

The sign-in page offers a **Password** tab and an **SSO** tab. Which tabs your users can use is an organization-level setting.

| Path | How it works |
| - | - |
| Password | You enter your email and password. The password must be at least 10 characters, with an uppercase letter, a lowercase letter, a digit and a special character, and no spaces. |
| Single sign-on | You are sent to your organization’s identity provider and sign in there. Supported providers include Google, Microsoft Entra ID and SAML-based providers. Any multi-factor policy your provider enforces applies. |
| SSO only | Your organization can switch password sign-in off. New users then receive no password email and sign in through your provider only. A user who signs in through SAML for the first time is created automatically and given a role. |

After five failed password attempts the account is locked, and it stays locked until a password reset is completed, even if the correct password is entered. The password reset form is protected against automated requests. Perform.AI does not force periodic password changes. Details are on [User Management](https://developers.perform.ai/products/user-management.md).

### Roles

Only Administrators can open User Management under **Settings** > **Users** and add, edit or remove users. Each user holds one of five roles.

| Role | Access |
| - | - |
| Administrator | Full access to every feature, including User Management. Generates and downloads the shipment overview report. |
| Parcel Creation | Shipment overview and details; uploads new shipments and edits existing ones; generates and downloads the shipment overview report. |
| Logistics Intelligence | Views and extracts analytics charts. Tags can limit which shipments the user sees. |
| Tracking Experience | Manages tracking pages and widgets. |
| Customer Service | Either view and edit rights on all shipment details, email notifications and webhooks, or view-only rights on all shipments or a limited set, by carrier reference or tag. |

User statuses are Inactive (has not signed in yet), Active (has signed in) and Disabled (disabled when the subscription expired or was downgraded).

### Public API authentication

The Perform.AI Public API is a JSON REST API that accepts HTTPS connections only, with the base URL `https://api.perform.ai`. It uses OAuth 2.0 with Bearer access tokens generated through the client credentials flow.

| Item | Rule |
| - | - |
| Credentials | A Client ID and Client Secret per account, created under **Integrations** > **API** with **Request Credentials**. Anyone who holds them can call the API for that account: keep the Client Secret on your server, never in client-side code, mobile apps or repositories. |
| Token request | `POST /auth/oauth/token/` with basic authentication (`Authorization: Basic` followed by the Base64 encoding of `client_id:client_secret`), `Content-Type: application/x-www-form-urlencoded` and the body `grant_type=client_credentials`. The response returns `access_token`, `expires_in: 3600` and `token_type: Bearer`. |
| Calls | Send the token as `Authorization: Bearer <access_token>` on every other request. Request and response bodies are JSON. |
| Lifetime | One hour. There is no refresh token: request a new token before the hour is up. Several tokens can be valid at the same time, and requesting a new one does not invalidate the others, so you can rotate tokens without downtime. |
| Scope | Every call acts on the account the credentials belong to. An endpoint your account has no access to returns HTTP 403 `Forbidden`. |

### Rate limits and quotas

The API allows 40 requests per second per account, with a burst allowance of 40. The limit is shared across all endpoints, so every system that uses the same credentials draws from the same budget.

* Exceeding the limit returns HTTP 429 `Throttled`. The request was rejected before processing, so you can retry it after a back-off.
* Each account also has an overall request quota. Reaching it returns HTTP 403 `Quota exceeded`; contact your account team if this happens in normal operation.
* Webhooks push shipment changes to you, which saves the requests you would otherwise spend on polling.

See [Rate limits](https://developers.perform.ai/essentials/rate-limits.md) for handling throttling.

### Responses and errors

Every functional endpoint returns JSON with an `api_response` code alongside the HTTP status.

| HTTP | `api_response` | Meaning |
| - | - | - |
| 200 | `200` | Success, usually with a `data` object or array. |
| 299 | `299` | Success with warnings: the request was processed, and a `warnings` object lists what was skipped. Do not resend it. |
| 400 | `4000` | The body could not be parsed: malformed JSON or a wrong `Content-Type`. |
| 400 | `4030` | Validation error: an `errors` object lists each rejected field. Nothing is saved; fix the fields and resend. |
| 403 | `403` | `Key not authorized` (token expired, invalid or missing), `Quota exceeded` or `Forbidden`. |
| 404 | `4041` | A search matched no shipments. |
| 429 | `429` | `Throttled`: you exceeded the rate limit. |
| 500 to 504 | same as HTTP | System error, gateway error, service unavailable or timeout. |

The token endpoint is the exception: its success response has no `api_response` field. The full list of codes and messages is in [Responses and errors](https://developers.perform.ai/essentials/responses-and-errors.md).

### Versioning

Endpoints are versioned per operation in the path: `/v5/` for the current version, with variants such as `/v5-2-0/` and `/v5-3-0/` where a revision exists. For example, Performance Aspirations results are returned only by `GET /v5-3-0/shipment/details/` and the 5.3 webhook format. Webhook payload formats (5.0, 5.2 and 5.3) are set per account: ask your account team which format your account is on. Changes to the API and MCP server are announced in the [changelog](https://developers.perform.ai/changelog.md).

### Data in and out through the API

The Public API covers the main objects in your account:

| Task | Endpoint |
| - | - |
| Create a Shipment | `POST /v5/shipment/` |
| Retrieve one Shipment with its tracking events | `GET /v5/shipment/details/` (or `/v5-2-0/`) |
| Update a Shipment | `POST /v5/shipment/update/` |
| Search Shipments | `GET /v5/shipment/list/` (key shipment information and the latest event) |
| Create a Return and its return Shipment, including the preprinted return label workflow | `POST /v5/return/` |
| Book a delivery and get the carrier label | `POST /v5/booking/` |

A Return Shipment can no longer be updated once it has been booked with a carrier through Booking. Besides the API, you can get data out of Perform.AI through the Shipment Overview export, report exports, outgoing webhooks, and custom reports sent to email or an SFTP folder.

### Outgoing webhook authentication

Every webhook Perform.AI sends is an HTTPS `POST` with a JSON body and carries an `HTTP-X-Hmac-SHA256` header: the HMAC-SHA256 of the request body, keyed with the Authentication Key shown under **Integrations** > **Webhooks**. Recompute it on your side and compare; a match proves the webhook came from Perform.AI. HMAC is the default; another method, such as OAuth or JWT, can be requested through your account team. If you filter inbound traffic, allowlist Perform.AI by hostname rather than IP.

Your endpoint must respond with HTTP 200. Otherwise Perform.AI resends the webhook up to three times, five minutes apart.

### MCP sign-in

The Perform.AI MCP server at `https://mcp.perform.ai/mcp-invoke` uses OAuth 2.1 with metadata discovery and dynamic client registration. No API keys are involved: your client opens the Perform.AI sign-in page on first use, and you sign in with your Perform.AI username and password or with **Sign in with Google**.

* **Who can connect.** Anyone with a Perform.AI account in at least one organization. Each person signs in with their own account.
* **Organization scoping.** If you belong to more than one organization, you select which one the session acts on, and can switch at any time. No tool accepts an organization parameter; the organization is resolved server-side from your session. Identifiers from other organizations return not-found, and responses never confirm that another organization’s data exists.
* **Data visibility.** Access through the MCP mirrors your access in the portal.
* **Read-only.** No tool creates, updates or deletes data. You make changes in the portal.
* **Redirect URIs.** Client registrations must use HTTPS redirect URIs; loopback URIs for desktop clients are always accepted. A client that redirects to a domain Perform.AI does not recognize shows a consent screen naming the destination. To allowlist your redirect domains, contact your account team.

Other SSO options available on the portal sign-in page are planned for the MCP sign-in page.

### Certifications and data protection

## How to set it up

### Manage users and roles

1. Go to **Settings** > **Users**.
2. Select **Add user**, enter the email address and select **Continue**.
3. Choose a role and select **Add**. To change a role or remove a user, select the user’s email address in the list.

### Make your first API call

1. Go to **Integrations** > **API** and select **Request Credentials** if your account has no credentials yet.

2. Store the Client ID and Client Secret on your server.

3. Generate a token:

   ```bash theme={null}
   curl --request POST \
     --url https://api.perform.ai/auth/oauth/token/ \
     --header "Authorization: Basic $(echo -n 'your_client_id:your_client_secret' | base64)" \
     --header 'Content-Type: application/x-www-form-urlencoded' \
     --data 'grant_type=client_credentials'
   ```

4. Send the `access_token` as `Authorization: Bearer` on every call, for example to create a Shipment with `POST /v5/shipment/`. The [Quickstart](https://developers.perform.ai/quickstart.md) walks through the full sequence.

### Secure your webhook endpoint

1. Go to **Integrations** > **Webhooks** and register your HTTPS endpoint.
2. Copy the Authentication Key and use it to verify the `HTTP-X-Hmac-SHA256` header on every request.
3. Activate the triggers that should send webhooks.

### Configure SSO

Contact your account team.

## Use via API and MCP

* Guides: [Authentication](https://developers.perform.ai/authentication.md), [Quickstart](https://developers.perform.ai/quickstart.md), [Rate limits](https://developers.perform.ai/essentials/rate-limits.md), [Responses and errors](https://developers.perform.ai/essentials/responses-and-errors.md), [Webhooks](https://developers.perform.ai/guides/webhooks.md).
* API reference: [Generate Bearer Access Token](https://developers.perform.ai/api-reference/v5/authentication/generate-bearer-access-token.md) and the [API reference overview](https://developers.perform.ai/api-reference/overview.md).
* MCP: [Installation](https://developers.perform.ai/mcp/installation.md) covers the sign-in flow per client; the [MCP overview](https://developers.perform.ai/mcp/overview.md) covers organization scoping and permissions.

## FAQ

### Does Perform.AI support single sign-on?

Yes. Sign-in is set per organization: password, single sign-on through Google, Microsoft Entra ID or a SAML-based identity provider, or both. An organization can also be SSO-only, with password sign-in switched off.

### How do we meet a multi-factor authentication requirement?

Send portal sign-in to your own identity provider through single sign-on. Your identity provider then applies its own multi-factor policy on every sign-in.

### How do I get an API access token, and how long does it last?

Request one from `POST /auth/oauth/token/` with your Client ID and Client Secret using the client credentials flow. The Bearer token lasts one hour. An expired token returns HTTP 403 `Key not authorized`; request a new token before the hour is up. Existing tokens stay valid, so you can rotate without downtime.

### What rate limits apply to the API?

40 requests per second per account, with a burst of 40, shared across all endpoints. Exceeding it returns HTTP 429 `Throttled`. Each account also has an overall quota, and reaching it returns HTTP 403 `Quota exceeded`.

### How is the API versioned?

Per operation, in the path: `/v5/` with revisions such as `/v5-2-0/` and `/v5-3-0/` where they exist. Webhook payload formats are set per account. Follow the [changelog](https://developers.perform.ai/changelog.md) for changes.

### Can my AI assistant change my shipments or configuration through the MCP?

No. Every MCP tool is read-only, and the assistant sees only what you can see in the portal for the selected organization. You apply changes in the portal.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Account locked after failed sign-ins | Five failed password attempts | Complete the password reset; the lock stays until the reset is done. |
| An SSO user cannot sign in on the Password tab | Users in an SSO-only organization, or created through SSO, have no password | Use the **SSO** tab. |
| Token request returns HTTP 403 `Key not authorized` | Wrong Client ID or Client Secret, or a malformed Basic header | Check the credentials under **Integrations** > **API** and that the Base64 string has no line breaks. |
| API call returns HTTP 403 `Key not authorized` | The Bearer token is expired or invalid | Request a new token and retry. |
| API call returns HTTP 403 `Forbidden` | Your account has no access to this endpoint | Contact your account team. |
| API call returns HTTP 429 `Throttled` | More than 40 requests per second on the account | Back off and retry; spread bulk jobs below the limit. |
| API call returns HTTP 400 with `api_response` `4030` | One or more fields failed validation | Fix the fields listed in `errors` and resend the whole request. |
| Webhooks stop arriving after errors | Your endpoint did not return HTTP 200 within three retries | Fix the endpoint so it responds with HTTP 200. |
| Raw HTTP call to the MCP URL returns `401 invalid_token` | No completed OAuth flow | Connect through an MCP client that runs the sign-in flow. |

## Related

* [User Management](https://developers.perform.ai/products/user-management.md)
* [Data Integration](https://developers.perform.ai/products/platform/data-integration.md)
* [Webhooks integration](https://developers.perform.ai/products/integrations/webhooks.md)
* [Platform overview](https://developers.perform.ai/products/platform/overview.md)


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