Appearance
How the API behaves
What every request and response looks like, and what to do when something fails.
Base URL
https://api.hirebase.nlNo slash at the end. Paths below are added to that host, for example https://api.hirebase.nl/api/webhook/community-member.
To see the result, open app.hirebase.nl.
Request format
- Method and path as documented for that call
Content-Type: application/jsonwhen you send a bodyX-API-Keyon every request (Authentication)
A successful response
json
{
"message": "Accepted",
"body": {
"data": {
"applicationUuid": "550e8400-e29b-41d4-a716-446655440000"
}
}
}messageis a short summary, such as"Accepted"body.datais the useful part: the id of the record, and any fields that call returns
The fields for each call are on the application and community member pages, and in the API reference.
Why you get 202 instead of 200
Creating an application or a community member returns 202 Accepted, not 200 or 201, plus an id (applicationUuid or memberUuid).
202 means the request was valid and Hirebase is creating the record. It shows up in Hirebase within seconds.
What to do with the id:
- Store it in your system, so you can match this submission later
- Do not poll for a status. There is no status URL
- Look in Hirebase. That is where recruiters see the record
Checks that can fail before Hirebase accepts the request come back immediately, and nothing is created:
- 400 — invalid body, unknown vacancy, or screening answers that do not match the vacancy
- 409 — this person is already a community member (same phone or email)
Only a request that Hirebase accepted returns 202.
When something goes wrong
json
{
"message": "Bad Request",
"body": {
"data": {
"error": "candidateName and candidatePhone are required"
}
}
}Use the HTTP status to decide what your integration does. The error text explains the problem for a person reading the log. Do not branch your code on the exact wording.
| Status | Meaning | What your integration should do |
|---|---|---|
| 400 | The JSON is invalid, a required field is missing, or the data does not match the vacancy | Fix the data. Do not retry the same body |
| 401 | The API key is missing or wrong | Check the X-API-Key header. Email support@hirebase.nl if the key should work |
| 403 | The key is valid but not allowed to do this | Email support@hirebase.nl and ask for the right access |
| 404 | The vacancy was not found for your company | Check the vacancy id. See Finding the vacancy |
| 409 | This person is already in your community | Treat it as done. Nothing was changed. Do not retry |
| 500 | Something failed on our side | Retry later. Email support@hirebase.nl if it keeps happening |
Identifiers
| Identifier | What it is |
|---|---|
applicationUuid | Stable id of an application. You receive it on create |
memberUuid | Stable id of a community member. You receive it on create |
vacancyUuid | Stable id of a vacancy. Send this when you create an application |
vacancyDisplayId | Short id shown in the Hirebase vacancy list, for example 0042 |
Prefer vacancyUuid in automations. It stays the same when someone renames the vacancy.
Related
- Applications — create an application
- Community members — add a member
- Quickstart — a first request