---
title: "Rebuild FAISS index from GetYourJob DB"
method: POST
path: "/v1/internal/offers/index/rebuild"
tags: ["index"]
---

# Rebuild FAISS index from GetYourJob DB

`POST /v1/internal/offers/index/rebuild`

## Request

- Base URL: `https://api.getyourjob.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getyourjob.pro/v1/internal/offers/index/rebuild`
- Auth: none declared

Trigger a full FAISS index rebuild from GetYourJob database.

## Request body

- RebuildRequest: Request to rebuild FAISS index from GetYourJob DB.
  - `db_url` string, required: PostgreSQL connection URL for GetYourJob DB

## Response `200`

Successful Response

- RebuildResponse: Response from index rebuild.
  - `success` boolean
  - `message` string, required
  - `total_indexed` integer
  - `rebuild_started` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getyourjob/apis/matchingagent-api.md) · [All operations](https://skmtc.dev/getyourjob/apis/matchingagent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getyourjob/apis/matchingagent-api/revisions/3a2d9ceb7c84?raw)
