Introducing one-link screening. Try it free

springhire API reference

The springhire API lets your own systems invite candidates to a springhire assessment, read their results, and hear about them the moment they finish. It is organised around REST: predictable resource URLs, JSON bodies and responses, standard HTTP methods and status codes.

Every request goes over HTTPS to the base URL below. Objects carry prefixed ids (job_, app_, evt_, we_) and times are Unix timestamps in seconds.

Base URL
https://api.springhire.io/v1

Authentication

Requests are authenticated with an API key, sent as a Bearer token. Owners and admins create keys in springhire under Developers, API keys; a key is shown once, when it is made.

A secret key (sk_) can read and make changes: invite candidates and manage webhook endpoints. A restricted key (rk_) can only read. Use the narrowest key that works, keep secret keys on your server, and never put one in a browser, a mobile app or a code repository.

Basic auth with the key as the username also works (curl -u sk_...:). A request without a valid key gets 401; a restricted key on a write gets 403.

Authenticated request
curl https://api.springhire.io/v1/jobs \
  -H "Authorization: Bearer sk_your_secret_key"

Errors

springhire uses conventional HTTP status codes: 2xx succeeded, 4xx means the request needs fixing, 5xx means something went wrong on our side. Every error has the same JSON shape, and every response carries a Request-Id header to quote when you contact support.

message is written for a person to read; branch on type and code. param names the parameter at fault, when there is one.

TypeWhen
invalid_request_errorMissing or invalid parameters (400), or no such object (404).
authentication_errorNo API key, or an invalid or revoked one (401).
permission_errorA restricted key tried to make a change (403).
idempotency_errorAn Idempotency-Key reused with other parameters (400) or still in progress (409).
rate_limit_errorToo many requests (429). Wait for Retry-After.
api_errorSomething failed on springhire's side (500). Safe to retry.
Error response
{
  "error": {
    "type": "invalid_request_error",
    "code": "resource_missing",
    "message": "No such job: 'job_000000000000000000000000000000ff'",
    "param": "job"
  }
}

Pagination

List endpoints return a list object, newest first, with has_more set when another page follows. Pages are cursor-based: pass the last id you received as starting_after for the next page, or the first id as ending_before for the previous one.

limit sets the page size, from 1 to 100 (default 10). A cursor must be an id from the same list.

List object
{
  "object": "list",
  "url": "/v1/jobs",
  "has_more": true,
  "data": [
    "…"
  ]
}

Idempotent requests

Send an Idempotency-Key header (any unique string up to 255 characters, a UUID say) with a POST to retry it safely: if the first attempt went through, a retry with the same key and parameters returns the same response, marked Idempotent-Replayed: true, instead of acting twice.

Keys are kept for 24 hours. Reusing one with different parameters is refused, and a second request with a key whose first request is still running gets 409. A request that failed does not keep its key, so it can be retried.

Retry-safe invite
curl -X POST https://api.springhire.io/v1/applications \
  -H "Authorization: Bearer sk_your_secret_key" \
  -H "Idempotency-Key: 5f3b2c1e-invite-riya" \
  -H "Content-Type: application/json" \
  -d '{"job": "job_…", "email": "riya@example.com", "first_name": "Riya"}'

Rate limits

Each key can make 100 requests a minute. Over that, requests get 429 with a Retry-After header saying how many seconds to wait. Requests with a missing or wrong key are limited to 30 a minute per address.

For bulk work, spread requests out, and use webhooks rather than polling for results.

Jobs

A job is a hiring pipeline built in springhire: the assessment tools a candidate takes and the settings around them. Jobs are created and edited in springhire; the API reads them, and invites candidates to published ones.

The job object

  • idstring

    Unique id, job_ then 32 characters.

  • objectstring

    Always job.

  • namestring

    The job's name inside springhire.

  • titlestring

    The title candidates see.

  • statusenum

    draft, published or closed. Only published jobs take invites.

  • languagestring

    The language candidates take it in, e.g. en.

  • toolsarray of strings

    Its assessment tools: qualifying_questions, skills_tests, video_interview, resume_scoring, psychometric_test, culture_fit_test.

  • apply_urlstring

    The job's public link, where anyone can apply.

  • createdtimestamp

    When it was created.

  • updatedtimestamp

    When it last changed.

