--- title: "Authenticate a User" slug: "authenticate-a-user" description: "Learn how to authenticate a user; manage secure login, verify credentials, and enforce correct permissions across your site." updated: 2026-04-22T15:05:06Z published: 2026-04-22T15:05:06Z canonical: "www.civicplus.help/authenticate-a-user" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://www.civicplus.help/llms.txt > Use this file to discover all available pages before exploring further. # Authenticate a User This article will show you how to authenticate a user on an API. > [!NOTE] > Important Note: > > You must first [create and authenticate the API](/municipal-websites-central/docs/create-and-authenticate-an-api). > [!TIP] > **Who can use this feature?** > > System Administrator ## Instructions [Embedded content](https://www.iorad.com/player/1872977/CivicEngage--How-to-Authenticate-a-User-Practice-Tutorial) 1. Log in to the site with your credentials 2. After you log in, type in **/api** after the domain's suffix - **Example:** civicplus.civicplus.com/api 3. In the site, enter your **partition** and **apiKey** fields:![The Swagger dashboard with the Partition and API Key fields highlighted.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Swagger%20Dashboard%20Partition%20and%20API%20Key%20-%20MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T14%3A39%3A23Z&se=2026-11-23T15%3A39%3A23Z&sr=b&sp=r&sig=UhcBpsr0iwP4aF%2B4peBbpK%2Fte6DAcCEScVChHl1vJI0%3D) > [!WARNING] > **Note**: > > CivicPlus will provide these values. 4. For the **UserToken**, expand the **Authentication** tab:![Swagger dashboard page with the Authentication tab highlighted.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Swagger%20Dashboard%20Authentication%20Tab%20-%20MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T14%3A39%3A23Z&se=2026-11-23T15%3A39%3A23Z&sr=b&sp=r&sig=hPQlSRMfSR6lJP%2BwPpg2QGZBUMCmcUQPHgpqQu0ZZ4M%3D) - Inside of Authentication, there are various API Calls. 5. Select the API **/api/Authentication/v1/Authenticate**:![Swagger Authentication tab with an API selected.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Swagger%20Authentication%20Tab%20Select%20API%20-%20MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T14%3A39%3A23Z&se=2026-11-23T15%3A39%3A23Z&sr=b&sp=r&sig=QWaMZDW%2BYfYqxGwTVu6Bj8nCSYlF9QfeUYqGcg5ipbE%3D) 6. Click on the **Model Schema**:![Swagger Authentication tab with the Model Schema highlighted.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Swagger%20Authentication%20Tab%20Model%20Schema%20-%20MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T14%3A39%3A23Z&se=2026-11-23T15%3A39%3A23Z&sr=b&sp=r&sig=KudahjUA%2BBHgIHs%2BQFm%2FxSzPXX0z%2BwLYRtvemVktOP8%3D) - This will automatically populate the **userCredentials** value:![Swagger Authentication Tab with the User Credentials field filled from clicking the Model Schema.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Swagger%20Authentication%20Tab%20User%20Credentials%20-%20MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T14%3A39%3A23Z&se=2026-11-23T15%3A39%3A23Z&sr=b&sp=r&sig=eHAuh0uoCK3J4DdcjJuHRodMgLE%2FQ9W3wj53ETOFB5Q%3D) 7. Replace the string value with the proper **Username** and **Password**:![Swagger Authentication tab with updated user credentials.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Swagger%20Authentication%20Tab%20Update%20User%20Credentials%20-%20MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T14%3A39%3A23Z&se=2026-11-23T15%3A39%3A23Z&sr=b&sp=r&sig=KUtY%2BGQwgCABvBd6CgaXMNwhwh3zQBcWpnOOJhVMtkU%3D) 8. Click **Do It!**:![Swagger Authentication tab with the Do it! button highlighted.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Swagger%20Authentication%20Tab%20Do%20It%20Button%20-%20MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T14%3A39%3A23Z&se=2026-11-23T15%3A39%3A23Z&sr=b&sp=r&sig=UmVbq0IXh%2FI0ZMRyUAsTsQD2VyFKSVQp1SyxJZFIymE%3D) - This should generate an **APIKey** which will be the **UserToken** used previously:![The Response Body field of the Authentication tab on Swagger is highlighted.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Swagger%20Authentication%20Tab%20Response%20Body%20-%20MWC.png?sv=2026-02-06&spr=https&st=2026-11-23T14%3A39%3A23Z&se=2026-11-23T15%3A39%3A23Z&sr=b&sp=r&sig=LMmBplCnotdMJde9M0yomkxt7eFViG%2FDuNlcArdszXU%3D) 9. With the UserToken available, you can continue building your API Integration Application Programming Interface. A set of rules that allows programmers to develop software for a particular operating system without having to be completely familiar with that operating system.