Docs

API and webhooks

What an admin manages in Settings → API: who may create API keys, every key in the workspace, webhooks and OAuth applications.

Overview

The Attia API lets your own programs read and change workspace data, and webhooks tell another system when something changes. A recruiting team uses them to send new applications to an HR system, post a message when a candidate moves to an offer, or keep a reporting sheet in step with its jobs.

This page covers what a workspace admin manages in Settings → API: who may create API keys, every key in the workspace, webhooks and OAuth applications. To build against the API, start with Getting started.

API

To book an interview from your own system and receive changes by webhook, see Interviews.

The API is a REST API at https://attia.app/api/v1. It answers in JSON, and each call acts as the member whose key or token sends it, so it never reads more than that member can see. Getting started walks through a first request, and the rest of the API section has a reference page for each operation.

The API and webhooks come with the Business and Enterprise plans. On Business and Enterprise, only workspace admins can open Settings → API. On a plan below Business, the page offers an upgrade instead.

API keys

A personal API key lets a member's own scripts call the API, and the key belongs to the member who created it. A member creates and revokes their own keys under Settings → Security & access → Personal API keys. Authentication explains the key format, the permissions a key can hold and the team access it can be limited to.

Who can create keys

Under API keys in Settings → API, API key creation decides who may create personal keys:

  • All members lets members create their own keys. This is the default.
  • Only admins keeps key creation to workspace admins.

The same setting appears in Settings → Security, and a change in either place shows in both.

Candidate data in the API

Candidate data in the API decides whether the API can reach candidate data at all. It is off until an admin turns it on. While it is on, an admin's key can hold Read candidate data and Write candidate data, and an app can read candidate data once an admin also allows that app, as OAuth describes. Turning it off removes those two permissions from every key and stops every app reading candidate data. Turning it on again does not give them back.

On Enterprise, only workspace owners can change API key creation and Candidate data in the API. Other admins see both settings but cannot change them.

See and revoke every key

The Issued keys row shows how many working keys the workspace has. While there is at least one, the row opens API keys, a list of every key in the workspace, whoever created it, including revoked ones. Each row shows the key's name, who created it, its permissions, when it was created and last used, and its status.

  • Type in Filter by key or member… to find a key by its name or by its member.
  • Choose All API keys, Active or Revoked to narrow the list by status.
  • Export CSV downloads the rows the list shows, in the order it shows them.
  • Revoke API key in a key's menu revokes it at once. To revoke several, select them first and confirm. Anything that uses a revoked key stops working straight away.

After a downgrade below Business, the keys stay and the API refuses them. An admin can still open API keys and revoke them.

Webhooks

A webhook sends a POST to a URL you choose when a job or an application changes, or when a candidate is erased from the workspace. The request carries the record and, when a record is updated, the values it had before. Only workspace admins can create and manage webhooks, and a webhook acts as the admin who set it up.

To create one, choose New webhook under Webhooks in Settings → API. Give it a Label and a URL that starts with https://, choose its Data change events from Applications, Candidates and Jobs, and under Team selection keep All public teams or pick one team. You cannot change the team after you create the webhook. Application events go out only while Candidate data in the API is on. Set up a webhook goes through each field and the events each box follows.

A workspace can have up to 50 webhooks, and one team up to 30.

A webhook's row opens its page, which shows the Delivery status and the Delivery failures. Choose Redeliver on a failure to send it again. You can copy the signing secret at any time, and Rotate secret makes a new one while the old secret keeps working for 24 hours. The menu on the page and on the row has Edit webhook, Disable webhook or Enable webhook, and Delete webhook.

A webhook turns off on its own when its admin leaves the workspace or stops being an admin, and after 24 hours of failed deliveries. Its row says why. After a downgrade below Business, an enabled webhook shows Paused: plan and Attia sends nothing until the plan is Business or Enterprise again.

A tool such as Zapier can create and remove webhooks through the API with an admin's key. Those webhooks show in the same list. See Webhooks.

OAuth applications

An OAuth application is another app that calls the API for a member who approves it, without a personal key. Admins register their own apps under OAuth applications in Settings → API with New OAuth application. Every admin can open, edit and delete every app in the workspace. Authentication describes each field of the form, and OAuth shows how an app gets its tokens.

After a downgrade below Business, an admin can still open and delete an app, but cannot create one.

To control which apps members may install, an admin turns on Review third-party applications in Settings → Security. Admins see every app members have authorized, approve or deny requests, and revoke an app for everyone in Settings → Authorized applications. On Enterprise, only workspace owners can turn on the review and approve or deny requests. Security & access covers the review from a member's side and from an admin's.