> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/tech/maiagent-tech-en/authorization-integration.md).

# Authorization Integration

- [Vendor Integration Guide (End-to-End)](https://docs.maiagent.ai/tech/maiagent-tech-en/authorization-integration/vendor-integration-guide.md): End-to-end guide for software vendors embedding Web Chat into their product and completing authorization integration: embedding, batch backfill, login sync, Token refresh, and logout revocation
- [Contact Introduction and Integration](https://docs.maiagent.ai/tech/maiagent-tech-en/authorization-integration/contacts.md)
- [Contact Identity Sync and Token Update](https://docs.maiagent.ai/tech/maiagent-tech-en/authorization-integration/contact-credentials-sync.md): Enterprise systems sync contact identity and update Token credentials via setup-contact-credentials when creating users and on each login
- [Differences between Role and Contact](https://docs.maiagent.ai/tech/maiagent-tech-en/authorization-integration/role-vs-contact.md): Use Roles to manage platform permissions for internal members, and Contacts to identify external users — definitions, differences, and how to choose
- [Knowledge Management Permissions (Query Metadata) Overview](https://docs.maiagent.ai/tech/maiagent-tech-en/authorization-integration/zhi-shi-guan-li-quan-xian-query-metadata-cha-xun-yuan-zi-liao-zong-lan.md): Control the knowledge scope accessible to AI assistants through Query Metadata. See the "Start Building" subpages for detailed configuration.
- [Getting Started—Using "Query Builder"](https://docs.maiagent.ai/tech/maiagent-tech-en/authorization-integration/zhi-shi-guan-li-quan-xian-query-metadata-cha-xun-yuan-zi-liao-zong-lan/graphical-interface.md): Use the dashboard's Query Builder to configure Query Metadata with checkboxes, covering contact-level and per-message settings for internal Q\&A
- [Getting Started—Using JSON Format](https://docs.maiagent.ai/tech/maiagent-tech-en/authorization-integration/zhi-shi-guan-li-quan-xian-query-metadata-cha-xun-yuan-zi-liao-zong-lan/json-interfaces.md): If you want to write more complex filter conditions, use JSON format to specify by ID at each level (e.g., knowledge base, individual document)


---

# 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.maiagent.ai/tech/maiagent-tech-en/authorization-integration.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.