The job object
{
  "id": "job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8",
  "object": "job",
  "name": "Customer Support Associate (night shift)",
  "title": "Customer Support Associate",
  "status": "published",
  "language": "en",
  "tools": [
    "qualifying_questions",
    "skills_tests",
    "video_interview"
  ],
  "apply_url": "https://app.springhire.io/apply/9b1c2f6e-4a8d-4e0f-b3c7-a5d2e1f0a9b8",
  "created": 1792540800,
  "updated": 1792627200
}

List jobs

GET/v1/jobs· any key

Your jobs, newest first. The sample job is never listed.

Parameters

  • statusenum

    Only jobs with this status: draft, published or closed.

  • limitinteger

    Page size, 1 to 100. Default 10.

  • starting_afterstring

    A job id: the page after it.

  • ending_beforestring

    A job id: the page before it.

Returns

A list object of jobs.

GET/v1/jobs
curl "https://api.springhire.io/v1/jobs?status=published&limit=3" \
  -H "Authorization: Bearer sk_your_secret_key"
Response
{
  "object": "list",
  "url": "/v1/jobs",
  "has_more": false,
  "data": [
    {
      "id": "job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8",
      "object": "job",
      "name": "Customer Support Associate (night shift)",
      "title": "Customer Support Associate",
      "status": "published",
      "language": "en",
      "tools": [
        "qualifying_questions",
        "skills_tests",
        "video_interview"
      ],
      "apply_url": "https://app.springhire.io/apply/9b1c2f6e-4a8d-4e0f-b3c7-a5d2e1f0a9b8",
      "created": 1792540800,
      "updated": 1792627200
    }
  ]
}

Retrieve a job

GET/v1/jobs/:id· any key

One job by its id.

Returns

The job, or a 404 if there is no such job.

GET/v1/jobs/:id
curl "https://api.springhire.io/v1/jobs/job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8" \
  -H "Authorization: Bearer sk_your_secret_key"
Response
{
  "id": "job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8",
  "object": "job",
  "name": "Customer Support Associate (night shift)",
  "title": "Customer Support Associate",
  "status": "published",
  "language": "en",
  "tools": [
    "qualifying_questions",
    "skills_tests",
    "video_interview"
  ],
  "apply_url": "https://app.springhire.io/apply/9b1c2f6e-4a8d-4e0f-b3c7-a5d2e1f0a9b8",
  "created": 1792540800,
  "updated": 1792627200
}

Applications

An application is one candidate on one job: their assessment link, where they are, and their scores once they finish. Creating one invites the candidate, exactly as an invite from springhire does: the same email, the same credit check, and one application per person per job.

Credits are charged when a candidate completes, never at invite. A candidate auto-rejected by a qualifying question costs nothing.

The application object

  • idstring

    Unique id, app_ then 32 characters.

  • objectstring

    Always application.

  • jobstring

    The job's id.

  • candidateobject

    first_name, last_name and email.

  • statusenum

    invited, in_progress, completed, advanced, disqualified (failed a qualifying question), rejected or expired.

  • hiring_stagestring

    Where your team placed them, e.g. not_evaluated.

  • scoreintegerNullable

    Overall score, 0 to 100: the weighted average of the tools that count. Null until there is one.

  • tool_scoresarray

    Each tool's score (0 to 100) and weight in the overall score. A weight of 0 means the tool does not count.

  • assessment_urlstring

    The candidate's personal assessment link. Only returned to secret keys (sk_), never to a restricted key or in events. Treat it like a password: whoever has it can take the assessment as them.

  • report_urlstring

    The report in springhire, for your team (sign-in needed).

  • createdtimestamp

    When they were invited.

  • started_attimestampNullable

    When they started.

  • completed_attimestampNullable

    When they finished.

  • expires_attimestamp

    When the assessment link stops working.

The application object
{
  "id": "app_3f2a1b4c5d6e4f708a9b0c1d2e3f4a5b",
  "object": "application",
  "job": "job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8",
  "candidate": {
    "first_name": "Riya",
    "last_name": "Shah",
    "email": "riya@example.com"
  },
  "status": "completed",
  "hiring_stage": "not_evaluated",
  "score": 82,
  "tool_scores": [
    {
      "tool": "qualifying_questions",
      "score": 100,
      "weight": 0
    },
    {
      "tool": "skills_tests",
      "score": 78,
      "weight": 50
    },
    {
      "tool": "video_interview",
      "score": 86,
      "weight": 50
    }
  ],
  "assessment_url": "https://app.springhire.io/apply/4c1d…",
  "report_url": "https://app.springhire.io/reports/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b",
  "created": 1792627200,
  "started_at": 1792630800,
  "completed_at": 1792632600,
  "expires_at": 1793836800
}

