> For the complete documentation index, see [llms.txt](https://docs.qapilot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qapilot.io/detailed-documentation/partner-integrations.md).

# Partner Integrations

## Single Sign-On (SSO) Integration

SSO lets your users open QAPilot directly from your platform without having to log in separately.

***

### Before You Begin

Your users must already be onboarded on QAPilot. Contact your QAPilot account manager to get this set up.

***

### Step 1 - Enable SSO

1. In QAPilot, go to **Settings → Single Sign-On**
2. Toggle **Enable Single Sign-On** to **Yes**
3. Copy the **Access Key** shown and save it securely in your backend

> **Note:** If you click **Refresh**, a new Access Key is generated and the old one is deactivated immediately. Update your integration before refreshing.

***

### Step 2 - Generate an SSO Token

When a user wants to access QAPilot, your backend need to call this API to get a login URL.

**Endpoint**

```
POST https://api.qapilot.io/patapi/access/sso/v1/generate-sso-token
```

**Request body**

```json
{
  "login_id": "user@example.com",
  "accesskey": "your-access-key-here"
}
```

| Field       | Description                            |
| ----------- | -------------------------------------- |
| `login_id`  | The user's registered email on QAPilot |
| `accesskey` | The Access Key from your SSO Settings  |

Reach out to support team for assistance with hashing of the payload. On success, you will receive a signed URL. Redirect the user's browser to this URL - QAPilot will log them in automatically.

> The token in this URL is valid for **5 minutes** and can only be used once.

***

### Important

* Always make this API call from your backend, never from the browser
* Generate a fresh token each time - do not reuse or cache tokens
* The `login_id` must belong to a user already onboarded on QAPilot

***

*For help, contact your QAPilot account manager or write to* [*support@qapilot.io*](mailto:support@qapilot.io)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.qapilot.io/detailed-documentation/partner-integrations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
