---
title: Create and Manage Enginehire Public API Keys
description: Create and manage Enginehire Public API keys with read-only or read/write access, optional expiry dates, and secure API authentication.
---

[Skip to content](https://learn.enginehire.io/en/knowledge/create-and-manage-enginehire-public-api-keys#main-content)

English

Show submenu for translations

[Contact us](https://learn.enginehire.io/en/knowledge/kb-tickets/new?hsLang=en) [Customer portal](https://learn.enginehire.io/tickets-view?hsLang=en)

![enginehire logo thin dark 1.0.png\]](https://learn.enginehire.io/hs-fs/hubfs/enginehire%20logo%20thin%20dark%201.0.png?height=40&name=enginehire%20logo%20thin%20dark%201.0.png)

- Home
- Products
- Pricing
- Blog
- Company

Open main navigation

Close main navigation

- Home
- Products
- Pricing
- Blog
- Company
- English
  
  Show submenu for translations
- [Contact us](https://learn.enginehire.io/en/knowledge/kb-tickets/new)
- [Customer portal](https://learn.enginehire.io/tickets-view)
- Go to main page

 Go to main page

 Hello! You can find guides on how to do everything in Enginehire here. If you can't find what you are looking for or anything feels out of date, please contact us!

- There are no suggestions because the search field is empty.

1. [Enginehire Help Center](https://learn.enginehire.io/en/knowledge?hsLang=en)
2. [Integrations](https://learn.enginehire.io/en/knowledge/integrations?hsLang=en)

# Create and Manage Enginehire Public API Keys

## Create and manage Public API keys to securely connect developers and third-party integrations to the Enginehire Public API without using an administrator's email address and password. You can configure read-only or read/write access, set optional expiry dates, use keys to authenticate API requests, and revoke them whenever access is no longer needed.

### **Before You Start**

- Make sure you are logged in to Enginehire as an **agency admin**.
- Keep a secure place ready to store your API key, such as a password manager. Enginehire displays each key only once, immediately after you create it.
- Public API keys work only with the Enginehire Public API at[https://apiweb.enginehire.io/public-api/](https://apiweb.enginehire.io/public-api/). You cannot use them to log in to your dashboard or access the dashboard API.

Let’s get started 🚀

### **Create a Public API key**

Create a Public API key in your Enginehire dashboard and configure its access permissions and expiry.

**Step 1:** Log in to your agent dashboard, and go to **More** \> **Integrations** as shown in the screenshot below.

![image11](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image11.png?width=670&height=234&name=image11.png)

**Step 2:** Select **Automation & Developer** from the category list.

![image1](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image1.png?width=670&height=297&name=image1.png)

**Step 3:** Click the **Public API Keys** tile.

![image15](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image15.png?width=670&height=263&name=image15.png)

**Step 4:** On the **Setup** tab, click **Create API key** at the bottom of the panel.

![image5](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image5.png?width=670&height=561&name=image5.png)

**Step 5:** Enter a name that describes who or what will use the key, such as the Reporting tool. Use a descriptive name so you can easily identify the key if you need to revoke it later.

![image9](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image9.png?width=670&height=507&name=image9.png)

**Step 6:** Choose the required access level:

- **Read-only:** Select this option if the integration only needs to retrieve data.
- **Read/write:** Select this option if the integration needs to create, update, or delete records.

![image12](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image12.png?width=670&height=500&name=image12.png)

**Step 7:** Under **Expires**, leave **Never** selected if you do not want the key to expire, or select an expiry date if you want the key to stop working automatically after a specific period.

![image14](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image14.png?width=670&height=507&name=image14.png)

**Step 8:** Click **Save** to create the key.

![image6](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image6.png?width=670&height=507&name=image6.png)

**Step 9:** Click **Copy** to copy your new API key and store it securely.

![image13](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image13.png?width=670&height=404&name=image13.png)

Then, click **Done**.

![image2](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image2.png?width=670&height=404&name=image2.png)

Copy the key before you close this window. Enginehire can't show it to you again. If a key is ever lost, revoke it and create a new one.

Your new key now appears under **Keys** with its status and access level. Each entry also shows the start of the key, who created it, when it was created, when it was last used, and when it expires. After you connect an integration, the last used time is a quick way to confirm the integration is using the key.

![image7](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image7.png?width=670&height=334&name=image7.png)

### **How to use your API key to authenticate requests**

Send your key in the **Authorization** header of every Public API request, with the word **Token** and a space before it. Public API keys always start with **ehk\_**.

Authorization: Token \<your-api-key\>

For example, this request returns your agency's candidates:

curl -X GET 'https://apiweb.enginehire.io/public-api/candidates/' \\ -H 'accept: application/json' \\ -H 'Authorization: Token \<your-api-key\>'

A successful request returns status **200**. Results come back in pages, with **count**, **next**, **previous**, and **results** fields in the response, and you can use the **page** and **page\_size** parameters to move through them.

Treat your key like a password. Keep it out of shared documents, chat messages, screenshots, and code repositories, and store it in your integration's secure settings or as an environment variable instead.

**Read-only vs. read/write API keys**

A **read-only** key can fetch data but can't create, change, or delete anything. If a read-only key sends a request that would change data, such as **POST /public-api/candidates/**, Enginehire rejects it with a **403** error and the message *This API key is read-only.*

A **read/write** key can also send requests that create, update, or delete records. Give each integration the lowest access it needs, and create a separate key for each tool so you can revoke one without affecting the others.

### **Revoke a Public API key**

Revoke a Public API key when an integration no longer needs access, someone who had access to the key leaves your team, or you suspect that the key has been shared unintentionally.

**Step 1:** Open the **Public API Keys** tile and locate the API key you want to revoke in the **Keys** section. 

![image4](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image4.png?width=670&height=470&name=image4.png)

**Step 2:** Click the **Revoke** button.

![image10](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image10.png?width=670&height=470&name=image10.png)

**Step 3:** Click **Yes** to confirm.

![image8](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image8.png?width=670&height=219&name=image8.png)

Anything using the key stops working immediately, and revoking can't be undone. The key stays in the list marked **Revoked**, along with the date and time it was revoked.

![image3](https://learn.enginehire.io/hs-fs/hubfs/Knowledge%20Base/Integrations/Create%20and%20Manage%20Enginehire%20Public%20API%20Keys/image3.png?width=670&height=464&name=image3.png)

Requests that use a revoked key, or a key past its expiry, are rejected with a **401** error and the message *Invalid, expired or revoked API key.* To restore access, create a new key and add it to your integration.

### **Switch from a login token to a Public API key**

Some integrations get a token by sending an admin email, password, and Agency Number to **/api-token-auth/**. Enginehire is retiring this login-token access to the Public API. Integrations that still use it will stop connecting once it's turned off, so switch them to a Public API key.

The Authorization header keeps the same format, so the switch is quick:

1. Create a Public API key with the access your integration needs, following the steps above.
2. In your integration, replace the login token with the new key in the Authorization header, and remove the request to **/api-token-auth/**.
3. Send a test request and confirm it returns status **200**.
4. Remove the stored Enginehire email and password from the integration.

Once you've switched, your integration no longer needs an admin's password or a two-factor code to connect.

### **Troubleshoot Public API key errors**

**401 error: Invalid, expired or revoked API key.** Check the key's status under **Keys**. If it was revoked or has passed its expiry, create a new key. If it's still active, make sure the header reads **Authorization: Token** followed by a space and the full key, with nothing missing or added.

**403 error: This API key is read-only.** The request tries to create, change, or delete data with a read-only key. If the integration needs to make changes, create a key with read/write access.

**You can't find Public API Keys.** Make sure you're logged in as an agency admin, then click **More** \> **Integrations** and select **Automation & developer**. If you need admin access, an existing admin can[add you as an administrator](https://learn.enginehire.io/en/knowledge/add-a-new-administrator?hsLang=en).

**You lost your key.** Enginehire can't show a key again after it's created. Revoke the lost key and create a new one.

- [Onboarding](https://learn.enginehire.io/en/knowledge/onboarding?hsLang=en)
- [Application Forms & Profiles](https://learn.enginehire.io/en/knowledge/application-forms-profiles?hsLang=en)
- [Templates & Communication](https://learn.enginehire.io/en/knowledge/templates-communication?hsLang=en#main-content)

    - [Documents](https://learn.enginehire.io/en/knowledge/templates-communication?hsLang=en#documents)
- [Jobs](https://learn.enginehire.io/en/knowledge/jobs?hsLang=en)
- [Payments](https://learn.enginehire.io/en/knowledge/payments?hsLang=en)
- [Integrations](https://learn.enginehire.io/en/knowledge/integrations?hsLang=en)
- [App](https://learn.enginehire.io/en/knowledge/app?hsLang=en)
- [For Candidates & Clients](https://learn.enginehire.io/en/knowledge/for-candidates-clients?hsLang=en)
- [Backup Care](https://learn.enginehire.io/en/knowledge/backup-care?hsLang=en#main-content)

    - [Instant Book](https://learn.enginehire.io/en/knowledge/backup-care?hsLang=en#instant-book)
- [Data Import & Export](https://learn.enginehire.io/en/knowledge/data-import-export?hsLang=en#main-content)

    - [Analytics](https://learn.enginehire.io/en/knowledge/data-import-export?hsLang=en#analytics)
- [Reporting & Logs](https://learn.enginehire.io/en/knowledge/reporting-logs?hsLang=en)
- [Error](https://learn.enginehire.io/en/knowledge/error?hsLang=en#main-content)

    - [Authentication](https://learn.enginehire.io/en/knowledge/error?hsLang=en#authentication)
- [Settings](https://learn.enginehire.io/en/knowledge/settings?hsLang=en)
- [Domain](https://learn.enginehire.io/en/knowledge/domain?hsLang=en)
- [Webinars and Training](https://learn.enginehire.io/en/knowledge/webinars-and-training?hsLang=en)
- [Ways to Grow and Make More Money](https://learn.enginehire.io/en/knowledge/ways-to-grow-and-make-more-money?hsLang=en)
- [Placements](https://learn.enginehire.io/en/knowledge/placements?hsLang=en#main-content)

    - [Job Board](https://learn.enginehire.io/en/knowledge/placements?hsLang=en#job-board)
- [Enginehire Team Internal Videos](https://learn.enginehire.io/en/knowledge/enginehire-team-internal-videos?hsLang=en#main-content)

    - [Settings](https://learn.enginehire.io/en/knowledge/enginehire-team-internal-videos?hsLang=en#settings)
- [AI](https://learn.enginehire.io/en/knowledge/ai?hsLang=en)
- [Staging Database Updates](https://learn.enginehire.io/en/knowledge/staging-database-updates?hsLang=en)

- Home
- Products
- Pricing
- Blog
- Company

[![Chill listening crop-3](https://learn.enginehire.io/hs-fs/hubfs/enginehire%20logo%20thin%20dark%201.0-1.png?width=68&height=24&name=enginehire%20logo%20thin%20dark%201.0-1.png "Chill listening crop-3")](https://enginehire.io)

Enginehire Help Center

<https://www.facebook.com/enginehire> <https://www.instagram.com/enginehire/>

Copyright © 2026, Enginehire Inc.