Invite a candidate

POST/v1/applications· secret key (sk_)

Invites a person to a published job: springhire emails them their personal assessment link. If they are already on the job, their existing application is returned as it is and no second email is sent.

Send an Idempotency-Key to retry safely.

Parameters

  • jobstringRequired

    The id of a published job.

  • emailstringRequired

    The candidate's email address.

  • first_namestringRequired

    Up to 150 characters.

  • last_namestring

    Up to 150 characters.

Returns

The application. 404 if the job does not exist or is not published; 400 with code insufficient_credits if the account cannot pay for one more candidate.

POST/v1/applications
curl -X POST "https://api.springhire.io/v1/applications" \
  -H "Authorization: Bearer sk_your_secret_key" \
  -H "Idempotency-Key: 5f3b2c1e-invite-riya" \
  -H "Content-Type: application/json" \
  -d '{
    "job": "job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8",
    "email": "riya@example.com",
    "first_name": "Riya",
    "last_name": "Shah"
  }'
Response
{
  "id": "app_3f2a1b4c5d6e4f708a9b0c1d2e3f4a5b",
  "object": "application",
  "job": "job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8",
  "candidate": {
    "first_name": "Riya",
    "last_name": "Shah",
    "email": "riya@example.com"
  },
  "status": "invited",
  "hiring_stage": "not_evaluated",
  "score": null,
  "tool_scores": [],
  "assessment_url": "https://app.springhire.io/apply/4c1d…",
  "report_url": "https://app.springhire.io/reports/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b",
  "created": 1792627200,
  "started_at": null,
  "completed_at": null,
  "expires_at": 1793836800
}

List applications

GET/v1/applications· any key

Applications on your jobs, newest invite first. Archived applications and the sample job are left out. To collect new results without webhooks, ask for status=completed with completed_after set to your last check.

Parameters

  • jobstring

    Only this job's applications.

  • statusenum

    Only this status.

  • created_aftertimestamp

    Invited at or after this time.

  • created_beforetimestamp

    Invited at or before this time.

  • completed_aftertimestamp

    Finished at or after this time.

  • completed_beforetimestamp

    Finished at or before this time.

  • limitinteger

    Page size, 1 to 100. Default 10.

  • starting_afterstring

    An application id: the page after it.

  • ending_beforestring

    An application id: the page before it.

Returns

A list object of applications.

GET/v1/applications
curl "https://api.springhire.io/v1/applications?job=job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8&status=completed&completed_after=1792627200" \
  -H "Authorization: Bearer sk_your_secret_key"
Response
{
  "object": "list",
  "url": "/v1/applications",
  "has_more": false,
  "data": [
    {
      "id": "app_3f2a1b4c5d6e4f708a9b0c1d2e3f4a5b",
      "object": "application",
      "job": "job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8",
      "candidate": {
        "first_name": "Riya",
        "last_name": "Shah",
        "email": "riya@example.com"
      },
      "status": "completed",
      "hiring_stage": "not_evaluated",
      "score": 82,
      "tool_scores": [
        {
          "tool": "qualifying_questions",
          "score": 100,
          "weight": 0
        },
        {
          "tool": "skills_tests",
          "score": 78,
          "weight": 50
        },
        {
          "tool": "video_interview",
          "score": 86,
          "weight": 50
        }
      ],
      "assessment_url": "https://app.springhire.io/apply/4c1d…",
      "report_url": "https://app.springhire.io/reports/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b",
      "created": 1792627200,
      "started_at": 1792630800,
      "completed_at": 1792632600,
      "expires_at": 1793836800
    }
  ]
}

Retrieve an application

GET/v1/applications/:id· any key

One application by its id, with its scores as they are now.

Returns

The application, or a 404 if there is no such application.

GET/v1/applications/:id
curl "https://api.springhire.io/v1/applications/app_3f2a1b4c5d6e4f708a9b0c1d2e3f4a5b" \
  -H "Authorization: Bearer sk_your_secret_key"
