Skip to Content
Help
API reference

Analyse waiting careers applications

POST
/api/v1/jobs/{id}/careers/analyse-waiting

Starts the analysis of the applications that wait for approval, because the listing's automatic analysis is off or its monthly limit was reached. Each analysis spends credits as a report does and goes through the same billing admission; send maxCredits, at least the price of the batch, as the confirmation. If the price is higher nothing is charged and the answer is price_exceeds_max with the price. Returns how many started and how many still wait. Send an Idempotency-Key so a retry does not run it twice.

Required scope: reports:write.

Errors

  • 400: invalid_content_type, invalid_idempotency_key, invalid_json, max_credits_required, request_body_too_large, unknown_field
  • 401: authentication_required, invalid_api_key
  • 402: insufficient_credits, price_exceeds_max, quota_exceeded
  • 403: api_access_disabled, insufficient_scope, permission_denied
  • 404: job_not_found
  • 409: idempotency_key_reused, idempotency_request_in_progress
  • 422: invalid_parameter
  • 429: rate_limit_exceeded
  • 500: api_error
  • 503: maintenance_mode, service_unavailable

Authorization

ApiKey
headerAuthorizationBearer <probb_live_<id>_<secret>>

Path Parameters

id*string

The job's ID.

Length1 <= length <= 200

Header Parameters

Idempotency-Key?string

Makes retries safe. Repeating a request with the same key and body within 24 hours returns the original response with Idempotent-Replayed: true. The same key with a different body, or from a different API key, returns idempotency_key_reused.

Length1 <= length <= 255

Request Body

application/json
  1. body
applicationIds?array<>

Only these applications. Every waiting application on the job when absent.

Items1 <= items <= 100
maxCredits?number

The most credits you allow the whole batch to cost. If the current price is higher the request fails with price_exceeds_max and nothing is charged. Required when the organisation pays with credits.

Range0 < value <= 1000000

Response Body

Success.

application/json
  1. response
object*string
jobId*string
started*integer

Applications whose analysis started.

Range-9007199254740991 <= value <= 9007199254740991
stillWaiting*integer

Applications that still wait, for example because of credits or the monthly cap.

Range-9007199254740991 <= value <= 9007199254740991
Example Request
# Set PROBB_URL and PROBB_API_KEY. Replace any *_VALUE placeholder and any example ID (such as job_example) with a real one.# Idempotency-Key is optional. Reuse the same key and body when retrying one logical write.curl --fail-with-body -X POST "$PROBB_URL/api/v1/jobs/ID_VALUE/careers/analyse-waiting" \  -H "Authorization: Bearer $PROBB_API_KEY" \  -H "Idempotency-Key: $REQUEST_KEY" \  -H 'Content-Type: application/json' \  --data-binary '{  "maxCredits": 25}'
Example Response
{  "object": "careers_analysis_start",  "jobId": "string",  "started": -9007199254740991,  "stillWaiting": -9007199254740991}