---
title: Create and Use Public API Keys for the Enginehire API
description: Create a Public API key in Enginehire, choose read-only or read/write access, authenticate API requests, and revoke keys you no longer need.
---

[Skip to content](https://learn.enginehire.io/en/knowledge/create-and-use-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 Use Public API Keys for the Enginehire API

## Create read-only or read/write keys for the Enginehire Public API, use them to authenticate requests, and revoke them at any time.

Public API keys let your developers and integrations connect to the Enginehire Public API without using anyone's email and password. You create each key in your Enginehire dashboard, choose whether it can only read data or also make changes, set an optional expiry, and revoke it at any time without changing anyone's login.

This article shows you how to create a key, use it to authenticate API requests, and revoke it when it's no longer needed. If your integration currently signs in with an admin email and password to get a token, follow the steps in **Switch from a login token to a Public API key** below.

**Prefer video?** [Watch the Public API keys walkthrough](https://www.loom.com/share/32c294a9c8b0448b9de95d9f194465cf) (under 2 minutes). It shows how to create a read-only key, use it in a request, and revoke it.

### Before you create a Public API key

You need to be logged in to Enginehire as an **agency admin**. Have a secure place ready to store the key, such as a password manager, because Enginehire shows each key only once, right after you create it.

Public API keys work only with the Enginehire Public API at **https://apiweb.enginehire.io/public-api/**. They can't be used to log in to your dashboard or to call the dashboard API.

### How to create a Public API key

1. In your Enginehire dashboard, click **More** in the top navigation bar, then select **Integrations**.
2. In the category list on the left, select **Automation & developer**, then open **Public API Keys**.
3. On the **Setup** tab, click **Create API key** at the bottom of the panel.
4. In **Name**, describe who or what will use the key, such as *Reporting tool*. A clear name makes it easy to pick the right key if you need to revoke it later.
5. In **Access**, choose **Read only** if the integration only needs to fetch data. Choose the read/write option only if it needs to create, update, or delete records.
6. In **Expires**, leave **Never** selected, or choose an expiry if you want the key to stop working on its own. Then click **Save**.![](https://learn.enginehire.io/hs-fs/hubfs/undefined-Nov-05-2026-02-02-53-9931-PM.png?width=509&height=383&name=undefined-Nov-05-2026-02-02-53-9931-PM.png)
7. Click **Copy** to copy your new key, store it somewhere secure, and then click **Done**.![](https://learn.enginehire.io/hs-fs/hubfs/undefined-Nov-05-2026-02-02-53-7628-PM.png?width=509&height=278&name=undefined-Nov-05-2026-02-02-53-7628-PM.png)

**Note:** 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.

![](https://learn.enginehire.io/hs-fs/hubfs/undefined-Nov-05-2026-02-02-54-3521-PM.png?width=635&height=426&name=undefined-Nov-05-2026-02-02-54-3521-PM.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.

### How to revoke a Public API key

Revoke a key when an integration no longer needs it, when someone who had access to it leaves your team, or if you think it was shared by mistake.

1. Click **More** \> **Integrations**, select **Automation & developer**, and open **Public API Keys**.
2. Find the key under **Keys** and click **Revoke**.
3. Click **Yes** to confirm.

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.

![](https://learn.enginehire.io/hs-fs/hubfs/undefined-Nov-05-2026-02-02-54-6205-PM.png?width=636&height=435&name=undefined-Nov-05-2026-02-02-54-6205-PM.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.

### Related articles

- [Add Zapier Integration](https://learn.enginehire.io/en/knowledge/add-zapier-integration?hsLang=en)
- [Add a New Administrator](https://learn.enginehire.io/en/knowledge/add-a-new-administrator?hsLang=en)

- [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)
- [Other](https://learn.enginehire.io/en/knowledge/other?hsLang=en)
- [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.