Response
{
  "id": "app_3f2a1b4c5d6e4f708a9b0c1d2e3f4a5b",
  "object": "application",
  "job": "job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8",
  "candidate": {
    "first_name": "Riya",
    "last_name": "Shah",
    "email": "riya@example.com"
  },
  "status": "completed",
  "hiring_stage": "not_evaluated",
  "score": 82,
  "tool_scores": [
    {
      "tool": "qualifying_questions",
      "score": 100,
      "weight": 0
    },
    {
      "tool": "skills_tests",
      "score": 78,
      "weight": 50
    },
    {
      "tool": "video_interview",
      "score": 86,
      "weight": 50
    }
  ],
  "assessment_url": "https://app.springhire.io/apply/4c1d…",
  "report_url": "https://app.springhire.io/reports/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b",
  "created": 1792627200,
  "started_at": 1792630800,
  "completed_at": 1792632600,
  "expires_at": 1793836800
}

Events

An event records something that happened in your account, with the object as it was at that moment in data.object. The same event is what webhooks deliver. Events are kept for 30 days, and only for accounts that use the API (a key or a webhook endpoint).

The event object

  • idstring

    Unique id, evt_ then 32 characters. Use it to ignore a delivery you have already handled.

  • objectstring

    Always event.

  • typestring

    What happened, e.g. application.completed. See Event types.

  • createdtimestamp

    When it happened.

  • data.objectobject

    The object the event is about, as it was then.

The event object
{
  "id": "evt_7c4e9a1b2d3f4c5e8a6b7c8d9e0f1a2b",
  "object": "event",
  "type": "application.completed",
  "created": 1792632601,
  "data": {
    "object": {
      "id": "app_3f2a1b4c5d6e4f708a9b0c1d2e3f4a5b",
      "object": "application",
      "job": "job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8",
      "candidate": {
        "first_name": "Riya",
        "last_name": "Shah",
        "email": "riya@example.com"
      },
      "status": "completed",
      "hiring_stage": "not_evaluated",
      "score": 82,
      "tool_scores": [
        {
          "tool": "qualifying_questions",
          "score": 100,
          "weight": 0
        },
        {
          "tool": "skills_tests",
          "score": 78,
          "weight": 50
        },
        {
          "tool": "video_interview",
          "score": 86,
          "weight": 50
        }
      ],
      "report_url": "https://app.springhire.io/reports/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b",
      "created": 1792627200,
      "started_at": 1792630800,
      "completed_at": 1792632600,
      "expires_at": 1793836800
    }
  }
}

List events

GET/v1/events· any key

Events from the last 30 days, newest first.

Parameters

  • typestring

    Only this event type.

  • limitinteger

    Page size, 1 to 100. Default 10.

  • starting_afterstring

    An event id: the page after it.

  • ending_beforestring

    An event id: the page before it.

Returns

A list object of events.

GET/v1/events
curl "https://api.springhire.io/v1/events?type=application.completed&limit=5" \
  -H "Authorization: Bearer sk_your_secret_key"
Response
{
  "object": "list",
  "url": "/v1/events",
  "has_more": false,
  "data": [
    {
      "id": "evt_7c4e9a1b2d3f4c5e8a6b7c8d9e0f1a2b",
      "object": "event",
      "type": "application.completed",
      "created": 1792632601,
      "data": {
        "object": {
          "id": "app_3f2a1b4c5d6e4f708a9b0c1d2e3f4a5b",
          "object": "application",
          "job": "job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8",
          "candidate": {
            "first_name": "Riya",
            "last_name": "Shah",
            "email": "riya@example.com"
          },
          "status": "completed",
          "hiring_stage": "not_evaluated",
          "score": 82,
          "tool_scores": [
            {
              "tool": "qualifying_questions",
              "score": 100,
              "weight": 0
            },
            {
              "tool": "skills_tests",
              "score": 78,
              "weight": 50
            },
            {
              "tool": "video_interview",
              "score": 86,
              "weight": 50
            }
          ],
          "report_url": "https://app.springhire.io/reports/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b",
          "created": 1792627200,
          "started_at": 1792630800,
          "completed_at": 1792632600,
          "expires_at": 1793836800
        }
      }
    }
  ]
}

Retrieve an event

GET/v1/events/:id· any key

One event by its id, from the last 30 days.

Returns

The event, or a 404.

GET/v1/events/:id
curl "https://api.springhire.io/v1/events/evt_7c4e9a1b2d3f4c5e8a6b7c8d9e0f1a2b" \
  -H "Authorization: Bearer sk_your_secret_key"
