> For the complete documentation index, see [llms.txt](https://docs.mobb.ai/mobb-user-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mobb.ai/mobb-user-docs/more-info/update-broker-token.md).

# Update Broker Token

{% hint style="warning" %}
This section applies **only to on-premises Mobb deployments** where the [Mobb Broker](/mobb-user-docs/more-info/mobb-broker.md) is used to connect to a self-hosted source code management (SCM) system.
{% endhint %}

When Mobb is deployed on-premises and connects to a self-hosted SCM through the Mobb Broker, it requires a valid SCM credential (typically a Personal Access Token) to authenticate against that SCM. Over time, these tokens may expire, be rotated for security reasons, or need to be replaced.

This section covers how to update the SCM credential for each supported on-premises SCM platform and authentication method:

**GitLab Server**

* [GitLab Server — PAT](/mobb-user-docs/more-info/update-broker-token/gitlab-server-pat.md)
* [GitLab Server — OAuth](/mobb-user-docs/more-info/update-broker-token/gitlab-server-oauth.md)

**GitHub Enterprise Server**

* [GitHub Enterprise Server — PAT](/mobb-user-docs/more-info/update-broker-token/github-enterprise-server-pat.md)
* [GitHub Enterprise Server — OAuth](/mobb-user-docs/more-info/update-broker-token/github-enterprise-server-oauth.md)

**Azure DevOps Server**

* [Azure DevOps Server — PAT](/mobb-user-docs/more-info/update-broker-token/azure-devops-server-pat.md)


---

# 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.mobb.ai/mobb-user-docs/more-info/update-broker-token.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.
