API documentationAPI reference

Errors

When a request fails, read the error code before deciding what to do next. Recruiting errors look like this:

{
  "error": {
    "type": "validation_error",
    "code": "invalid_field",
    "message": "The request contains an invalid field."
  },
  "request_id": "req_abc123"
}

Use error.code in your application's error handling; do not match the wording of message. Include request_id when asking for support, but never include your API key.

Common status codes

Status Meaning
400 The JSON or request format is invalid
401 Invalid credentials or an account that is not ready for API access
402 Insufficient prepaid balance for a paid action
403 The credential does not have the permission required for this operation
404 The resource is missing or inaccessible
409 The current state conflicts with the request
422 A field or query value is invalid
429 The rate limit blocked the request
502 Torre received an unexpected response while processing the request
503 The operation is temporarily unavailable
504 The operation did not finish before the request deadline

Recruiting scope errors use insufficient_scope. Partners scope errors use insufficient-scope.

Ambiguous writes

Incomplete publication

Publishing an incomplete job returns 422 with error.code: "opening_incomplete". error.details.fields, when available, identifies incomplete sections such as details, skills, languages or compensation. Fix those sections before retrying; skipAlignment does not bypass completeness.

When create-and-post has already saved a draft, the error includes error.details.openingId. Read that opening before retrying creation, or you may create a duplicate. A publication-only error refers to the opening ID already present in the request path. See Publish a job for all conditional requirements.

Example: a publication request times out

Do not immediately publish again. First check the opening:

curl "https://api.torre.ai/v1/openings/$OPENING_ID" \
  -H "Authorization: Bearer $TORRE_API_KEY"

If it already has published: true, publication succeeded. If the read also fails, wait and investigate rather than creating another job.

Read before retrying

Torre does not automatically retry state-changing requests.

If a job change has an uncertain result, ask your agent to read the saved job before retrying. For an uncertain Reach change, ask it to check the campaign's current status first.

Applicant review and alignment feedback can complete in multiple steps. Some changes may already be saved when a later step fails.

Partners errors

POST /people uses code, message, and details. The value in details.error gives the import reason.

Partners authentication, scope, and rate errors use code and message.

Read the Partners API Reference for each response.

Attraction setup and Reach quotes

A 409 attraction_revision_conflict means saved choices changed: read the opening's preferences, reconcile the edits and use the new revision. Missing or inaccessible openings share a nondisclosing 404. Invalid choices, unsupported fields and incomplete publication requirements must be corrected before another write. A quote's insufficient_balance or restart_required decision is a successful quote result, not approval to activate or stop a campaign. For an uncertain completion or paid activation, read the same opening or Reach status before deciding how to continue.