Response
{
  "id": "evt_7c4e9a1b2d3f4c5e8a6b7c8d9e0f1a2b",
  "object": "event",
  "type": "application.completed",
  "created": 1792632601,
  "data": {
    "object": {
      "id": "app_3f2a1b4c5d6e4f708a9b0c1d2e3f4a5b",
      "object": "application",
      "job": "job_9b1c2f6e4a8d4e0fb3c7a5d2e1f0a9b8",
      "candidate": {
        "first_name": "Riya",
        "last_name": "Shah",
        "email": "riya@example.com"
      },
      "status": "completed",
      "hiring_stage": "not_evaluated",
      "score": 82,
      "tool_scores": [
        {
          "tool": "qualifying_questions",
          "score": 100,
          "weight": 0
        },
        {
          "tool": "skills_tests",
          "score": 78,
          "weight": 50
        },
        {
          "tool": "video_interview",
          "score": 86,
          "weight": 50
        }
      ],
      "report_url": "https://app.springhire.io/reports/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b",
      "created": 1792627200,
      "started_at": 1792630800,
      "completed_at": 1792632600,
      "expires_at": 1793836800
    }
  }
}

Webhook endpoints

A webhook endpoint is a URL of yours that springhire posts events to. An account can have up to 16. They can also be managed in springhire under Developers, Webhooks, where you can reveal or roll the signing secret, see each delivery and send a test event.

The webhook endpoint object

  • idstring

    Unique id, we_ then 32 characters.

  • objectstring

    Always webhook_endpoint.

  • urlstring

    Where events are posted: https on a public host name (not an IP address).

  • descriptionstringNullable

    What it is for.

  • enabled_eventsarray of strings

    The event types it gets, or ["*"].

  • statusenum

    enabled or disabled. springhire turns an endpoint off after 100 failed attempts in a row, or when every delivery fails for 3 days.

  • secretstring

    The signing secret, whsec_…. Only in the response that creates the endpoint.

  • createdtimestamp

    When it was added.

The webhook endpoint object
{
  "id": "we_1a2b3c4d5e6f47a8b9c0d1e2f3a4b5c6",
  "object": "webhook_endpoint",
  "url": "https://example.com/springhire/webhooks",
  "description": "Scores into our HR system",
  "enabled_events": [
    "application.completed",
    "application.report_ready"
  ],
  "status": "enabled",
  "created": 1792627200,
  "secret": "whsec_…"
}

Create a webhook endpoint

POST/v1/webhook_endpoints· secret key (sk_)

Adds an endpoint. The response is the only time the signing secret is returned: store it to verify signatures.

Parameters

  • urlstringRequired

    An https URL on a public host name, not an IP address. Redirects are not followed.

  • enabled_eventsarray of stringsRequired

    Event types to send, or ["*"] for all, including types added later.

  • descriptionstring

    Up to 200 characters.

Returns

The endpoint, with secret.

POST/v1/webhook_endpoints
curl -X POST "https://api.springhire.io/v1/webhook_endpoints" \
  -H "Authorization: Bearer sk_your_secret_key" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/springhire/webhooks",
    "enabled_events": [
      "application.completed",
      "application.report_ready"
    ],
    "description": "Scores into our HR system"
  }'
Response
{
  "id": "we_1a2b3c4d5e6f47a8b9c0d1e2f3a4b5c6",
  "object": "webhook_endpoint",
  "url": "https://example.com/springhire/webhooks",
  "description": "Scores into our HR system",
  "enabled_events": [
    "application.completed",
    "application.report_ready"
  ],
  "status": "enabled",
  "created": 1792627200,
  "secret": "whsec_8f2c…"
}

List webhook endpoints

GET/v1/webhook_endpoints· any key

Your endpoints, newest first.

Parameters

  • limitinteger

    Page size, 1 to 100. Default 10.

  • starting_afterstring

    An endpoint id: the page after it.

  • ending_beforestring

    An endpoint id: the page before it.

Returns

A list object of endpoints, without secrets.

GET/v1/webhook_endpoints
curl "https://api.springhire.io/v1/webhook_endpoints" \
  -H "Authorization: Bearer sk_your_secret_key"
Response
{
  "object": "list",
  "url": "/v1/webhook_endpoints",
  "has_more": false,
  "data": [
    {
      "id": "we_1a2b3c4d5e6f47a8b9c0d1e2f3a4b5c6",
      "object": "webhook_endpoint",
      "url": "https://example.com/springhire/webhooks",
      "description": "Scores into our HR system",
      "enabled_events": [
        "application.completed",
        "application.report_ready"
      ],
      "status": "enabled",
      "created": 1792627200
    }
  ]
}

Retrieve a webhook endpoint

