Docs
Esc

Create a new webhook

Add a webhook in Workspace, choose its events and send a test call to your URL.

Create a webhook#

You need the Manage API keys and integrations permission. If you don't see Integrations in Workspace, ask an admin in your team to add it to your access level under Account > Team.

  1. Sign in to HirePass Workspace.
  2. Go to Integrations > Build your own (open it).
  3. Under Webhooks, select Add new webhook.
  4. Fill in the form:
    • Webhook label: a name that says what the webhook is for, such as HRIS status updates.
    • Webhook URL: the address on your server that receives the calls. It must use https:// and be reachable from the internet; private and internal addresses are refused.
    • Authentication token (optional): a secret you choose. HirePass sends it in the Authorization header as Bearer YOUR_WEBHOOK_TOKEN, so your server can check each call comes from HirePass.
    • Events that send an update: the events this webhook receives. See Events.
  5. Select Create webhook.

The webhook shows on its card under Webhooks, with its endpoint, events and token.

Test the connection#

Select Test connection on the webhook's card. HirePass sends a sample REQUESTED event to your URL:

{
  "event": "REQUESTED",
  "data": {
    "externalId": "SC0000000000000",
    "status": "requested",
    "personalData": {
      "completeName": "John Doe",
      "email": "[email protected]"
    }
  }
}
Webhook connection testTest connectionSwitched offFix the URL and test againReaching your endpointConnectingYour server answered 2xxPassedNo 2xx answer from your URLErrorNo more calls are sentRevoked

The card shows Passed when your server answers with a 2xx status. Any other status or an unreachable URL shows Error. Check the URL and that your server accepts POST requests with a JSON body, then test again.

Turn a webhook off#

Switch the webhook to Revoked on its card to stop all calls to it. Switch it back to Active to start again.

Keep it secure#

  • Use a token and check it on every call.
  • Keep the token secret: don't commit it to a code repository.
  • Change the token regularly: create a new webhook with a new token, move your server to it, then revoke the old one.