> For the complete documentation index, see [llms.txt](https://help.alternativepayments.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.alternativepayments.io/integrations/psa-integration-guides/halopsa/creating-a-new-halopsa-agent.md). Agents can also search and read this documentation through its [MCP server](https://help.alternativepayments.io/~gitbook/mcp).

# Creating a New HaloPSA Agent

When connecting your Alternative Payments (API) application to HaloPSA, you'll need to link an agent account that the integration can authenticate with. By default, we recommend using an agent with full admin permissions, but we understand that's not always the right fit for every organization.

If your team has security or compliance requirements that restrict the use of admin-level accounts for third-party integrations, you can instead create a dedicated agent with a specific, limited set of permissions. This article walks you through creating that agent and configuring the minimum permissions required for the API integration to function correctly.

### Step 1 - Create a New Agent in HaloPSA

Start by creating a brand-new agent account that will be used exclusively by the API integration. We recommend keeping this agent separate from any human user accounts to make it easier to manage access and audit activity.

1. Log in to your HaloPSA instance as an administrator.
2. Navigate to Configuration → Teams & Agents → Agents.
3. Click **New.**
4. Fill in the required agent details. We suggest a descriptive name such as Alternative Payments API to make its purpose immediately clear to other admins.
5. Save the agent.

### Step 2 - Configure the Required Permissions

Once the agent is created, you'll need to assign the following permission levels. These are the minimum permissions required for the API integration to read and update client, invoice, and contract data within HaloPSA. Click on **Edit** to set the following permissions:

* Client Access level: Read and Modify
* Invoice Access Level: Read, Create and Modify
* Client Contracts Level: Read and Modify
* Under Features Access > Users Access Level: Read Only

### Step 3 - Link the Agent to Your API Application

Follow our [HaloPSA Integration Set-Up Guide](https://help.alternativepayments.io/integrations/psa-integration-guides/halopsa/halopsa-integration-set-up-guide) to associate the newly created agent to the API application you create to successfully integrate with Alternative Payments.

\ <br>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.alternativepayments.io/integrations/psa-integration-guides/halopsa/creating-a-new-halopsa-agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