GET/v1/webhook_endpoints/:id· any key

One endpoint by its id.

Returns

The endpoint, without its secret.

GET/v1/webhook_endpoints/:id
curl "https://api.springhire.io/v1/webhook_endpoints/we_1a2b3c4d5e6f47a8b9c0d1e2f3a4b5c6" \
  -H "Authorization: Bearer sk_your_secret_key"
Response
{
  "id": "we_1a2b3c4d5e6f47a8b9c0d1e2f3a4b5c6",
  "object": "webhook_endpoint",
  "url": "https://example.com/springhire/webhooks",
  "description": "Scores into our HR system",
  "enabled_events": [
    "application.completed",
    "application.report_ready"
  ],
  "status": "enabled",
  "created": 1792627200
}

Update a webhook endpoint

POST/v1/webhook_endpoints/:id· secret key (sk_)

Changes the fields you send and leaves the rest. Turning an endpoint back on clears the reason springhire turned it off.

Parameters

  • urlstring

    A new https URL.

  • enabled_eventsarray of strings

    Event types to send, or ["*"] for all, including types added later.

  • descriptionstring

    Up to 200 characters.

  • disabledboolean

    true turns it off, false back on.

Returns

The endpoint.

POST/v1/webhook_endpoints/:id
curl -X POST "https://api.springhire.io/v1/webhook_endpoints/we_1a2b3c4d5e6f47a8b9c0d1e2f3a4b5c6" \
  -H "Authorization: Bearer sk_your_secret_key" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled_events": [
      "*"
    ]
  }'
Response
{
  "id": "we_1a2b3c4d5e6f47a8b9c0d1e2f3a4b5c6",
  "object": "webhook_endpoint",
  "url": "https://example.com/springhire/webhooks",
  "description": "Scores into our HR system",
  "enabled_events": [
    "*"
  ],
  "status": "enabled",
  "created": 1792627200
}

Delete a webhook endpoint

DELETE/v1/webhook_endpoints/:id· secret key (sk_)

Stops all deliveries to it at once and deletes its delivery history.

Returns

An object with deleted: true.

DELETE/v1/webhook_endpoints/:id
curl -X DELETE "https://api.springhire.io/v1/webhook_endpoints/we_1a2b3c4d5e6f47a8b9c0d1e2f3a4b5c6" \
  -H "Authorization: Bearer sk_your_secret_key"
Response
{
  "id": "we_1a2b3c4d5e6f47a8b9c0d1e2f3a4b5c6",
  "object": "webhook_endpoint",
  "deleted": true
}

Event types

Each event's data.object is the application as it was when the event happened. New types may be added; endpoints set to ["*"] get them automatically, so ignore types you do not handle.

TypeSent when
application.completedA candidate finishes the assessment. score is set from what can be scored at once.
application.report_readyAI scoring of video answers has finished: score and tool_scores are final.
application.disqualifiedA candidate fails a qualifying question and is auto-rejected (no credits used).

Verifying signatures

Every delivery is a POST with the event as its JSON body and a Springhire-Signature header: t= the Unix time it was signed, v1= an HMAC-SHA256, in hex, of the timestamp, a dot and the raw body, keyed with the endpoint's signing secret.

Recompute it from the raw body (before any JSON parsing), compare in constant time, and refuse timestamps more than 5 minutes old so a captured request cannot be replayed.

Node.js
import crypto from "node:crypto"

export function verify(rawBody, header, secret) {
  const parts = Object.fromEntries(
    header.split(",").map((p) => p.split("=", 2))
  )
  const t = Number(parts.t)
  if (!parts.v1 || Math.abs(Date.now() / 1000 - t) > 300) return false
  const expected = crypto
    .createHmac("sha256", secret)
    .update(`${t}.${rawBody}`)
    .digest("hex")
  const a = Buffer.from(expected)
  const b = Buffer.from(parts.v1)
  return a.length === b.length && crypto.timingSafeEqual(a, b)
}

Delivery and retries

Answer with any 2xx within 10 seconds, then do the work. Anything else, a timeout or a redirect counts as a failure, and springhire tries again after 1 minute, 5 minutes, 30 minutes, 2, 6, 12 and 24 hours. After 100 failed attempts in a row, or when every delivery fails for 3 days, springhire turns the endpoint off and says why under Developers.

Deliveries are at least once and not always in order: the same event can arrive twice, so keep the ids you have handled. To catch up after downtime, list events or applications with the API.